-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
161 additions
and
108 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 +1,14 @@ | ||
.phpcs.xml export-ignore | ||
/.github export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
/.codeclimate.yml export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.releaserc export-ignore | ||
/CODE_OF_CONDUCT.md export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/README.md export-ignore | ||
/SECURITY.md export-ignore | ||
/.phpcs.xml export-ignore | ||
/phpunit.xml export-ignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"branches": [ | ||
"master", | ||
{ | ||
"name": "develop", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "alpha", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"prepareCmd": "zip -r '/tmp/release.zip' ./src README.md ./composer.json" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": [ | ||
{ | ||
"path": "/tmp/release.zip", | ||
"name": "oblak-wp-coding-standards-v${nextRelease.version}.zip", | ||
"label": "Oblak WordPress Coding Standards v${nextRelease.version}" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |
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,112 +1,100 @@ | ||
<?xml version="1.0"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Oblak WordPress Core coding standard"> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
BASE CONFIG | ||
############################################################################# | ||
--> | ||
<arg value="sp"/> <!-- Show sniff and progress --> | ||
<arg name="parallel" value="8"/> <!-- Enables parallel processing when available for faster results. --> | ||
<arg name="colors"/> <!-- Show colors --> | ||
<arg name="extensions" value="php"/> <!-- File extensions to check --> | ||
<arg name="tab-width" value="4"/> <!-- Set the tab width --> | ||
<arg value="sp"/> <!-- Show sniff and progress --> | ||
<arg name="parallel" value="8"/> <!-- Enables parallel processing when available for faster results. --> | ||
<arg name="colors"/> <!-- Show colors --> | ||
<arg name="extensions" value="php"/> <!-- File extensions to check --> | ||
|
||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
EXCLUDE PATTERNS | ||
############################################################################# | ||
--> | ||
<exclude-pattern>dist/*</exclude-pattern> | ||
<exclude-pattern>docker/*</exclude-pattern> | ||
<exclude-pattern>node_modules/*</exclude-pattern> | ||
<exclude-pattern>tests/*</exclude-pattern> | ||
<exclude-pattern>vendor/*</exclude-pattern> | ||
<exclude-pattern>dist/*</exclude-pattern> | ||
<exclude-pattern>docker/*</exclude-pattern> | ||
<exclude-pattern>node_modules/*</exclude-pattern> | ||
<exclude-pattern>tests/*</exclude-pattern> | ||
<exclude-pattern>vendor/*</exclude-pattern> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
SET UP THE RULESETS - WordPress | ||
############################################################################# | ||
--> | ||
<rule ref="PHPCompatibilityWP"/> | ||
<rule ref="WordPress-Extra"/> | ||
<rule ref="WordPress-Docs"/> | ||
|
||
<rule ref="WordPress-Extra"/> | ||
<rule ref="WordPress-Docs"/> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
SET UP THE RULESETS - PHPCsExtra | ||
############################################################################# | ||
--> | ||
<rule ref="Modernize"/> | ||
<rule ref="Universal.Arrays.MixedKeyedUnkeyedArray"/> | ||
<rule ref="Universal.Files.SeparateFunctionsFromOO"/> | ||
<rule ref="Modernize"/> | ||
<rule ref="Universal.Arrays.MixedKeyedUnkeyedArray"/> | ||
<rule ref="Universal.Files.SeparateFunctionsFromOO"/> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
Allow normal classnames for autoload | ||
############################################################################# | ||
--> | ||
<rule ref="WordPress-Core"> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> | ||
</rule> | ||
<rule ref="WordPress-Core"> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> | ||
</rule> | ||
|
||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"> | ||
<severity>5</severity> | ||
</rule> | ||
<rule ref="Generic.Commenting.Todo"/> | ||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"> | ||
<severity>5</severity> | ||
</rule> | ||
<rule ref="Generic.Commenting.Todo"/> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
Add the default text domains | ||
############################################################################# | ||
--> | ||
<rule ref="WordPress.WP.I18n"> | ||
<properties> | ||
<property name="text_domain" type="array"> | ||
<element value="default"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
<rule ref="WordPress.WP.I18n"> | ||
<properties> | ||
<property name="text_domain" type="array"> | ||
<element value="default"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
Use Tabs instead of spaces | ||
############################################################################# | ||
--> | ||
<rule ref="Generic.WhiteSpace.ScopeIndent"> | ||
<properties> | ||
<property name="indent" value="4"/> | ||
<property name="tabIndent" value="false"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<!-- Enforce the rule --> | ||
<rule ref="WordPress"> | ||
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" /> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.ScopeIndent"> | ||
<properties> | ||
<property name="indent" value="4"/> | ||
<property name="tabIndent" value="false"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent" /> | ||
--> | ||
<rule ref="WordPress"> | ||
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" /> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.ScopeIndent"> | ||
<properties> | ||
<property name="indent" value="4"/> | ||
<property name="tabIndent" value="false"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent" /> | ||
|
||
<!-- | ||
############################################################################# | ||
Modernize dirname always, min php 7.0 | ||
############################################################################# | ||
--> | ||
<rule ref="Modernize.FunctionCalls.Dirname.Nested"> | ||
<severity>10</severity> | ||
</rule> | ||
<!-- | ||
############################################################################# | ||
Modernize dirname always, min php 7.0 | ||
############################################################################# | ||
--> | ||
<rule ref="Modernize.FunctionCalls.Dirname.Nested"> | ||
<severity>10</severity> | ||
</rule> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Oblak WordPress Docs coding standard" > | ||
|
||
<!-- | ||
<!-- | ||
############################################################################# | ||
Include standards | ||
############################################################################# | ||
--> | ||
<rule ref="WordPress-Docs"> | ||
<type>warning</type> | ||
</rule> | ||
<rule ref="WordPress-Docs"> | ||
<type>warning</type> | ||
</rule> | ||
|
||
</ruleset> | ||
</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