Why is this an issue?

Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all type parameter names match a provided regular expression.

How to fix it

Code examples

Noncompliant code example

With default regular expression ^[a-z]+[a-z0-9_]*_t$:

module fly #(
  parameter type abc = int, // Noncompliant
);
  ...
endmodule : fly

Compliant solution

With default regular expression ^[a-z]+[a-z0-9_]*_t$:

module fly #(
  parameter type abc_t = int,
);
  ...
endmodule : fly

Resources

Articles & blog posts