Skip to content

Commit ecfc063

Browse files
committed
chore: update example with cache, severity, comments
1 parent 8fe4b96 commit ecfc063

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
66

77
## [Unreleased]
88
- dev: Remove `Squiz.Commenting.FunctionComment.ParamCommentFullStop` and `Squiz.Commenting.FunctionComment.EmptyThrows` from `WPGraphQL-Strict`.
9+
- chore: Update `phpcs.xml.dist.example` to set the `cache` and `severity` values, and add additional inline-comments.
910

1011
## [1.0.0-beta.1] - 2023-06-05
1112
- Initial release

phpcs.xml.dist.example

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@
1515
<!-- How to scan: include CLI args so you don't need to pass them manually -->
1616
<!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
1717
<!-- Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
18-
<arg value="sp"/>
18+
1919
<!-- Show sniff and progress -->
20-
<arg name="basepath" value="./"/>
20+
<arg value="sp"/>
2121
<!-- Strip the file paths down to the relevant bit -->
22+
<arg name="basepath" value="./"/>
23+
<!-- Enable colors in report -->
2224
<arg name="colors"/>
25+
<!-- Only lint php files by default -->
2326
<arg name="extensions" value="php"/>
27+
<!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
28+
<arg name="cache" value="tests/_output/cache.json" />
2429
<!-- Enables parallel processing when available for faster results. -->
2530
<arg name="parallel" value="20"/>
31+
<!-- Set severity to 1 to see everything that isn't effectively turned off. -->
32+
<arg name="severity" value="1" />
2633

2734
<!-- Ruleset Config: set these to match your project constraints-->
2835

0 commit comments

Comments
 (0)