Skip to content

Commit add8165

Browse files
committed
add ci file
1 parent a850718 commit add8165

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

phpci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
build_settings:
2+
clone_depth: 1
3+
verbose: false
4+
ignore:
5+
- "example"
6+
7+
test:
8+
php_code_sniffer:
9+
standard: "PSR4"
10+
allowed_errors: -1
11+
allowed_warnings: -1
12+
ignore:
13+
- "example"
14+
standard: "./phpcs.xml"
15+
16+
php_docblock_checker:
17+
path: "./"
18+
19+
php_loc:
20+
directory: "./"

phpcs.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--suppress XmlUnboundNsPrefix, XmlUnboundNsPrefix -->
3+
<ruleset name="php-diff">
4+
<description>overview</description>
5+
<rule ref="Generic.Classes.DuplicateClassName"/>
6+
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
7+
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
8+
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
9+
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
10+
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
11+
<rule ref="Generic.Functions.CallTimePassByReference"/>
12+
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
13+
<rule ref="Generic.PHP.DeprecatedFunctions"/>
14+
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
15+
<rule ref="Generic.PHP.LowerCaseConstant"/>
16+
<rule ref="Generic">
17+
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/>
18+
<exclude name="Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed"/>
19+
</rule>
20+
21+
<rule ref="Squiz.PHP.Eval"/>
22+
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
23+
<rule ref="Squiz.PHP.NonExecutableCode"/>
24+
25+
<rule ref="PSR1">
26+
<exclude name="PSR1.Files.SideEffects"/>
27+
</rule>
28+
</ruleset>

0 commit comments

Comments
 (0)