Skip to content

Commit

Permalink
Added coding standards tools (LM-Commons#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Sep 3, 2024
1 parent 060447e commit dd955bf
Show file tree
Hide file tree
Showing 4 changed files with 416 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ vendor
##composer.lock
## PHPStorm files
/.idea
.phpcs*
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,25 @@
"LmcAdmin\\ConfigProvider"
]
}
},
"require-dev": {
"laminas/laminas-coding-standard": "^2.5"
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --coverage-clover ./build/logs/clover.xml",
"test-coverage-html": "phpunit --colors=always --coverage-html ./build/html",
"static-analysis": "psalm --shepherd --stats"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit dd955bf

Please sign in to comment.