From 0919371cfd76c005fa629f3bbe9ebd7ce1929703 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Sun, 22 Sep 2024 21:06:17 +0200 Subject: [PATCH] azure-devops: fix linting issues Signed-off-by: Vincenzo Scamporlino --- .../azure-devops/packages/app/src/App.test.tsx | 15 +++++++++++++++ .../azure-devops/packages/app/src/App.tsx | 15 +++++++++++++++ .../azure-devops/packages/app/src/apis.ts | 15 +++++++++++++++ .../app/src/components/Root/LogoFull.tsx | 15 +++++++++++++++ .../app/src/components/Root/LogoIcon.tsx | 15 +++++++++++++++ .../packages/app/src/components/Root/Root.tsx | 15 +++++++++++++++ .../packages/app/src/components/Root/index.ts | 15 +++++++++++++++ .../app/src/components/catalog/EntityPage.tsx | 15 +++++++++++++++ .../app/src/components/search/SearchPage.tsx | 15 +++++++++++++++ .../azure-devops/packages/app/src/index.tsx | 15 +++++++++++++++ .../azure-devops/packages/app/src/setupTests.ts | 15 +++++++++++++++ .../azure-devops/packages/backend/src/index.ts | 14 +++++++++++--- .../src/index.ts | 17 ++++++++++++++++- .../src/module.ts | 15 +++++++++++++++ 14 files changed, 207 insertions(+), 4 deletions(-) diff --git a/workspaces/azure-devops/packages/app/src/App.test.tsx b/workspaces/azure-devops/packages/app/src/App.test.tsx index ec8ba1d71..1f5b24568 100644 --- a/workspaces/azure-devops/packages/app/src/App.test.tsx +++ b/workspaces/azure-devops/packages/app/src/App.test.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { render, waitFor } from '@testing-library/react'; import App from './App'; diff --git a/workspaces/azure-devops/packages/app/src/App.tsx b/workspaces/azure-devops/packages/app/src/App.tsx index 57b38eba5..05217ba23 100644 --- a/workspaces/azure-devops/packages/app/src/App.tsx +++ b/workspaces/azure-devops/packages/app/src/App.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { Navigate, Route } from 'react-router-dom'; import { apiDocsPlugin, ApiExplorerPage } from '@backstage/plugin-api-docs'; diff --git a/workspaces/azure-devops/packages/app/src/apis.ts b/workspaces/azure-devops/packages/app/src/apis.ts index c89753aae..13c72e734 100644 --- a/workspaces/azure-devops/packages/app/src/apis.ts +++ b/workspaces/azure-devops/packages/app/src/apis.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ScmIntegrationsApi, scmIntegrationsApiRef, diff --git a/workspaces/azure-devops/packages/app/src/components/Root/LogoFull.tsx b/workspaces/azure-devops/packages/app/src/components/Root/LogoFull.tsx index 47e3b7315..4c4513755 100644 --- a/workspaces/azure-devops/packages/app/src/components/Root/LogoFull.tsx +++ b/workspaces/azure-devops/packages/app/src/components/Root/LogoFull.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { makeStyles } from '@material-ui/core'; diff --git a/workspaces/azure-devops/packages/app/src/components/Root/LogoIcon.tsx b/workspaces/azure-devops/packages/app/src/components/Root/LogoIcon.tsx index 7eae8c7a0..b53cf5f01 100644 --- a/workspaces/azure-devops/packages/app/src/components/Root/LogoIcon.tsx +++ b/workspaces/azure-devops/packages/app/src/components/Root/LogoIcon.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { makeStyles } from '@material-ui/core'; diff --git a/workspaces/azure-devops/packages/app/src/components/Root/Root.tsx b/workspaces/azure-devops/packages/app/src/components/Root/Root.tsx index d21353c8b..e587c92a8 100644 --- a/workspaces/azure-devops/packages/app/src/components/Root/Root.tsx +++ b/workspaces/azure-devops/packages/app/src/components/Root/Root.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React, { PropsWithChildren } from 'react'; import { makeStyles } from '@material-ui/core'; import HomeIcon from '@material-ui/icons/Home'; diff --git a/workspaces/azure-devops/packages/app/src/components/Root/index.ts b/workspaces/azure-devops/packages/app/src/components/Root/index.ts index 35288815f..6e933a21b 100644 --- a/workspaces/azure-devops/packages/app/src/components/Root/index.ts +++ b/workspaces/azure-devops/packages/app/src/components/Root/index.ts @@ -1 +1,16 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export { Root } from './Root'; diff --git a/workspaces/azure-devops/packages/app/src/components/catalog/EntityPage.tsx b/workspaces/azure-devops/packages/app/src/components/catalog/EntityPage.tsx index 017bdf464..00909d68a 100644 --- a/workspaces/azure-devops/packages/app/src/components/catalog/EntityPage.tsx +++ b/workspaces/azure-devops/packages/app/src/components/catalog/EntityPage.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { Button, Grid } from '@material-ui/core'; import { diff --git a/workspaces/azure-devops/packages/app/src/components/search/SearchPage.tsx b/workspaces/azure-devops/packages/app/src/components/search/SearchPage.tsx index 1788dde1b..773b412cb 100644 --- a/workspaces/azure-devops/packages/app/src/components/search/SearchPage.tsx +++ b/workspaces/azure-devops/packages/app/src/components/search/SearchPage.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import React from 'react'; import { makeStyles, Theme, Grid, Paper } from '@material-ui/core'; diff --git a/workspaces/azure-devops/packages/app/src/index.tsx b/workspaces/azure-devops/packages/app/src/index.tsx index d875c774c..233899123 100644 --- a/workspaces/azure-devops/packages/app/src/index.tsx +++ b/workspaces/azure-devops/packages/app/src/index.tsx @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import '@backstage/cli/asset-types'; import React from 'react'; import ReactDOM from 'react-dom/client'; diff --git a/workspaces/azure-devops/packages/app/src/setupTests.ts b/workspaces/azure-devops/packages/app/src/setupTests.ts index 7b0828bfa..658016ffd 100644 --- a/workspaces/azure-devops/packages/app/src/setupTests.ts +++ b/workspaces/azure-devops/packages/app/src/setupTests.ts @@ -1 +1,16 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import '@testing-library/jest-dom'; diff --git a/workspaces/azure-devops/packages/backend/src/index.ts b/workspaces/azure-devops/packages/backend/src/index.ts index 95f6c4a72..13b223870 100644 --- a/workspaces/azure-devops/packages/backend/src/index.ts +++ b/workspaces/azure-devops/packages/backend/src/index.ts @@ -1,9 +1,17 @@ /* - * Hi! + * Copyright 2024 The Backstage Authors * - * Note that this is an EXAMPLE Backstage backend. Please check the README. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Happy hacking! + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ import { createBackend } from '@backstage/backend-defaults'; diff --git a/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/index.ts b/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/index.ts index 235e753eb..e88aed129 100644 --- a/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/index.ts +++ b/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/index.ts @@ -1,8 +1,23 @@ /** + * The Azure DevOps Annotator Processor backend module for the Catalog plugin. * * @packageDocumentation + */ + +/* + * Copyright 2024 The Backstage Authors * - * * The Azure DevOps Annotator Processor backend module for the Catalog plugin. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ export { catalogModuleAzureDevopsAnnotatorProcessor as default } from './module'; diff --git a/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/module.ts b/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/module.ts index c69a698db..a2d118664 100644 --- a/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/module.ts +++ b/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor/src/module.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { coreServices, createBackendModule,