Show warnings instead errors
Hello Markus,
we run phpcs task with PSR2 and own rules. In same cases our results includes "warnings" An example:
<?xml version="1.0" encoding="UTF-8"?> <phpcs version="3.2.3"> <file name="/PATH/FILE" errors="0" warnings="2" fixable="0"> <warning line="132" column="152" source="Generic.Files.LineLength.TooLong" severity="5" fixable="0">Line exceeds 140 characters; contains 152 characters</warning> <warning line="133" column="152" source="Generic.Files.LineLength.TooLong" severity="5" fixable="0">Line exceeds 140 characters; contains 152 characters</warning> </file> </phpcs>
If the next step your plugin, our build process will broken. Can you help us? Can we use "Errors" and "Warnings" in our result-file?
Best regards, Christian
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Christian, there was indeed a problem when using this addon with your provided example - a NullPointerException occured.
I just published a new version 2.0.6 of the addon https://marketplace.atlassian.com/apps/1215450/view-checkstyle-codesniffer , please give it a try. If the problem still occurs, please re-open this issue.
- Log in to comment
Hi Christian,
I will have a look today and provide feedback.