Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57020359
ruleset.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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.Files.LineLength"
/>
<rule
ref=
"Generic.Formatting.NoSpaceAfterCast"
/>
<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"
/>
<!-- 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.Functions.CallTimePassByReference"
/>
<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
Sun, Nov 15, 01:16 (4 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4250301
Default Alt Text
ruleset.xml (3 KB)
Attached To
Mode
rDEVCS Nasqueron codestyle
Attached
Detach File
Event Timeline
Log In to Comment