OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
54
phpcs.xml
Normal file
54
phpcs.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="PHP_CodeSniffer">
|
||||
<description>PHP_CodeSniffer configuration</description>
|
||||
<rule ref="PSR12">
|
||||
<exclude name="Squiz.Classes.ValidClassName" />
|
||||
<exclude name="Generic.Files.LineLength" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn" />
|
||||
</rule>
|
||||
|
||||
<arg name="bootstrap" value="vendor/zebra-north/phpcs-short-types/short-types.php"/>
|
||||
|
||||
<rule ref="Modernize" />
|
||||
<rule ref="NormalizedArrays" />
|
||||
|
||||
<!-- exclude our migrations directory from the violation check-->
|
||||
<exclude-pattern>*.blade.php</exclude-pattern>
|
||||
|
||||
<!-- ignore warnings and display ERRORS only -->
|
||||
<arg value="np"/>
|
||||
|
||||
<rule ref="Universal.Namespaces.DisallowCurlyBraceSyntax">
|
||||
<exclude name="Universal.Namespaces.DisallowCurlyBraceSyntax.Forbidden" />
|
||||
</rule>
|
||||
|
||||
<rule ref="Squiz.Commenting.FunctionComment">
|
||||
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows" />
|
||||
<exclude name="Squiz.Commenting.VariableComment.MissingReturn" />
|
||||
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital" />
|
||||
</rule>
|
||||
|
||||
<rule ref="Squiz.Commenting.FunctionCommentThrowTag">
|
||||
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing" />
|
||||
</rule>
|
||||
|
||||
<rule ref="Squiz.Commenting.ClassComment" />
|
||||
|
||||
<rule ref="Squiz.Commenting.VariableComment" >
|
||||
<!-- Put back in at some point -->
|
||||
<exclude name="Squiz.Commenting.VariableComment.Missing" />
|
||||
</rule>
|
||||
|
||||
<!-- Keeping this in here for future use
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
<properties>
|
||||
<property name="lineLimit" value="180"/>
|
||||
<property name="absoluteLineLimit" value="210"/>
|
||||
</properties>
|
||||
</rule>
|
||||
-->
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user