Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F49507406
ruleset.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
ruleset.xml
View Options
<?xml version="1.0"?>
<ruleset
name=
"Nasqueron"
namespace=
"Nasqueron\CodeSniffer\Standard"
>
<description>
Nasqueron
coding
standard
</description>
<!-- Consensual detections -->
<rule
ref=
"Generic.Classes.DuplicateClassName"
/>
<rule
ref=
"Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"
/>
<rule
ref=
"Generic.CodeAnalysis.JumbledIncrementer"
/>
<rule
ref=
"Generic.CodeAnalysis.UnconditionalIfStatement"
/>
<rule
ref=
"Generic.CodeAnalysis.UnnecessaryFinalModifier"
/>
<rule
ref=
"Generic.CodeAnalysis.UnusedFunctionParameter"
/>
<rule
ref=
"Generic.CodeAnalysis.UselessOverridingMethod"
/>
<rule
ref=
"Generic.ControlStructures.InlineControlStructure"
/>
<!-- Less consensual detections -->
<rule
ref=
"Generic.CodeAnalysis.EmptyStatement"
/>
<rule
ref=
"Generic.CodeAnalysis.ForLoopWithTestFunctionCall"
/>
<!-- Source is not the best project management and doc platform. -->
<rule
ref=
"Generic.Commenting.Fixme"
/>
<rule
ref=
"Generic.Commenting.Todo"
/>
<rule
ref=
"Generic.Commenting.Todo.TaskFound"
>
<message>
Create
a
task
in
DevCentral
instead
of
a
TODO
comment:
%s
</message>
</rule>
<!-- In a standardized world, every file use α encoding and β EOL. Oh my. -->
<rule
ref=
"Generic.Files.ByteOrderMark"
/>
<rule
ref=
"Generic.Files.EndFileNewline"
/>
<rule
ref=
"Generic.Files.LineEndings"
/>
<!-- You're writing Nasqueron code. Let's use the Nasqueron code style. -->
<config
name=
"tabWidth"
value=
"4"
/>
<rule
ref=
"Generic.Classes.OpeningBraceSameLine"
/>
<rule
ref=
"Generic.Formatting.SpaceAfterCast"
>
<properties>
<property
name=
"spacing"
value=
"0"
/>
</properties>
</rule>
<rule
ref=
"Generic.Functions.FunctionCallArgumentSpacing"
/>
<rule
ref=
"Generic.Functions.OpeningFunctionBraceKernighanRitchie"
/>
<rule
ref=
"Generic.NamingConventions.CamelCapsFunctionName"
>
<properties>
<!-- Allow names like fetchFromAPI, getFS, getProjectsPHIDs -->
<property
name=
"strict"
value=
"false"
/>
</properties>
</rule>
<rule
ref=
"Generic.NamingConventions.UpperCaseConstantName"
/>
<rule
ref=
"Generic.PHP.LowerCaseConstant"
/>
<rule
ref=
"Generic.PHP.LowerCaseKeyword"
/>
<rule
ref=
"Generic.WhiteSpace.DisallowTabIndent"
/>
<rule
ref=
"PSR1"
/>
<!-- but certainly not the whole PSR-2 -->
<rule
ref=
"PSR2.Files.ClosingTag"
/>
<!-- Long lines. -->
<rule
ref=
"Generic.Files.LineLength"
>
<properties>
<property
name=
"lineLimit"
value=
"80"
/>
<property
name=
"absoluteLineLimit"
value=
"120"
/>
</properties>
</rule>
<rule
ref=
"Generic.Files.LineLength.TooLong"
>
<severity>
3
</severity>
</rule>
<rule
ref=
"Generic.Files.LineLength.MaxExceeded"
>
<message>
This
line
contains
%2
$
s
characters.
Try
below
80.
</message>
</rule>
<!-- Write simple code. -->
<rule
ref=
"Generic.CodeAnalysis.AssignmentInCondition"
/>
<rule
ref=
"Generic.Files.OneClassPerFile"
/>
<rule
ref=
"Generic.Files.OneInterfacePerFile"
/>
<rule
ref=
"Generic.Files.OneTraitPerFile"
/>
<rule
ref=
"Generic.Formatting.DisallowMultipleStatements"
/>
<rule
ref=
"Generic.Metrics.CyclomaticComplexity"
/>
<rule
ref=
"Generic.Metrics.NestingLevel"
/>
<rule
ref=
"Generic.Strings.UnnecessaryStringConcat"
/>
<!-- In modern PHP we trust. -->
<rule
ref=
"Generic.Arrays.DisallowLongArraySyntax"
/>
<rule
ref=
"Generic.NamingConventions.ConstructorName"
/>
<rule
ref=
"Generic.PHP.DeprecatedFunctions"
/>
<rule
ref=
"Generic.PHP.DisallowShortOpenTag"
/>
<!-- but <?= ?> ok -->
<rule
ref=
"Generic.PHP.ForbiddenFunctions"
/>
<!-- sizeof/delete -->
</ruleset>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Mon, Sep 14, 16:11 (11 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3990381
Default Alt Text
ruleset.xml (3 KB)
Attached To
Mode
rDEVCS Nasqueron codestyle
Attached
Detach File
Event Timeline
Log In to Comment