Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
50ca17ab
Commit
50ca17ab
authored
Jan 14, 2019
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strict PHPCS ruleset for use with new code
parent
2a90152f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
ruleset-strict.xml
qa-tests/phpcs/ruleset-strict.xml
+39
-0
No files found.
qa-tests/phpcs/ruleset-strict.xml
0 → 100644
View file @
50ca17ab
<?xml version="1.0"?>
<ruleset
name=
"Q2AStandard"
>
<description>
Q2A strict coding standard
</description>
<exclude-pattern>
qa-include/vendor/*
</exclude-pattern>
<exclude-pattern>
qa-config.php
</exclude-pattern>
<exclude-pattern>
qa-plugin/recaptcha-captcha/recaptchalib.php
</exclude-pattern>
<exclude-pattern>
qa-plugin/facebook-login/facebook.php
</exclude-pattern>
<exclude-pattern>
qa-plugin/facebook-login/base_facebook.php
</exclude-pattern>
<rule
ref=
"PSR1"
>
</rule>
<rule
ref=
"PSR2"
>
<exclude
name=
"Generic.WhiteSpace.DisallowTabIndent"
/>
<exclude
name=
"Generic.Files.LineLength.TooLong"
/>
<exclude
name=
"Generic.ControlStructures.InlineControlStructure"
/>
<exclude
name=
"Squiz.ControlStructures.ControlSignature"
/>
<!-- doesn't work without above rule -->
<exclude
name=
"Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose"
/>
<exclude
name=
"PSR2.Methods.FunctionCallSignature"
/>
<exclude
name=
"Squiz.Functions.MultiLineFunctionDeclaration"
/>
</rule>
<arg
name=
"tab-width"
value=
"4"
/>
<rule
ref=
"Generic.WhiteSpace.DisallowSpaceIndent"
/>
<rule
ref=
"Generic.WhiteSpace.ScopeIndent"
>
<properties>
<property
name=
"indent"
value=
"4"
/>
<property
name=
"tabIndent"
value=
"true"
/>
</properties>
</rule>
<rule
ref=
"Squiz.WhiteSpace.SuperfluousWhitespace"
>
<properties>
<property
name=
"ignoreBlankLines"
value=
"false"
/>
</properties>
</rule>
</ruleset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment