Skip to content

Commit

Permalink
🔧 Adjust where sniff codes are shown
Browse files Browse the repository at this point in the history
Some reports a easier to read without `-s` being forced in, shift this to be where it needs to be
  • Loading branch information
n8-dev committed Nov 16, 2023
1 parent 1966c3a commit 171adc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions bespoke-phpcs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php

$_SERVER['argv'][] = '-s'; // Include sniff codes
$_SERVER['argv'][] = 'app'; // scan app folder

// Use rules defined in project root or by default what defined in bespoke standards
Expand Down
3 changes: 1 addition & 2 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>*/thirdparty/*</exclude-pattern>

<!-- Show progress and output sniff names on violation, and add colours -->
<!-- Show progress, and add colours -->
<arg value="p" />
<arg name="colors" />
<arg value="s" />

<!-- Use PSR-2 as a base standard -->
<rule ref="PSR2">
Expand Down

0 comments on commit 171adc7

Please sign in to comment.