Skip to content

Commit

Permalink
Add our current linting setup
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX authored Jul 24, 2024
1 parent 0579942 commit 0cf6b9e
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
{
"require-dev": {
"liquipedia/sqllint": "*",
"mediawiki/mediawiki-codesniffer": "*",
"mediawiki/minus-x": "*",
"php-parallel-lint/php-parallel-lint": "*",
"php-parallel-lint/php-console-highlighter": "*"
},
"scripts": {
"test": [
"parallel-lint --colors --exclude vendor .",
"lint": [
"parallel-lint --colors --exclude vendor ."
],
"phpcs": [
"phpcs -p -s"
],
"fix": "phpcbf"
"sqllint": [
"sqllint"
],
"minus-x": [
"minus-x check ."
],
"test": [
"composer minus-x",
"composer lint",
"composer phpcs",
"composer sqllint"
],
"fix": [
"minus-x fix .",
"phpcbf"
],
"phpcs-junit": [
"phpcs --report=junit > report-phpcs.xml"
],
"sqllint-junit": [
"sqllint --report=junit > report-sqllint.xml"
],
"reports-junit": [
"composer phpcs-junit",
"composer sqllint-junit"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

0 comments on commit 0cf6b9e

Please sign in to comment.