From 566b43f06bf9fd0add2ce29ccccaed7adec6e24a Mon Sep 17 00:00:00 2001 From: daniele-mng Date: Fri, 7 Jun 2024 12:43:00 +0200 Subject: [PATCH] fix gpl 2 --- src/web/pages/nvts/__tests__/row.jsx | 19 +++---------------- .../reports/details/__tests__/cvestab.jsx | 19 +++---------------- src/web/pages/scanners/__tests__/dialog.jsx | 19 +++---------------- src/web/utils/useCapabilities.jsx | 19 +++---------------- 4 files changed, 12 insertions(+), 64 deletions(-) diff --git a/src/web/pages/nvts/__tests__/row.jsx b/src/web/pages/nvts/__tests__/row.jsx index 75be014716..3f5c3324c5 100644 --- a/src/web/pages/nvts/__tests__/row.jsx +++ b/src/web/pages/nvts/__tests__/row.jsx @@ -1,21 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: AGPL-3.0-or-later */ + /* eslint-disable no-unused-vars */ /* eslint-disable no-console */ import {describe, test, expect, testing} from '@gsa/testing'; diff --git a/src/web/pages/reports/details/__tests__/cvestab.jsx b/src/web/pages/reports/details/__tests__/cvestab.jsx index e97b448043..60da8c1b6a 100644 --- a/src/web/pages/reports/details/__tests__/cvestab.jsx +++ b/src/web/pages/reports/details/__tests__/cvestab.jsx @@ -1,21 +1,8 @@ -/* Copyright (C) 2020-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: AGPL-3.0-or-later */ + import {describe, test, expect, testing} from '@gsa/testing'; import Capabilities from 'gmp/capabilities/capabilities'; diff --git a/src/web/pages/scanners/__tests__/dialog.jsx b/src/web/pages/scanners/__tests__/dialog.jsx index fa109b9a16..4a2ff0320e 100644 --- a/src/web/pages/scanners/__tests__/dialog.jsx +++ b/src/web/pages/scanners/__tests__/dialog.jsx @@ -1,21 +1,8 @@ -/* Copyright (C) 2019-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: AGPL-3.0-or-later */ + import {describe, test, expect, testing} from '@gsa/testing'; import Credential, { diff --git a/src/web/utils/useCapabilities.jsx b/src/web/utils/useCapabilities.jsx index 4515b1069f..2b50336488 100644 --- a/src/web/utils/useCapabilities.jsx +++ b/src/web/utils/useCapabilities.jsx @@ -1,21 +1,8 @@ -/* Copyright (C) 2020-2022 Greenbone AG +/* SPDX-FileCopyrightText: 2024 Greenbone AG * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: AGPL-3.0-or-later */ + import {useContext} from 'react'; import CapabilitiesContext from 'web/components/provider/capabilitiesprovider';