#select forbidden-macro,uvm-macro-semicolon # the default forbidden macro, and the `;` the UVM macros do not want module m; initial begin `uvm_warning("A", "B") //^ 5 forbidden-macro `uvm_info("A", "B", UVM_LOW); //^ 33 uvm-macro-semicolon `uvm_error("A", "B") end endmodule ==== #select forbidden-macro #options forbidden-macro.macros = ["my_macro"] # the option replaces Verible's one-name list module m; initial begin `uvm_warning("A", "B") `my_macro(1) //^ 5 forbidden-macro end endmodule ==== #select macro-string-concatenation # `` inside a plain string is not evaluated; inside `"..."` it is `define GLUE(a, b) $display("a``b") //^ 31 macro-string-concatenation `define OK(a, b) $display(`"a``b`") module m; endmodule ==== #select endif-comment # a bare `endif is named by the safe fix `ifdef SYNTHESIS module m; endmodule `endif //^ 1 endif-comment ---- `ifdef SYNTHESIS module m; endmodule `endif // SYNTHESIS //^ 1 endif-comment ==== #select endif-comment # nesting pairs each `endif with its own condition, and a naming comment passes `ifdef A `ifdef B module m; endmodule `endif // B `endif //^ 1 endif-comment ==== #select forbid-line-continuations # a `define may be broken across lines and a string may not. The positive # case has no marker home here: the finding lands on the *first* line of a # multi-line string, and a marker attaches to the line above it — which is # inside the string. Pinned in the rule's unit tests instead, as `posix-eof` # is; what this case pins is that a multi-line macro is never reported. `define TWO_LINES \ wire a; \ wire b; module m; endmodule ==== #select numeric-format-string-style # the prefix must name the base the specifier prints module m; initial begin $display("0x%0h and 'b%0b and %d", a, b, c); $display("0x%0b", a); //^ 15 numeric-format-string-style $display("0d%0d", a); //^ 15 numeric-format-string-style end endmodule