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

Variable Prefix and Postfix - More dynamic #254

Closed
isaac-mercieca opened this issue Mar 10, 2017 · 3 comments
Closed

Variable Prefix and Postfix - More dynamic #254

isaac-mercieca opened this issue Mar 10, 2017 · 3 comments

Comments

@isaac-mercieca
Copy link
Contributor

I have just started to introduce this static code analysis tool to a project which follows certain conventions such as a prefix to each variable name depending on the type for instance string variables are prefixed with 'str'. I know that this can be done by creating a custom rule. However, I was wondering if it would be useful to the project and also possible to make this rule parameter and thus including a new dynamic feature.

Thanks in advance.

@ryaneberly
Copy link
Contributor

Are you talking about "Hungarian notation"?

@isaac-mercieca
Copy link
Contributor Author

Yes or more less it is very similar. As by making this more dynamic one can enforce certain naming conventions.

ryaneberly added a commit that referenced this issue Mar 29, 2017
@ryaneberly
Copy link
Contributor

I believe this should work for you now. You can set up the RequiredVariableNamePrefix parameter for the Variable name checker, or pass
-DVariableNameChecker.RequiredVariableNamePrefix=str,b,etc

on the command line

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

No branches or pull requests

2 participants