-
-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baseline ignoring MaxLineLength: on 1.0.1 #1906
Comments
If you want to ignore all instances of MaximumLineLength you could disable the rule in the YAML config file instead. I don't know the history of baseline file support so I'm not sure whether adding items to the baseline like that was ever actually supported, but I might be wrong. The docs only describe adding the entire signature to the baseline. |
@nicodn Please be aware that there are two rules which basically do the same. In your code only HTH |
Hi @schalkms , thanks for your reply. I tried adding It's strange because on |
Hi, the baseline does not support the formatting ruleset (yet). Additionally we could indeed support suppressing formatting findings via baseline like: |
@arturbosch What do you mean by that? |
Yes, the reporting logic (Entity, Location and stuff) could check if this finding is reported on a KtFile and add the line number to the entities |
@arturbosch Some additional info. It looks like the formatting of the MaxLineLength rule changed for certain elements. I recently upgraded to 1.0.1 from RC14 and saw a lot of errors that were already in the baseline. I reran the baseline and saw that rules previously formatted like this:
became this after the baseline was regenerated:
They are no longer uniquely identified and apparently no longer match older baselines. |
I could not reproduce this issue, my tested MaxLineLength findings have a correct signature. |
I could reproduce this on the sonar-kotlin repository. |
@arturbosch Is this reproducible after 6b21237 in your scenario? |
@schalkms baseline suppressing works as expected in current master ^^ |
Expected Behavior
I upgraded from
1.0.0-RC14
to1.0.1
and my baseline file stopped working.Observed Behavior
I had a baseline file like so:
After upgrading I get over 200 issues failed with
MaxLineLength
. Even if I add<ID>MaxLineLength:</ID>
to the baseline file it fails.Steps to Reproduce
Relevant build.gradle
Context
If I regenerate the baseline it adds each of the occurrences of
MaxLineLength
with it's own signature and at this point it works but the baseline file becomes unmaintainable.Your Environment
1.0.1
5.2.1
The text was updated successfully, but these errors were encountered: