stuarthendren / jdt.spelling

Spelling for Java names using JDT
13 stars 6 forks source link

CamelCase #23

Closed paulvi closed 10 years ago

paulvi commented 10 years ago

as side effect underline_concatenated_names are also underlined (as having spelling error)

This make this plugin closer to code style checking

stuarthendren commented 10 years ago

I've changed a little to clarify.

With the underscores, any static final field is considered a constant (even though that might not be strictly true https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.2.4-constant-names) and they are expected to be in the style UNDERSCORE_SEPARATED. No other types are expected to be named in this pattern, so will come up as incorrect.

Checking for true constants is a bit much, but I might consider a more lenient approach for constants, pass if it comes as correct for either upper or camel case.