sonar-openedge icon indicating copy to clipboard operation
sonar-openedge copied to clipboard

IndentationCheck - preprocessor directives

Open dominickdm opened this issue 1 year ago • 1 comments

Hello,

Today, we are struggling with the IndentationCheck rule in legacy code using preprocessor directives. For readability, we put statements that only apply for TTY (or not) with 1 extra tab. But this violates the IndentationCheck rule.

Example below: image

Do you see a possibility to enhance this? I guess the file is preprocessed for SonarLint analysis? Maybe if the rule could be configured to check the non-preprocessed code and ignore preprocessed blocks?

dominickdm avatar Dec 06 '23 07:12 dominickdm