-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/tabulate/tabulate
- Loading branch information
Showing
27 changed files
with
166 additions
and
106 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,48 +1,51 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress-Tabulate"> | ||
<!-- | ||
This file adapted from https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards#standards-subsets | ||
Use this ruleset by running e.g. phpcs - - standard=phpcs.xml src | ||
Run `phpcs` with the '-s' flag to see the names of the sniffs. | ||
--> | ||
<description>Sniffs for the coding standards of the Tabulate plugin</description> | ||
<config name="installed_paths" value="../../wp-coding-standards/wpcs/" /> | ||
|
||
<!-- What files should be sniffed. --> | ||
<file>./</file> | ||
<exclude-pattern>./vendor/*</exclude-pattern> | ||
<exclude-pattern>./assets/*</exclude-pattern> | ||
<exclude-pattern>./docs/*</exclude-pattern> | ||
<file>./assets/scripts.js</file> | ||
<file>./assets/style.css</file> | ||
|
||
<!-- Some coding standards above and beyond WordPress. --> | ||
<rule ref="Squiz.PHP.CommentedOutCode" /> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" /> | ||
<!--rule ref="Squiz.Strings.ConcatenationSpacing" /--> | ||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" /> | ||
<rule ref="Generic.ControlStructures.InlineControlStructure" /> | ||
|
||
<!-- Use *most* of WordPress' coding standards. --> | ||
<rule ref="WordPress"> | ||
<exclude name="Generic.Files.LowercasedFilename.NotFound" /> | ||
<exclude name="Generic.Strings.UnnecessaryStringConcat.Found" /> | ||
<exclude name="Squiz.Strings.DoubleQuoteUsage.NotRequired" /> | ||
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing" /> | ||
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" /> | ||
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" /> | ||
<exclude name="WordPress.XSS.EscapeOutput" /> | ||
<exclude name="WordPress.VIP" /> | ||
</rule> | ||
|
||
<!-- Tests have a 'setUp' method, which is part of PHPUnit. --> | ||
<rule ref="WordPress.NamingConventions.ValidFunctionName"> | ||
<exclude-pattern>./tests/*</exclude-pattern> | ||
</rule> | ||
|
||
<!-- The main plugin file has a special file-level docblock. --> | ||
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag"> | ||
<exclude-pattern>./tabulate.php</exclude-pattern> | ||
</rule> | ||
|
||
</ruleset> | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress-Tabulate"> | ||
<!-- | ||
This file adapted from https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards#standards-subsets | ||
Use this ruleset by running e.g. phpcs - - standard=phpcs.xml src | ||
Run `phpcs` with the '-s' flag to see the names of the sniffs. | ||
--> | ||
<description>Sniffs for the coding standards of the Tabulate plugin</description> | ||
<config name="installed_paths" value="../../wp-coding-standards/wpcs/" /> | ||
|
||
<!-- What files should be sniffed. --> | ||
<file>./</file> | ||
<exclude-pattern>./vendor/*</exclude-pattern> | ||
<exclude-pattern>./assets/*</exclude-pattern> | ||
<exclude-pattern>./docs/*</exclude-pattern> | ||
<file>./assets/scripts.js</file> | ||
<file>./assets/style.css</file> | ||
|
||
<!-- Some coding standards above and beyond WordPress. --> | ||
<rule ref="Squiz.PHP.CommentedOutCode" /> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" /> | ||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" /> | ||
<rule ref="Generic.ControlStructures.InlineControlStructure" /> | ||
|
||
<!-- Use *most* of WordPress' coding standards. --> | ||
<rule ref="WordPress"> | ||
<exclude name="Generic.Files.LowercasedFilename.NotFound" /> | ||
<exclude name="Generic.Strings.UnnecessaryStringConcat.Found" /> | ||
<exclude name="Squiz.Strings.DoubleQuoteUsage.NotRequired" /> | ||
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" /> | ||
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" /> | ||
<exclude name="WordPress.XSS.EscapeOutput" /> | ||
<exclude name="WordPress.VIP" /> | ||
</rule> | ||
|
||
<!-- For some reason, this isn't excluded when added under the WordPress rule. --> | ||
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<!-- Tests have a 'setUp' method, which is part of PHPUnit. --> | ||
<rule ref="WordPress.NamingConventions.ValidFunctionName"> | ||
<exclude-pattern>./tests/*</exclude-pattern> | ||
</rule> | ||
|
||
<!-- The main plugin file has a special file-level docblock. --> | ||
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag"> | ||
<exclude-pattern>./tabulate.php</exclude-pattern> | ||
</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
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
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
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
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.