添加forwardPorts端口并完善工作流

This commit is contained in:
2025-12-09 15:54:56 +08:00
parent 2b129e67c6
commit 26d5ff6a2d
9 changed files with 291 additions and 15 deletions

31
phpcs.xml Normal file
View 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>