添加forwardPorts端口并完善工作流
This commit is contained in:
31
phpcs.xml
Normal file
31
phpcs.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="PHP Project Coding Standard">
|
||||
<description>PHP CodeSniffer configuration for the project</description>
|
||||
|
||||
<!-- Check all PHP files -->
|
||||
<file>.</file>
|
||||
|
||||
<!-- Exclude vendor and other directories -->
|
||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
||||
<exclude-pattern>*.js</exclude-pattern>
|
||||
<exclude-pattern>*.css</exclude-pattern>
|
||||
|
||||
<!-- Use PSR-12 coding standard -->
|
||||
<rule ref="PSR12"/>
|
||||
|
||||
<!-- Show progress and use colors -->
|
||||
<arg name="colors"/>
|
||||
<arg value="p"/>
|
||||
|
||||
<!-- Additional rules -->
|
||||
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
|
||||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
|
||||
<rule ref="Generic.Commenting.Todo"/>
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
<properties>
|
||||
<property name="lineLimit" value="120"/>
|
||||
<property name="absoluteLineLimit" value="150"/>
|
||||
</properties>
|
||||
</rule>
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user