forked from PodcastGenerator/PodcastGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
34 lines (27 loc) · 1.33 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<ruleset name="Podcast Generator Coding Style" namespace="PodcastGenerator\CS\Standard">
<file>PodcastGenerator</file>
<file>contrib</file>
<file>tests</file>
<!-- Ignore anything we've pulled in with Composer -->
<exclude-pattern>PodcastGenerator/vendor/*</exclude-pattern>
<!-- Ignore 3rd party JS and CSS in themes -->
<exclude-pattern>js/(bootstrap|jquery|popper)(\.min)?\.js$</exclude-pattern>
<exclude-pattern>style/(bootstrap|font-awesome)(\.min)?\.css$</exclude-pattern>
<exclude-pattern>core/bootstrap/*</exclude-pattern>
<!-- Ignore test coverage reports, if they're present -->
<exclude-pattern>tests/coverage/*</exclude-pattern>
<!-- Use PSR-12 code standard rules - https://www.php-fig.org/psr/psr-12/ -->
<rule ref="PSR12">
<type>warning</type>
<exclude name="PSR12.Files.OpenTag.NotAlone" />
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock" />
</rule>
<!-- For sake of Windows development, ignore EOL. Use Git core.autocrlf. -->
<rule ref="Generic.Files.LineEndings">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
</rule>
<!-- Run against the PHPCompatibility ruleset -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="8.0" />
</ruleset>