diff --git a/.editorconfig b/.editorconfig index 9d4b1ef22..7382bb8eb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,5 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.yml] +[*.{yml,yaml}] indent_size = 2 diff --git a/composer.json b/composer.json index e87f5f646..62e0fa6be 100644 --- a/composer.json +++ b/composer.json @@ -58,24 +58,25 @@ "post-update-cmd": [ "bash admin/setup.sh" ], - "analyze": "phpstan analyze", + "analyze": [ + "phpstan analyze", + "psalm", + "rector process --dry-run" + ], + "sa": "@analyze", "ci": [ "Composer\\Config::disableProcessTimeout", + "@cs", "@deduplicate", - "@sa", - "@test", "@inspect", - "rector process", - "@style" + "@analyze", + "@test" ], - "deduplicate": "phpcpd app/ src/", + "cs": "php-cs-fixer fix --ansi --verbose --dry-run --diff", + "cs-fix": "php-cs-fixer fix --ansi --verbose --diff", + "deduplicate": "phpcpd app/ src/ --exclude src/Database/Migrations/2020-12-28-223112_create_auth_tables.php", "inspect": "deptrac analyze --cache-file=build/deptrac.cache", "mutate": "infection --threads=2 --skip-initial-tests --coverage=build/phpunit", - "sa": [ - "phpstan analyze", - "psalm" - ], - "cs-fix": "php-cs-fixer fix --ansi --verbose --diff", "style": "@cs-fix", "test": "phpunit" }