Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11707968
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/CodeSniffer/ruleset.xml b/CodeSniffer/ruleset.xml
index 7251f3d..6d3c66a 100644
--- a/CodeSniffer/ruleset.xml
+++ b/CodeSniffer/ruleset.xml
@@ -1,69 +1,81 @@
<?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" />
+ <!-- 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.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/x-diff
Expires
Mon, Sep 15, 04:22 (7 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2983704
Default Alt Text
(3 KB)
Attached To
Mode
rDEVCS Nasqueron codestyle
Attached
Detach File
Event Timeline
Log In to Comment