Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Naming/FileName:

# Renaming `has_something?` to `something?` obfuscates whether it is a "is-a" or
# a "has-a" relationship.
Naming/PredicateName:
Naming/PredicatePrefix:
Enabled: false

# commit_sha1 is indeed how we want to write such a variable, so ignore this cop
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem 'simplecov-lcov', '~> 0.8.0'
if RUBY_VERSION < '2.7.0'
gem 'rubocop', '1.50.0'
else
gem 'rubocop', '1.59.0'
gem 'rubocop', '1.77.0'
end

gem 'ffi' if Gem.win_platform?
2 changes: 1 addition & 1 deletion lib/overcommit/hook/pre_commit/scalastyle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run
extract_messages(
messages,
MESSAGE_REGEX,
lambda { |type| type.to_sym }
lambda(&:to_sym)
)
end
end
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/overcommit-hook
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/post-rewrite
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/pre-rebase
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down
1 change: 0 additions & 1 deletion template-dir/hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ if gemfile
exit 78 # EX_CONFIG
end
end
# rubocop:enable Style/RescueModifier

begin
require 'overcommit'
Expand Down