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

Add script to check and report ENV usage #3

Merged
merged 1 commit into from
Jan 14, 2016
Merged

Conversation

jennielouie
Copy link
Contributor

Script recursively checks files in project directory for " ENV[ ", and reports filepaths and # occurrences where it is found.

@chrisledet
Copy link
Contributor

a list from when we talked offline:

  • Option flag for ignoring directories
  • Option flag for help

@jennielouie jennielouie force-pushed the jl/envm_lint branch 3 times, most recently from f425479 to c3c6942 Compare January 14, 2016 20:33
@jennielouie
Copy link
Contributor Author

@chrisledet added the options, can you re-review?

usage = <<USAGE
Usage: #{$PROGRAM_NAME} <options>

Recursively checks for usage of "ENV[" in all .rb and .erb files of a directory, and prints usage summary.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we removed the [ from "+Recursively checks for usage of "ENV[" ?

@jennielouie jennielouie force-pushed the jl/envm_lint branch 2 times, most recently from 7766b7a to c313407 Compare January 14, 2016 21:21
begin
if ARGV.include?('--help')
puts usage
exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spacing is off inside the if/end

@chrisledet
Copy link
Contributor

👍

jennielouie added a commit that referenced this pull request Jan 14, 2016
Add script to check and report ENV usage
@jennielouie jennielouie merged commit 7ed6b8c into master Jan 14, 2016
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