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