Files
lucisv/crates/vlog_linter/tests/cases/no_tabs.lint
T

80 lines
1.2 KiB
Plaintext

# a tab is reported at its column
module m;
wire a;
//^ 1 no-tabs
endmodule
====
# one finding per line, at the first tab, however many tabs there are
module m;
wire a;
//^ 1 no-tabs
endmodule
====
# a tab in the middle of a line is found too
module m;
wire a;
//^ 7 no-tabs
endmodule
====
# spaces are quiet
module m;
wire a;
endmodule
====
# a tab inside a string literal is data
module m;
initial $display("a b");
endmodule
====
# waived on the same line
module m;
wire a; // lucisv: waive no-tabs
endmodule
====
# waived from the line above
module m;
// lucisv: waive no-tabs
wire a;
endmodule
====
# a waiver that waives nothing is reported
module m;
wire a; // lucisv: waive no-tabs
//^ 11 unused-waiver
endmodule
====
# fix: each tab becomes the indent width
module m;
wire a;
//^ 1 no-tabs
endmodule
----
module m;
wire a;
//^ 1 no-tabs
endmodule
====
# fix: a tab inside a string survives fixing
module m;
initial $display("a b");
//^ 1 no-tabs
endmodule
----
module m;
initial $display("a b");
//^ 1 no-tabs
endmodule
====
# fix: a tab that is also trailing whitespace takes two rounds
module m;
wire a;
//^ 1 no-tabs
//^ 9 no-trailing-whitespace
endmodule
----
module m;
wire a;
//^ 1 no-tabs
//^ 9 no-trailing-whitespace
endmodule