A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1321 below:

[apex] Should VariableNamingConventions require properties to start with a lowercase letter? · Issue #1321 · pmd/pmd · GitHub

Affects PMD Version: 6.6.0

Rule: VariableNamingConventions

Description: Should VariableNamingConventions require properties to start with a lowercase letter? Currently, this is the case because VariableNamingConventions applies to ASTField nodes, and ASTProperty nodes contain ASTField nodes.

The only official documentation I have found so far contains properties that start with a lowercase letter AND properties that start with an uppercase letter: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_properties.htm

Some libraries, like fflib-apex-mocks start properties with an uppercase letter, while others start them with a lowercase letter.

Should there be a PropertyNamingConventions, separate from VariableNamingConventions? Perhaps whether it enforces uppercase or lowercase could be controlled by a property?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4