lib/rubocop/git/style_checker.rb in rubocop-git-0.0.2 vs lib/rubocop/git/style_checker.rb in rubocop-git-0.0.3
- old
+ new
@@ -1,15 +1,15 @@
module RuboCop::Git
-# ref. https://github.com/thoughtbot/hound/blob/be2dd34/app/models/style_checker.rb
+# ref. https://github.com/thoughtbot/hound/blob/d2f3933/app/models/style_checker.rb
class StyleChecker
def initialize(modified_files,
rubocop_options,
- config_path,
+ config_file,
custom_config = nil)
@modified_files = modified_files
@rubocop_options = rubocop_options
- @config_path = config_path
+ @config_file = config_file
@custom_config = custom_config
end
def violations
file_violations = @modified_files.map do |modified_file|
@@ -34,10 +34,10 @@
end
end
def style_guide
@style_guide ||= StyleGuide.new(@rubocop_options,
- @config_path,
+ @config_file,
@custom_config)
end
end
end