Skip to content

Missing misra rule-text-file should still allow for the analysis#4458

Merged
orbitcowboy merged 1 commit intocppcheck-opensource:mainfrom
dzid26:rule-texts-file-check
Sep 12, 2022
Merged

Missing misra rule-text-file should still allow for the analysis#4458
orbitcowboy merged 1 commit intocppcheck-opensource:mainfrom
dzid26:rule-texts-file-check

Conversation

@dzid26
Copy link
Copy Markdown
Contributor

@dzid26 dzid26 commented Sep 10, 2022

I removed error throwing when misra rules text file is missing. If the file is present the rules text will be displayed, if not it will let the user know the file is missing.

This improves the experience when misra.json is distributed together with a project.
Currently, in order not to break static analysis checker configuration (in my case realtime editor checker flylint), I need to provide dummy rules file (due to licensing). But that gets annoying for version control, when the file is replaced locally with proper rules file. This change allows to remove the dummy file from version control. Now whoever owns the rule file, can just drop it in the project path and get the proper violations output.

@dzid26 dzid26 changed the title Missing rule-text-file to not stop the analysis Missing misra rule-text-file should still allow for the analysis Sep 10, 2022
Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. If all the CI will be green it's OK for me to merge.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Sep 10, 2022

have you contributed to Cppcheck before? If not.. I would like to know which name you would like to get added in the AUTHORS file.

@dzid26
Copy link
Copy Markdown
Contributor Author

dzid26 commented Sep 10, 2022

I haven't contributed before. You can add:
********

Thank you

@orbitcowboy orbitcowboy merged commit 3887d6d into cppcheck-opensource:main Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants