Skip to content

Commit 3b83d48

Browse files
authored
Merge pull request #342 from humanmade/asset-manifest-exceptions
Exclude @wordpress/scripts-generated *.asset.php files from certain rules
2 parents 601ff01 + 21c39e5 commit 3b83d48

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<!-- When submitting a PR for a feature, add the appropriate prerelease heading here
44
and fill in the contents as you go. This simplifies later release management. -->
55

6+
## 2.3.0
7+
8+
- Do not lint PHP within `build/` and `dist/` build directories
9+
610
## 2.2.1
711

812
- Do not flag get_block_wrapper_attributes as an escaping risk, this is a false positive as function escapes internally #340

HM/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
<exclude-pattern>node_modules/*</exclude-pattern>
66
<exclude-pattern>vendor/*</exclude-pattern>
7+
<!-- Exempt common build directories from stylistic rules. -->
8+
<exclude-pattern>build/*</exclude-pattern>
9+
<exclude-pattern>dist/*</exclude-pattern>
710

811
<arg name="extensions" value="php" />
912

0 commit comments

Comments
 (0)