-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from tawk/coding-standard-and-linting
add linter and ensure coding standards
- Loading branch information
Showing
25 changed files
with
2,989 additions
and
1,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.zip | ||
./build/tawkto | ||
**/vendor | ||
.phpcs.cache | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
'*.php': [ | ||
'composer run lint:fix', | ||
'composer run lint' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="CS"> | ||
<description>Custom coding standards.</description> | ||
<config name="testVersion" value="5.6-"/> | ||
<exclude-pattern>\.github/*</exclude-pattern> | ||
<exclude-pattern>*/docker/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
|
||
<arg value="ps"/> | ||
<arg name="colors"/> | ||
<arg name="parallel" value="100"/> | ||
<arg name="extensions" value="php,md"/> | ||
<arg name="cache" value=".phpcs.cache"/> | ||
|
||
<rule ref="Drupal"> | ||
<exclude name="Drupal.Classes.ClassFileName.NoMatch"/> | ||
<exclude name="Drupal.Commenting"/> | ||
</rule> | ||
|
||
<rule ref="Squiz.Commenting.FunctionComment" /> | ||
<rule ref="Squiz.Commenting.FunctionCommentThrowTag" /> | ||
<rule ref="Squiz.Commenting.ClassComment" /> | ||
<rule ref="Squiz.Commenting.VariableComment" /> | ||
<rule ref="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure" /> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.