Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Consider ways to extend and rename/alias rules #902

Open
hzeller opened this issue Sep 1, 2021 · 0 comments
Open

Internal: Consider ways to extend and rename/alias rules #902

hzeller opened this issue Sep 1, 2021 · 0 comments
Labels
enhancement New feature or request style-linter Verilog style-linter issues

Comments

@hzeller
Copy link
Collaborator

hzeller commented Sep 1, 2021

In #901 the undersized-binary-literal rule was extended to not only understand binary but also octal and hex numbers.

While in this case, the naming still somewhat makes sense (after all, we provide binary numbers), there might be other cases in which renaming a rule to reflect the wider range might be desirable (undersized-numeric-literal ?), while also having a backward compatible 'old' name, specifying an alias

undersized-binary-literal ::= undersized-numeric-literal with configuration="bin:true"

There should be an easy, low-boilerplate overhead in the code to do that.

@hzeller hzeller added enhancement New feature or request style-linter Verilog style-linter issues labels Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request style-linter Verilog style-linter issues
Projects
None yet
Development

No branches or pull requests

1 participant