Skip to content

Commit f2ea42b

Browse files
authored
Add phpcs to github workflow (#66)
1 parent d0d0483 commit f2ea42b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ jobs:
3333
run: composer install --no-progress --prefer-dist --optimize-autoloader
3434
- name: phpunit
3535
run: php vendor/bin/phpunit
36+
- name: phpcs
37+
run: php vendor/bin/phpcs

phpcs.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="Hostnet PHPCodeSniffer Standard">
33
<rule ref="Hostnet"/>
4-
<exclude-pattern>*.inc</exclude-pattern>
4+
<!-- Copied from mediawiki-codesniffer -->
5+
<exclude-pattern>src/Hostnet/Sniffs/Classes/MultipleEmptyLinesSniff.php</exclude-pattern>
56
</ruleset>

0 commit comments

Comments
 (0)