# VERILOG022: Branching preprocessor directives should be aligned to the left ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
--LOWConsistency | Formatted2minsynthesis, vscode, lowrisc, linter, simulation
``` ## Description ```{raw} html

Articles & blog posts

Branching preprocessor directives ( `ifdef, `ifndef, `else, `elsif , `endif) should be aligned to the left, even if they are nested. The objective is to easily spot those conditional directives.

Noncompliant code example

package my_package;
  `ifdef FOO
    parameter bit ABC = 1;
  `else
    parameter bit ABC = 2;
  `endif
endpackage : my_package

Compliant solution

package my_package;
`ifdef FOO
  parameter bit ABC = 1;
`else
  parameter bit ABC = 2;
`endif
endpackage : my_package
``` ## Parameters No parameters. ```{raw} html ```