Prompt
Follow established naming patterns and conventions throughout the codebase to ensure consistency and clarity. This includes:
- Use existing naming patterns for similar concepts:
- Follow established suffixes (e.g., *BuilderCustomizer for builder customization interfaces)
- Maintain consistent method naming patterns across related classes
- Use consistent property naming schemes (avoid mixing kebab-case and camelCase)
- Choose clear, descriptive names that avoid jargon:
// Avoid unclear or ambiguous names enum SameSite { UNSET("Unset") // Makes readers stop and think } // Use clear, descriptive names enum SameSite { OMITTED("Omitted") // Clearly describes the behavior } - Write descriptive test method names that explain the test scenario:
// Avoid vague names @Test void customizer() { } // Use descriptive names that explain the test @Test void whenCustomizerBeanIsDefinedThenItIsConfiguredOnSpringLiquibase() { } - Avoid unnecessary renaming that doesn’t add value but increases diff complexity and makes code reviews harder.