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

Provide some rules around naming of variables and methods #109

Merged
merged 25 commits into from
Oct 21, 2015
Merged

Conversation

justinmclean
Copy link
Contributor

Works but still a little more to do. Need to parametrize the rules a little so users can tune them. Any suggestions?

@ryaneberly
Copy link
Contributor

See the "MinLength" parm I added to the checker and to the test.

@justinmclean justinmclean changed the title Provide some rules around naming of variables Provide some rules around naming of variables and methods Oct 18, 2015
@justinmclean
Copy link
Contributor Author

Refactored a bit and added new rules for method names. Mind double checking the change I made to CFlint.java to fix passing the method / function name about.

Conflicts:
	src/main/java/com/cflint/plugins/Context.java
@ryaneberly
Copy link
Contributor

CFLint changes look fine. That is to get the function name into the context for the CFFunctionDeclaration itself?

@justinmclean
Copy link
Contributor Author

Exactly it needs the function name when parsing the CFFunctionDeclaration.

@ryaneberly
Copy link
Contributor

perfect. thanks

@justinmclean
Copy link
Contributor Author

IMO this is good to go now, if no objections I'll merge into dev.

@ryaneberly
Copy link
Contributor

looks good. thanks

Conflicts:
	src/main/resources/cflint.definition.xml
justinmclean added a commit that referenced this pull request Oct 21, 2015
Provide some rules around naming of variables and methods
@justinmclean justinmclean merged commit aff9a54 into dev Oct 21, 2015
@justinmclean justinmclean deleted the naming branch October 21, 2015 03:08
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.

2 participants