You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exit on error when something was wrong executing the command
When something abnormal happens (wrong configuration, missing stuff,
connectivity problems, etc., the phpcs execution can end with error.
But, if max-warnings is enabled (>=0), then the count of errors and
warnings (that is always 0 on error) gets precedence, hiding the
real exit status. Hence it passes, when really it was not executed.
Now we detect those abnormal situations and exit with error when
something in the execution goes wrong.
Covered with tests, checking all the possible max-warnings combinations.
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
15
15
16
16
### Fixed
17
17
- Solved a problem with the validation of `dataformat` plugin lang strings.
18
+
- Fixed a problem with the `phpcs` command returning with success when some (configuration, installation, ...) problem was causing it not to be executed at all.
0 commit comments