-
Notifications
You must be signed in to change notification settings - Fork 77
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
Support running C++ MISRA rules #4604
Labels
Projects
Milestone
Comments
georgii-borovinskikh-sonarsource
created this issue from a note
in Analyzer updates (July 2023)
(To do)
Jul 26, 2023
georgii-borovinskikh-sonarsource
moved this from To do
to In progress
in Analyzer updates (July 2023)
Jul 27, 2023
georgii-borovinskikh-sonarsource
moved this from In progress
to To do
in Analyzer updates (July 2023)
Jul 27, 2023
georgii-borovinskikh-sonarsource
changed the title
Some CFamily rules are not loaded
Some CFamily rules are not loaded fully
Jul 27, 2023
georgii-borovinskikh-sonarsource
added
Area: Analyzer
Language: CFamily
C/C++ analysis
Investigate
labels
Jul 27, 2023
georgii-borovinskikh-sonarsource
removed this from To do
in Analyzer updates (July 2023)
Jul 27, 2023
duncanp-sonar
changed the title
Some CFamily rules are not loaded fully
MISRA rules are not supported
Jul 27, 2023
This was referenced Jul 28, 2023
duncanp-sonar
moved this from In progress
to Review in progress
in Analyzer updates (July 2023)
Jul 28, 2023
duncanp-sonar
changed the title
MISRA rules are not supported
Support running C++ MISRA rules
Jul 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Version v6.47 of the CFamily adds MISRA rules for C and C++ (see #4571). However, the metadata data for these rules is stored in separate files from the "normal" rules, so the MISRA rules are not recognised by SonarLint for Visual Studio and so are not executed.
Note: all of the MISRA rules are disabled by default.
In standalone mode end users will be able toexecute them by explicitly enabling a rule in the
settings.json
file.The rules will be executed in Connected Mode by activating them in the project's Quality Profile (or by setting the Quality Profile to the built-in
Mission critical
Quality Profile).Notes
The MISRA23 rules are not added to the main list and quality profile in the plugin jar. They are placed in a separate folder with a separate rule list and QP (which includes normal rules as well).
TODO
TODO - testing - standalone mode
TODO - testing - Connected Mode
The text was updated successfully, but these errors were encountered: