Skip to content

Commit a04e7b7

Browse files
committed
Update RuboCop 0.52.1 -> 0.54.0 for CI
1 parent 6ca4ed8 commit a04e7b7

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.rubocop.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,8 @@ Style/SymbolArray:
142142
Style/TrailingCommaInArguments:
143143
Enabled: false
144144

145-
Style/TrailingCommaInLiteral:
145+
Style/TrailingCommaInArrayLiteral:
146+
Enabled: false
147+
148+
Style/TrailingCommaInHashLiteral:
146149
Enabled: false

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ gem 'rspec', '~> 3.0'
1010
gem 'coveralls', '~> 0.8'
1111

1212
# Pin RuboCop for Travis builds.
13-
gem 'rubocop', '0.52.1'
13+
gem 'rubocop', '0.54.0'

lib/overcommit/configuration_loader.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class << self
1212
#
1313
# @return [Overcommit::Configuration]
1414
def default_configuration
15-
@default_config ||= load_from_file(DEFAULT_CONFIG_PATH, default: true, verify: false)
15+
@default_configuration ||= load_from_file(DEFAULT_CONFIG_PATH, default: true, verify: false)
1616
end
1717

1818
# Loads configuration from file.

lib/overcommit/hook/pre_commit/license_header.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def license_file
3737
end
3838

3939
def license_lines
40-
@license_regex ||= begin
40+
@license_lines ||= begin
4141
file_root = Overcommit::Utils.convert_glob_to_absolute(license_file)
4242
File.read(file_root).split("\n")
4343
end

lib/overcommit/os.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def linux?
2727
private
2828

2929
def host_os
30-
@os ||= ::RbConfig::CONFIG['host_os'].freeze
30+
@host_os ||= ::RbConfig::CONFIG['host_os'].freeze
3131
end
3232
end
3333

0 commit comments

Comments
 (0)