Are Defects Enabled by Default not enabled with Checkers Activation File?

9 ビュー (過去 30 日間)
Ismet
Ismet 2025 年 7 月 18 日
コメント済み: Ismet 2025 年 7 月 24 日
When I used -checkers-selection-file, approx. 100 Defects were enabled by default (and I had 21 violations). See also https://www.mathworks.com/help/bugfinder/ug/polyspace-bug-finder-defects-checkers-enabled-by-default.html
I now switched to the option -checkers-activation-file, which is an improved version, and run the Bug Finder scan in the CI/CD pipeline and realized that I have 0 violations for Defects.
How is that possible and what did I wrong?
Or do I have to explicitly activate every rule?

採用された回答

Ronit
Ronit 2025 年 7 月 21 日
Hello @Ismet,
When you use the "-checkers-activation-file" option in Polyspace Bug Finder, defect checkers are not enabled by default. Only those defect and coding rule checkers that you explicitly set to "on" in your activation XML file will be checked during analysis. If your activation file is empty or doesn’t activate any defect checkers, the analysis will not report violations, even if there are issues in your code.
This behavior is different from using "-checkers-selection-file", which always enables the default set of defect checkers in addition to any additional coding rule checkers you specify. That is why you observed violations before, but now you get none.
I hope this resolves your query!
  6 件のコメント
Ronit
Ronit 2025 年 7 月 24 日
Yes, it is possible to use the checkers this way.
Ismet
Ismet 2025 年 7 月 24 日
Thx!

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by