-
Notifications
You must be signed in to change notification settings - Fork 22
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 #19 from deliciousbrains/18-coding-standards
- Loading branch information
Showing
7 changed files
with
79 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Delicious Brains"> | ||
<!-- Files or directories to check --> | ||
<file>.</file> | ||
|
||
<!-- Exclude the keys file as this is auto-generated from the WordPress generator --> | ||
<exclude-pattern type="relative-root">^/config/keys.php</exclude-pattern> | ||
|
||
<!-- Path to strip from the front of file paths inside reports (displays shorter paths) --> | ||
<arg name="basepath" value="." /> | ||
|
||
<!-- Use HM Coding Standards --> | ||
<rule ref="vendor/humanmade/coding-standards"> | ||
<!-- Namespace isn't required for all files. --> | ||
<exclude name="HM.Functions.NamespacedFunctions.MissingNamespace" /> | ||
<!-- Ignore rule expecting Namespaced directory. --> | ||
<exclude name="HM.Files.NamespaceDirectoryName.NoIncDirectory" /> | ||
<!-- File name and class name match is not necessary. --> | ||
<exclude name="HM.Files.ClassFileName.MismatchedName" /> | ||
<!-- Ignore class file name rule --> | ||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> | ||
<!-- Ignore rule expecting hyphens in file name. --> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
<!-- Don't require file comment header. --> | ||
<exclude name="Squiz.Commenting.FileComment.Missing" /> | ||
</rule> | ||
|
||
<!-- Ignore Snake case variables for tests --> | ||
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"> | ||
<exclude-pattern>/tests/*</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<?php | ||
// Bootstrap our site code | ||
( new DeliciousBrains\SpinupWPComposerSite\App() )->register(); | ||
/** | ||
* Bootstrap our site code | ||
*/ | ||
|
||
( new DeliciousBrains\SpinupWPComposerSite\App() )->register(); |
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