Support for case format LOWER_CAMEL in naming convention
See original GitHub issueCurrently, thrifty has 2 policies for field name - DEFAULT and JAVA. Checkstyle by default and mostly configured to check for lowerCamelCase in java.
How about a third
naming policy for lowerCamelCase? We can use guava’s CaseFormatter to determine the current case format. If it is not equal to CaseFormatter.LOWER_CAMEL convert to the same.
Should be very trivial.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What is the lowerCamelCase naming convention? - TechTarget
Learn about lowerCamelCase, a naming convention in which a name contains multiple words joined together as a single word with a lowercase first...
Read more >Capitalization Conventions - Framework Design Guidelines
Apply capitalization conventions for identifiers, compound words, and common terms. Understand how case sensitivity works in .NET.
Read more >Snake case - Wikipedia
It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames. One study has found...
Read more >What is pascal case? - TheServerSide.com
Pascal case -- or PascalCase -- is a programming naming convention where the first letter of each compound word in a variable is...
Read more >SQL naming conventions and capitalization rules
Joe Celco suggests using lowercase letters for scalars such as column names, parameters, and variables, e.g. @indent, @list, @script. Keywords ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s true, but I’m OK with that outcome. I don’t think anyone who has snake-cased thrifts is using the java-style naming policy - as you notice, it simply doesn’t do anything useful in that case. We can call out the breakage in release notes, but I doubt anyone will actually be broken.
Note that guava’s case formatting doesn’t play nice with acronyms, which forced us to move away from it