Skip to content

Commit

Permalink
setted up phpcs (#1065)
Browse files Browse the repository at this point in the history
* setted up phpcs

* improved phpcs configuration
  • Loading branch information
syedgalib authored Jul 27, 2022
1 parent 3feb3a2 commit f279a75
Show file tree
Hide file tree
Showing 4 changed files with 595 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __*/
/node_modules
.DS_Store
/.vscode
/.cache/*.*
/.idea
todo.txt
languages/directorist-en_GB-backup-202002180310410.po~
Expand Down
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "wpwax/directorist",
"authors": [
{
"name": "wpWax",
"email": "[email protected]"
}
],
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"squizlabs/php_codesniffer": "3.6.0",
"wp-coding-standards/wpcs": "~2.3.0",
"phpcompatibility/phpcompatibility-wp": "~2.1.3"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"format": "@php ./vendor/bin/phpcbf"
}
}
Loading

0 comments on commit f279a75

Please sign in to comment.