-
Notifications
You must be signed in to change notification settings - Fork 1
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
419 changed files
with
3,191 additions
and
1,608 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 |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
emerchantpay.ocmod.zip | ||
/vendor/ | ||
bin/check-standards | ||
phpcs_report.xml | ||
phpmd_report.xml |
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,10 +1,64 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="OpenCart EMP Plugin Coding Standards"> | ||
<description>Generally-applicable sniffs for OpenCart EMP Plugin</description> | ||
|
||
<rule ref="OpenCart" /> | ||
<ruleset name="OpenCart Combined Coding Standards"> | ||
<description>Combined Code Sniffer rule set for OpenCart and OpenCart EMP Plugin</description> | ||
|
||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*.min.js</exclude-pattern> | ||
<exclude-pattern>*.min.css</exclude-pattern> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
|
||
<rule ref="Squiz.ControlStructures.InlineIfDeclaration" /> | ||
<rule ref="Zend.Files.ClosingTag"> | ||
<severity>5</severity> | ||
<type>error</type> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"> | ||
<severity>1</severity> | ||
<type>warning</type> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile" /> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile" /> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" /> | ||
<rule ref="Generic.PHP.DeprecatedFunctions"> | ||
<severity>5</severity> | ||
<type>error</type> | ||
</rule> | ||
<rule ref="Generic.PHP.DisallowShortOpenTag"> | ||
<severity>5</severity> | ||
<type>error</type> | ||
</rule> | ||
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/> | ||
<rule ref="Generic.PHP.LowerCaseConstant" /> | ||
<rule ref="Generic.Formatting.NoSpaceAfterCast" /> | ||
<rule ref="Generic.Functions.CallTimePassByReference" /> | ||
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" /> | ||
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/> | ||
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/> | ||
<rule ref="Generic.Files.ByteOrderMark"/> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"> | ||
<exclude-pattern>*.tpl</exclude-pattern> | ||
<exclude-pattern>*.css</exclude-pattern> | ||
<exclude-pattern>*.html</exclude-pattern> | ||
<exclude-pattern>*.ini</exclude-pattern> | ||
<exclude-pattern>*.txt</exclude-pattern> | ||
<severity>1</severity> | ||
<type>warning</type> | ||
</rule> | ||
<rule ref="Generic.Commenting.Todo.CommentFound"> | ||
<message>Please review this TODO comment: %s</message> | ||
<severity>3</severity> | ||
<type>warning</type> | ||
</rule> | ||
<rule ref="Generic.Commenting.Todo.Fixme"> | ||
<message>Please review this FIXME comment: %s</message> | ||
<severity>5</severity> | ||
<type>warning</type> | ||
</rule> | ||
<rule ref="Generic.Files.LineEndings"> | ||
<properties> | ||
<property name="eolChar" value="\n"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Squiz.ControlStructures.ControlSignature" /> | ||
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/> | ||
</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
Large diffs are not rendered by default.
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
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.