Skip to content

Commit b0eb992

Browse files
committed
Temporarily disable composer autoload for package, simplify wp-enforcer commands
1 parent 11e3e90 commit b0eb992

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

composer.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"issues": "https://github.com/wp-bootstrap/wp-bootstrap-navwalker/issues/",
1717
"source": "https://github.com/wp-bootstrap/wp-bootstrap-navwalker/"
1818
},
19-
"autoload": {
20-
"files": ["class-wp-bootstrap-navwalker.php"]
21-
},
2219
"require": {
2320
"composer/installers": "~1.0"
2421
},
@@ -30,10 +27,10 @@
3027
},
3128
"scripts": {
3229
"post-install-cmd": [
33-
"wp-enforcer --ruleset=phpcs.ruleset.xml"
30+
"wp-enforcer"
3431
],
3532
"post-update-cmd": [
36-
"wp-enforcer --ruleset=phpcs.ruleset.xml"
33+
"wp-enforcer"
3734
]
3835
}
3936
}

composer.lock

Lines changed: 22 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WordPress Coding Standards for Plugins">
3+
<description>Generally-applicable sniffs for WordPress plugins</description>
4+
5+
<rule ref="WordPress-Core" />
6+
<rule ref="WordPress-Docs" />
7+
8+
<exclude-pattern>*/node_modules/*</exclude-pattern>
9+
<exclude-pattern>*/vendor/*</exclude-pattern>
10+
<exclude-pattern>*/tests/*</exclude-pattern>
11+
</ruleset>

0 commit comments

Comments
 (0)