Skip to content

Commit

Permalink
Adding PSR12 tools and linting (#2467)
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak authored May 24, 2023
1 parent 0344461 commit f19a588
Show file tree
Hide file tree
Showing 148 changed files with 1,759 additions and 559 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ reports/*
*.deb
Brewfile.lock.json
/.phive
/.php-cs-fixer.cache
2 changes: 1 addition & 1 deletion bin/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSI

// This variable is automatically managed via updateDependenciesversion() in /RoboFile.php,
// which is run after every call to composer update.
$terminusPluginsDependenciesVersion = 'a2aeba185b';
$terminusPluginsDependenciesVersion = '10c370e142';

// Cannot use $_SERVER superglobal since that's empty during phpunit testing
// getenv('HOME') isn't set on Windows and generates a Notice.
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"ext-pcov": "*",
"behat/behat": "^3.2.2",
"erusev/parsedown": "^1.7",
"friendsofphp/php-cs-fixer": "^3.17",
"pcov/clobber": "^2.0",
"php-coveralls/php-coveralls": "^2.4",
"php-vcr/php-vcr": "~1.5.2",
Expand Down Expand Up @@ -95,7 +96,7 @@
"\\Terminus\\UpdateClassLists::update"
],
"code:fix": [
"vendor/bin/phpcbf --standard=phpcs_ruleset.xml src tests/Functional tests/unit_tests"
"@php-cs-fixer"
],
"cs": [
"vendor/bin/phpcs --standard=phpcs_ruleset.xml src tests/Functional tests/unit_tests"
Expand Down Expand Up @@ -151,6 +152,11 @@
],
"version-bump": [
"bumpversion --no-commit --no-tag minor"
],
"php-cs-fixer": [
"vendor/bin/php-cs-fixer fix ./src --rules=@PSR12",
"vendor/bin/php-cs-fixer fix ./tests/Functional --rules=@PSR12",
"vendor/bin/php-cs-fixer fix ./tests/unit_tests --rules=@PSR12"
]
},
"config": {
Expand Down
Loading

0 comments on commit f19a588

Please sign in to comment.