Skip to content

Added ability to filter ConstantName by FINAL/NOTFINAL#533

Open
EliteMasterEric wants to merge 1 commit intoHaxeCheckstyle:devfrom
EliteMasterEric:constantname-final
Open

Added ability to filter ConstantName by FINAL/NOTFINAL#533
EliteMasterEric wants to merge 1 commit intoHaxeCheckstyle:devfrom
EliteMasterEric:constantname-final

Conversation

@EliteMasterEric
Copy link

@EliteMasterEric EliteMasterEric commented Feb 25, 2026

Added the new FINAL and NOTFINAL tokens to the ConstantName rule. This essentially lets you define separate rules for final and non-final constant names.

  • Without either of these tokens (or both), the rule acts as it did previously, applying filtering to any static constants, both final and var.
  • With FINAL, only final constants will be evaluated, with var constants ignored.
  • With NOTFINAL, only var constants will be evaluated, with final constants ignored.

Unit tests included.

@EliteMasterEric
Copy link
Author

Oh yeah this resolves #526!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant