Skip to content

Commit

Permalink
Merge pull request #17534 from code-dot-org/lint-gemfile
Browse files Browse the repository at this point in the history
lint the Gemfile when linting ruby in commit hooks
  • Loading branch information
davidsbailey committed Sep 5, 2017
2 parents 03e114f + 3bbdc93 commit 57a5512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hooks/lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def filter_eslint_shared(modified_files)
end
end

RUBY_EXTENSIONS = ['.rake', '.rb', 'Rakefile'].freeze
RUBY_EXTENSIONS = ['.rake', '.rb', 'Rakefile', 'Gemfile'].freeze
def filter_rubocop(modified_files)
modified_rb_rake_files = modified_files.select do |f|
RUBY_EXTENSIONS.any? {|ext| f.end_with? ext}
Expand Down

0 comments on commit 57a5512

Please sign in to comment.