Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added linter rule to check format of properties name in the properties file. #152

Merged
merged 4 commits into from
Aug 29, 2023

Conversation

dileepkumarv-avio
Copy link
Contributor

Added linter rule - PROPERTIES_NAMING to check that properties name in the properties files (.properties and YAML) follow predefined acceptable format such as java property naming conventions (db.username).

…perties file.

Added linter rule - PROPERTIES_NAMING to check format of properties name in the properties file.

This rule checks that properties name in the properties file follow a given case format.

Also, added comments in the AutoDiscovery, CronExpression and APIKit Version rule.
Added linter rule - PROPERTIES_NAMING to check that properties name in the properties files (.properties and YAML) follow  predefined acceptable format such as java property naming conventions (db.username).
Updated PROPERTIES_NAMING rule to support java properties format
@manikmagar
Copy link
Contributor

@dileepkumarv-avio @adesjardin Should we do it as "PROPERTY_NAME_PATTERN" rule that defaults the regex pattern but also allow to change it if needed?

@dileepkumarv-avio
Copy link
Contributor Author

@manikmagar Renaming this rule to PROPERTY_NAME_PATTERN makes sense to me. I will rename the rule to PROPERTY_NAME_PATTERN.

Also, i will add optional attribute within the rule to allow different pattern for property name.

Renamed the linter rule to PROPERTY_NAME_PATTERN, and added support to pass format into the linter rule.
@dileepkumarv-avio dileepkumarv-avio merged commit c7c5418 into main Aug 29, 2023
@dileepkumarv-avio dileepkumarv-avio deleted the feat/properties-naming-standard-rule branch August 29, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule to check for Properties naming standard in properties file
4 participants