Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added exclude for test files #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions 22 Magento2/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
<rule ref="Magento2.Security.IncludeFile">
<severity>10</severity>
<type>error</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Security.LanguageConstruct">
<severity>10</severity>
Expand All @@ -60,8 +62,10 @@
<rule ref="Magento2.Security.Superglobal.SuperglobalUsageError">
<severity>10</severity>
<type>error</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Strings.ExecutableRegEx">
<severity>10</severity>
Expand Down Expand Up @@ -93,8 +97,10 @@
<rule ref="Magento2.Security.Superglobal.SuperglobalUsageWarning">
<severity>9</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Security.XssTemplate">
<include-pattern>*.phtml</include-pattern>
Expand All @@ -104,8 +110,10 @@
<rule ref="Magento2.SQL.RawQuery">
<severity>9</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.NonExecutableCode">
<severity>9</severity>
Expand All @@ -120,7 +128,9 @@
<rule ref="Magento2.Exceptions.DirectThrow">
<severity>8</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Exceptions.ThrowCatch">
<severity>8</severity>
Expand All @@ -129,15 +139,19 @@
<rule ref="Magento2.Functions.DiscouragedFunction">
<severity>8</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Functions.StaticFunction">
<severity>8</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/Setup/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.Files.LineLength">
<severity>8</severity>
Expand Down Expand Up @@ -204,7 +218,9 @@
<rule ref="Magento2.CodeAnalysis.EmptyBlock">
<severity>7</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Magento2.PHP.LiteralNamespaces">
<severity>7</severity>
Expand All @@ -225,7 +241,9 @@
<rule ref="Squiz.Functions.GlobalFunction">
<severity>7</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Squiz.Operators.IncrementDecrementUsage">
<severity>7</severity>
Expand All @@ -238,7 +256,9 @@
<rule ref="Squiz.PHP.GlobalKeyword">
<severity>7</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Squiz.Scope.MemberVarScope">
<severity>7</severity>
Expand Down Expand Up @@ -299,7 +319,9 @@
<rule ref="PSR1.Files.SideEffects">
<severity>6</severity>
<type>warning</type>
<exclude-pattern>*/_files/*</exclude-pattern>
<exclude-pattern>*/Test/*</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<severity>6</severity>
Expand Down
2 changes: 1 addition & 1 deletion 2 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"AFL-3.0"
],
"type": "phpcodesniffer-standard",
"version": "1.0.1",
"version": "1.0.2",
"require": {
"php": ">=5.6.0",
"squizlabs/php_codesniffer": "~3.3.0"
Expand Down
2 changes: 1 addition & 1 deletion 2 composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.