Skip to content

Add CheckStyle Check for Constants (final static)#2992

Merged
tobiasdiez merged 1 commit into
masterfrom
constants-naming-conventions
Jul 10, 2017
Merged

Add CheckStyle Check for Constants (final static)#2992
tobiasdiez merged 1 commit into
masterfrom
constants-naming-conventions

Conversation

@LinusDietz

Copy link
Copy Markdown
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 dev: 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

dev: code-quality Issues related to code or architecture decisions status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants