@@ -64,7 +64,7 @@ private function validateMultiLinesInShortDescription(
6464 && $ tokens [$ shortPtrEnd ]['code ' ] !== T_DOC_COMMENT_TAG
6565 ) {
6666 $ error = 'Short description should not be in multi lines ' ;
67- $ phpcsFile ->addFixableError ($ error , $ shortPtrEnd + 1 , 'MethodAnnotation ' );
67+ $ phpcsFile ->addError ($ error , $ shortPtrEnd + 1 , 'MethodAnnotation ' );
6868 }
6969 }
7070
@@ -95,7 +95,7 @@ private function validateSpacingBetweenShortAndLongDescriptions(
9595 && $ tokens [$ shortPtrEnd ]['code ' ] !== T_DOC_COMMENT_TAG
9696 ) {
9797 $ error = 'There must be exactly one blank line between lines short and long descriptions ' ;
98- $ phpcsFile ->addFixableError ($ error , $ shortPtrEnd + 1 , 'MethodAnnotation ' );
98+ $ phpcsFile ->addError ($ error , $ shortPtrEnd + 1 , 'MethodAnnotation ' );
9999 }
100100 if ($ shortPtrEnd != $ shortPtr ) {
101101 $ this ->validateLongDescriptionFormat ($ phpcsFile , $ shortPtrEnd , $ commentEndPtr , $ emptyTypeTokens );
@@ -123,16 +123,16 @@ private function validateShortDescriptionFormat(
123123 $ tokens = $ phpcsFile ->getTokens ();
124124 if ($ tokens [$ shortPtr ]['line ' ] !== $ tokens [$ stackPtr ]['line ' ] + 1 ) {
125125 $ error = 'No blank lines are allowed before short description ' ;
126- $ phpcsFile ->addFixableError ($ error , $ shortPtr , 'MethodAnnotation ' );
126+ $ phpcsFile ->addError ($ error , $ shortPtr , 'MethodAnnotation ' );
127127 }
128128 if (strtolower ($ tokens [$ shortPtr ]['content ' ]) === '{@inheritdoc} ' ) {
129129 $ error = 'If the @inheritdoc not inline it shouldn’t have braces ' ;
130- $ phpcsFile ->addFixableError ($ error , $ shortPtr , 'MethodAnnotation ' );
130+ $ phpcsFile ->addError ($ error , $ shortPtr , 'MethodAnnotation ' );
131131 }
132132 $ shortPtrContent = $ tokens [$ shortPtr ]['content ' ];
133133 if (preg_match ('/^\p{Ll}/u ' , $ shortPtrContent ) === 1 ) {
134134 $ error = 'Short description must start with a capital letter ' ;
135- $ phpcsFile ->addFixableError ($ error , $ shortPtr , 'MethodAnnotation ' );
135+ $ phpcsFile ->addError ($ error , $ shortPtr , 'MethodAnnotation ' );
136136 }
137137 $ this ->validateNoExtraNewLineBeforeShortDescription (
138138 $ phpcsFile ,
@@ -171,16 +171,16 @@ private function validateLongDescriptionFormat(
171171 $ longPtr = $ phpcsFile ->findNext ($ emptyTypeTokens , $ shortPtrEnd + 1 , $ commentEndPtr - 1 , true );
172172 if (strtolower ($ tokens [$ longPtr ]['content ' ]) === '@inheritdoc ' ) {
173173 $ error = '@inheritdoc imports only short description, annotation must have long description ' ;
174- $ phpcsFile ->addFixableError ($ error , $ longPtr , 'MethodAnnotation ' );
174+ $ phpcsFile ->addError ($ error , $ longPtr , 'MethodAnnotation ' );
175175 }
176176 if ($ longPtr !== false && $ tokens [$ longPtr ]['code ' ] === T_DOC_COMMENT_STRING ) {
177177 if ($ tokens [$ longPtr ]['line ' ] !== $ tokens [$ shortPtrEnd ]['line ' ] + 2 ) {
178178 $ error = 'There must be exactly one blank line between descriptions ' ;
179- $ phpcsFile ->addFixableError ($ error , $ longPtr , 'MethodAnnotation ' );
179+ $ phpcsFile ->addError ($ error , $ longPtr , 'MethodAnnotation ' );
180180 }
181181 if (preg_match ('/^\p{Ll}/u ' , $ tokens [$ longPtr ]['content ' ]) === 1 ) {
182182 $ error = 'Long description must start with a capital letter ' ;
183- $ phpcsFile ->addFixableError ($ error , $ longPtr , 'MethodAnnotation ' );
183+ $ phpcsFile ->addError ($ error , $ longPtr , 'MethodAnnotation ' );
184184 }
185185 }
186186 }
@@ -203,7 +203,7 @@ public function validateTagsSpacingFormat(File $phpcsFile, int $commentStartPtr,
203203 && strtolower ($ commentTagPtrContent ) !== '@inheritdoc '
204204 ) {
205205 $ error = 'There must be exactly one blank line before tags ' ;
206- $ phpcsFile ->addFixableError ($ error , $ firstTagPtr , 'MethodAnnotation ' );
206+ $ phpcsFile ->addError ($ error , $ firstTagPtr , 'MethodAnnotation ' );
207207 }
208208 }
209209 }
@@ -240,7 +240,7 @@ public function validateTagGroupingFormat(File $phpcsFile, int $commentStartPtr)
240240 if ($ paramGroupId !== null
241241 && $ paramGroupId !== $ groupId ) {
242242 $ error = 'Parameter tags must be grouped together ' ;
243- $ phpcsFile ->addFixableError ($ error , $ tag , 'MethodAnnotation ' );
243+ $ phpcsFile ->addError ($ error , $ tag , 'MethodAnnotation ' );
244244 }
245245 if ($ paramGroupId === null ) {
246246 $ paramGroupId = $ groupId ;
@@ -273,7 +273,7 @@ public function validateTagAligningFormat(File $phpcsFile, int $commentStartPtr)
273273
274274 if (!$ this ->allTagsAligned ($ actualPositions )
275275 && !$ this ->noneTagsAligned ($ actualPositions , $ noAlignmentPositions )) {
276- $ phpcsFile ->addFixableError (
276+ $ phpcsFile ->addError (
277277 'Tags visual alignment must be consistent ' ,
278278 $ stackPtr ,
279279 'MethodArguments '
@@ -322,7 +322,7 @@ private function validateNoExtraNewLineBeforeShortDescription(
322322 $ prevPtr = $ phpcsFile ->findPrevious ($ emptyTypeTokens , $ commentEndPtr - 1 , $ commentStartPtr , true );
323323 if ($ tokens [$ prevPtr ]['line ' ] < ($ tokens [$ commentEndPtr ]['line ' ] - 1 )) {
324324 $ error = 'Additional blank lines found at end of the annotation block ' ;
325- $ phpcsFile ->addFixableError ($ error , $ commentEndPtr , 'MethodAnnotation ' );
325+ $ phpcsFile ->addError ($ error , $ commentEndPtr , 'MethodAnnotation ' );
326326 }
327327 }
328328
@@ -351,7 +351,7 @@ public function validateDescriptionFormatStructure(
351351 && strtolower ($ commentTagPtrContent ) !== '@inheritdoc '
352352 ) {
353353 $ error = 'Missing short description ' ;
354- $ phpcsFile ->addFixableError ($ error , $ commentStartPtr , 'MethodAnnotation ' );
354+ $ phpcsFile ->addError ($ error , $ commentStartPtr , 'MethodAnnotation ' );
355355 } else {
356356 $ this ->validateShortDescriptionFormat (
357357 $ phpcsFile ,
0 commit comments