From 0f47af918e5f65f7dd55a5d7d7dfdee4ddd78b0e Mon Sep 17 00:00:00 2001 From: Mark Brugnoli-Vinten Date: Mon, 27 Nov 2023 13:39:21 +0000 Subject: [PATCH] Move src lint tools back --- tests/tools/src-check | 26 -------------------------- tests/tools/src-fixer | 35 ----------------------------------- tests/tools/src-lint | 26 -------------------------- 3 files changed, 87 deletions(-) delete mode 100644 tests/tools/src-check delete mode 100644 tests/tools/src-fixer delete mode 100644 tests/tools/src-lint diff --git a/tests/tools/src-check b/tests/tools/src-check deleted file mode 100644 index 1e33a7267e..0000000000 --- a/tests/tools/src-check +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -#+-------------------------------------------------------------------------+ -#| Copyright (C) 2004-2023 The Cacti Group | -#| | -#| 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. | -#+-------------------------------------------------------------------------+ -#| Cacti: The Complete RRDtool-based Graphing Solution | -#+-------------------------------------------------------------------------+ -#| This code is designed, written, and maintained by the Cacti Group. See | -#| about.php and/or the AUTHORS file for specific developer information. | -#+-------------------------------------------------------------------------+ -#| http://www.cacti.net/ | -#+-------------------------------------------------------------------------+ - -SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" -cd "${SCRIPTPATH}" - -./src-fixer --diff --dry-run $@ diff --git a/tests/tools/src-fixer b/tests/tools/src-fixer deleted file mode 100644 index 46bb94f4db..0000000000 --- a/tests/tools/src-fixer +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash -#+-------------------------------------------------------------------------+ -#| Copyright (C) 2004-2023 The Cacti Group | -#| | -#| 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. | -#+-------------------------------------------------------------------------+ -#| Cacti: The Complete RRDtool-based Graphing Solution | -#+-------------------------------------------------------------------------+ -#| This code is designed, written, and maintained by the Cacti Group. See | -#| about.php and/or the AUTHORS file for specific developer information. | -#+-------------------------------------------------------------------------+ -#| http://www.cacti.net/ | -#+-------------------------------------------------------------------------+ - -SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" -cd "${SCRIPTPATH}" - -ANSI=--no-ansi -VERBOSE= -if [ -t 1 ]; then - if [[ -z $RUNNER_OS ]]; then - ANSI= - VERBOSE=--verbose - fi -fi; -echo vendor/bin/php-cs-fixer fix $VERBOSE $ANSI $@ -vendor/bin/php-cs-fixer fix $VERBOSE $ANSI $@ diff --git a/tests/tools/src-lint b/tests/tools/src-lint deleted file mode 100644 index 84fae37782..0000000000 --- a/tests/tools/src-lint +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -#+-------------------------------------------------------------------------+ -#| Copyright (C) 2004-2023 The Cacti Group | -#| | -#| 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. | -#+-------------------------------------------------------------------------+ -#| Cacti: The Complete RRDtool-based Graphing Solution | -#+-------------------------------------------------------------------------+ -#| This code is designed, written, and maintained by the Cacti Group. See | -#| about.php and/or the AUTHORS file for specific developer information. | -#+-------------------------------------------------------------------------+ -#| http://www.cacti.net/ | -#+-------------------------------------------------------------------------+ - -SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" -cd "${SCRIPTPATH}" - -vendor/bin/phplint --no-cache $@