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

Add CheckStyle Check for Constants (final static) #2992

Merged
merged 1 commit into from
Jul 10, 2017

Conversation

LinusDietz
Copy link
Member

To adhere the Java Code Conventions I have added another CheckStyle check to make sure that all static final variables are in CAPS. For some reason Checkstyle suggests to exclude the logger, which I am unsure if we really need it. Check the following regex for the exact specification:

"^log(ger)?|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"

I have already fixed the instances where this rule was violated.

@LinusDietz LinusDietz added type: code-quality Issues related to code or architecture decisions status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Jul 10, 2017
@tobiasdiez tobiasdiez merged commit 7cb74cc into master Jul 10, 2017
@tobiasdiez tobiasdiez deleted the constants-naming-conventions branch July 10, 2017 14:52
Siedlerchr added a commit that referenced this pull request Jul 11, 2017
* upstream/master:
  Eclipse J
  Add switch indentation for Eclipse and add some new missing formatting options
  Check for different editions in the duplicate check (#2991)
  Add CheckStyle Check for Constants (final static) (#2992)
  Add Remove link context menu entry in file editor (#2972)
  Fix DiVA tests
  Remove <pre> tag from entries fetched using MathSciNet (#2990)
  Fix Brazilian Portugese language loading (#2981)
  Use sftp's symlink command to provide symlink to latest version
  Update gradle from 4.0 to 4.0.1
  Fix group storage (#2978)
  Fix keybindings in entry editor (#2971)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers type: code-quality Issues related to code or architecture decisions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants