Skip to content

Commit f479882

Browse files
authored
Merge pull request #17 from spaze/spaze/xml-linter
XML-lint the rules file
2 parents f779ce1 + eabaff3 commit f479882

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/xml.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: XML Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
xml-linter:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Install dependencies
11+
run: composer update --no-progress --no-interaction
12+
- name: Lint ruleset.xml
13+
uses: ChristophWurst/xmllint-action@v1
14+
with:
15+
xml-file: src/ruleset.xml
16+
xml-schema-file: vendor/squizlabs/php_codesniffer/phpcs.xsd

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@
1818
},
1919
"autoload": {
2020
"psr-4": {"Spaze\\CodingStandard\\": "src"}
21+
},
22+
"config": {
23+
"allow-plugins": {
24+
"dealerdirect/phpcodesniffer-composer-installer": true
25+
}
2126
}
2227
}

0 commit comments

Comments
 (0)