From 17aedab49588ca0039e50b63d8c1230f0892f38e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:55:39 +1300 Subject: [PATCH] MNT Run module-standardiser (#1438) --- .codeclimate.yml | 23 ----------------------- composer.json | 4 +++- phpstan.neon.dist | 3 +++ 3 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 .codeclimate.yml create mode 100644 phpstan.neon.dist diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index f67199e11..000000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -engines: - eslint: - enabled: true - phpcodesniffer: - enabled: true - config: - standard: "ruleset.xml" - csslint: - enabled: true - -prepare: - fetch: - - url: "https://raw.githubusercontent.com/silverstripe/silverstripe-asset-admin/master/tests/phpcs/ruleset.xml" - path: "ruleset.xml" - -ratings: - paths: - - "**.js" - - "**.php" - - "**.css" - -exclude_paths: diff --git a/composer.json b/composer.json index ffab8afe8..8eacc8eb6 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,9 @@ "silverstripe/frameworktest": "^1", "squizlabs/php_codesniffer": "^3.7", "silverstripe/cms": "^5", - "silverstripe/campaign-admin": "^2" + "silverstripe/campaign-admin": "^2", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "expose": [ diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 000000000..d10aea03b --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - code