-
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.
- Loading branch information
Showing
18 changed files
with
416 additions
and
180 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?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 | ||
--> | ||
<description>Sniffs for the coding standards of the Tabulate plugin</description> | ||
|
||
<rule ref="Squiz.PHP.CommentedOutCode" /> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" /> | ||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" /> | ||
<rule ref="Generic.Commenting.Todo" /> | ||
<rule ref="Generic.ControlStructures.InlineControlStructure" /> | ||
|
||
<rule ref="WordPress"> | ||
<!-- | ||
We may want a middle ground though. The best way to do this is add the | ||
entire ruleset, then rule by rule, remove ones that don't suit a project. We | ||
can do this by running `phpcs` with the '-s' flag, to see the names of the | ||
different Sniffs, as their rules are broken. From here, we can opt to | ||
exclude problematic sniffs like so. | ||
--> | ||
<exclude name="Generic.Files.LowercasedFilename.NotFound" /> | ||
<exclude name="Generic.Strings.UnnecessaryStringConcat.Found" /> | ||
<exclude name="Squiz.Strings.DoubleQuoteUsage.NotRequired" /> | ||
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" /> | ||
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped" /> | ||
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" /> | ||
<exclude name="WordPress.VIP.ValidatedSanitizedInput.MissingUnslash" /> | ||
<exclude name="WordPress.VIP.ValidatedSanitizedInput.InputNotSanitized" /> | ||
<exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching" /> | ||
<exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery" /> | ||
<exclude name="WordPress.VIP.FileSystemWritesDisallow.FileWriteDetected" /> | ||
</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
Oops, something went wrong.