Skip to content

Commit 7b3bfea

Browse files
committed
Added note about auto-fixing
1 parent 2845af7 commit 7b3bfea

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CodeSniffer/Reports/Full.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ public function generateFileReport(
125125
}//end foreach
126126
}//end foreach
127127

128+
echo str_repeat('-', $width).PHP_EOL;
129+
echo 'UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY'.PHP_EOL;
128130
echo str_repeat('-', $width).PHP_EOL.PHP_EOL;
131+
129132
return true;
130133

131134
}//end generateFileReport()

CodeSniffer/Reports/Source.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public function generate(
163163
echo str_repeat('-', $width).PHP_EOL;
164164
echo 'A TOTAL OF '.($totalErrors + $totalWarnings).' SNIFF VIOLATION(S) ';
165165
echo 'WERE FOUND IN '.count($this->_sourceCache).' SOURCE(S)'.PHP_EOL;
166+
167+
echo str_repeat('-', $width).PHP_EOL;
168+
echo 'UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY'.PHP_EOL;
166169
echo str_repeat('-', $width).PHP_EOL.PHP_EOL;
167170

168171
if ($toScreen === true

CodeSniffer/Reports/Summary.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ public function generate(
118118
echo 'AND '.$totalWarnings.' WARNING(S) ';
119119

120120
echo 'WERE FOUND IN '.$totalFiles.' FILE(S)'.PHP_EOL;
121+
122+
echo str_repeat('-', $width).PHP_EOL;
123+
echo 'UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY'.PHP_EOL;
121124
echo str_repeat('-', $width).PHP_EOL.PHP_EOL;
122125

123126
if ($toScreen === true

CodeSniffer/Reports/VersionControl.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ public function generate(
223223
echo str_repeat('-', $width).PHP_EOL;
224224
echo 'A TOTAL OF '.$errorsShown.' SNIFF VIOLATION(S) ';
225225
echo 'WERE COMMITTED BY '.count($this->_authorCache).' AUTHOR(S)'.PHP_EOL;
226+
227+
echo str_repeat('-', $width).PHP_EOL;
228+
echo 'UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY'.PHP_EOL;
226229
echo str_repeat('-', $width).PHP_EOL.PHP_EOL;
227230

228231
if ($toScreen === true

0 commit comments

Comments
 (0)