-
Notifications
You must be signed in to change notification settings - Fork 275
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
Include parser for Polyspace static analysis tool #1412
Include parser for Polyspace static analysis tool #1412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires a release (or incremental version) of https://github.com/jenkinsci/analysis-model-api-plugin before we can merge this change. You can reference that version in the pom.xml if it has been published.
Regarding your questions:
Is it possible to change the names of the severity categories to something else other than Low, Normal, High? For example: Error, Not-Run, Warning, Incomplete.
No this is not possible, all parsers share the same model and the same severities.
Regarding the License for the addition of icons in Warnings-NG, what is expected to be provided if the icon was created based on the logo of the tool (Cropped and resized) ?
You need to use the logo license as starting point. What is the current license? If this license allows modifications that we simply can stick to it. Note: it would be helpful to use an SVG if possible.
Since the changes done on analysis-model have been released, do i also need to do any changes on analysis-model-api for the version or is it updated already? |
I updated the pom.xml so you need to rebase and retry. |
Codecov Report
@@ Coverage Diff @@
## master #1412 +/- ##
============================================
+ Coverage 79.80% 79.83% +0.02%
- Complexity 1471 1473 +2
============================================
Files 252 254 +2
Lines 5636 5644 +8
Branches 425 425
============================================
+ Hits 4498 4506 +8
Misses 986 986
Partials 152 152
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hi, |
This is a check for me so that I do not merge without a label. |
} | ||
|
||
/** Descriptor for this static analysis tool. */ | ||
@Symbol("PolyspaceParse") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that I missed that detail in my analysis-model PR.
Wouldn't that be a more appropriate symbol?
@Symbol("PolyspaceParse") | |
@Symbol("polyspaceParser") |
Where does the Parse
part came from? Is the tool called Polyspace Parse? Or is this suffix solely from your parser?
Either way: symbols need to use CamelCase, IDs need to use url-notation (all lower case). I can fix that right away in the analysis model as well.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was to differentiate between polyspace commands and the parser command, just in case there is a command from polyspace tool defined in the same way as 'polyspace'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Then let us use polyspaceParser
if that is fine for you as well, since we already have several other tools that do it this way (PMD, AndroidLint).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The appropriate ID would then be polyspace-parser
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes polyspace-parser would be fine then. I will change that now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In analysis-model as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes also in analysis-model. But you can change that ? Since the pull request is already approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this library is under my control and only used by tools that I control. So no worries...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will also do the same for the Simulink check Parser in the other Pull request
Polyspace icon: | ||
|
||
The Polyspace icon is based on tool logo from https://w...mathworks.com/products/polyspace.html | ||
Licensed by The MathWorks, Inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the actual license? Are we allowed to add it to our MIT based project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After checking the licence file, we are not sure if we can use it this way. I will remove the icon file and push the changes again, will that be okay ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this would be more safe. Image licensing is always problematic...
Hello, I am not sure what is the problem with this pull request. Can you please let me know if there is anything to be done from my side. Thanks ! |
@@ -25,7 +25,7 @@ | |||
<changelist>-SNAPSHOT</changelist> | |||
<module.name>${project.groupId}.warnings.ng</module.name> | |||
|
|||
<analysis-model-api.version>10.21.0</analysis-model-api.version> | |||
<analysis-model-api.version>10.22.0</analysis-model-api.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you simply forgot to update the model version.
This pull request is to include a parser for .csv result files generated from Polyspace tool.
This request is linked analysis-model pull request: https://github.com/jenkinsci/analysis-model/pull/863
Link for polyspace static analysis tool: https://de.mathworks.com/products/polyspace.html