How do I customize the indentation in the custom rules?
9 views (last 30 days)
Show older comments
I am new to using Polyspace Bug finder. I want to Indent a statement by four spaces where required in my c program. I couldn't find anything related to indentation under 'Coding standard & Code metrics'>Custom rules. How Can I customize identation and edit it in the custom rules without using any other standards?
Anirban on 8 Feb 2023
Edited: Anirban on 8 Feb 2023
As of release R2022b, there is no rule related to indentation in Polyspace Bug Finder.
Most IDE-s and editors these days have ways to automatically recognize the language and enter the required four spaces. For instance, in the free editor Notepad++, you can go to Settings > Preferences and modify the number of spaces used for tabs and indentations inside functions. In most cases, you do not need a checker to implement this rule.
Code Verification Polyspace Bug Finder Configure and Run Analysis Complete List of Polyspace Bug Finder Analysis Engine Options Bug Finder Analysis
Find more on Bug Finder Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!