-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
253 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit` | ||
# on 2024-01-10 14:09:00 UTC using RuboCop version 1.59.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: AllowAliasSyntax, AllowedMethods. | ||
# AllowedMethods: alias_method, public, protected, private | ||
Layout/EmptyLinesAroundAttributeAccessor: | ||
Exclude: | ||
- 'lib/overcommit/hook_context/post_merge.rb' | ||
|
||
# Offense count: 6 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: enums | ||
Lint/ConstantDefinitionInBlock: | ||
Exclude: | ||
- 'spec/overcommit/message_processor_spec.rb' | ||
|
||
# Offense count: 4 | ||
Lint/MixedRegexpCaptureTypes: | ||
Exclude: | ||
- 'lib/overcommit/hook/pre_commit/dart_analyzer.rb' | ||
- 'lib/overcommit/hook/pre_commit/java_checkstyle.rb' | ||
- 'lib/overcommit/hook/pre_commit/kt_lint.rb' | ||
- 'lib/overcommit/hook/pre_commit/scalastyle.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Lint/RedundantCopDisableDirective: | ||
Exclude: | ||
- 'lib/overcommit/hook_runner.rb' | ||
- 'lib/overcommit/printer.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments, Max, CountAsOne. | ||
Metrics/ClassLength: | ||
Exclude: | ||
- 'lib/overcommit/utils.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: AllowedMethods, AllowedPatterns, Max. | ||
Metrics/CyclomaticComplexity: | ||
Exclude: | ||
- 'lib/overcommit/configuration.rb' | ||
- 'lib/overcommit/hook_runner.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: AllowedMethods, AllowedPatterns, Max. | ||
Metrics/PerceivedComplexity: | ||
Exclude: | ||
- 'lib/overcommit/configuration.rb' | ||
- 'lib/overcommit/configuration_validator.rb' | ||
- 'lib/overcommit/hook_runner.rb' | ||
|
||
# Offense count: 23 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
Style/GlobalStdStream: | ||
Exclude: | ||
- 'bin/overcommit' | ||
- 'lib/overcommit/hook/post_commit/git_guilt.rb' | ||
- 'template-dir/hooks/commit-msg' | ||
- 'template-dir/hooks/overcommit-hook' | ||
- 'template-dir/hooks/post-checkout' | ||
- 'template-dir/hooks/post-commit' | ||
- 'template-dir/hooks/post-merge' | ||
- 'template-dir/hooks/post-rewrite' | ||
- 'template-dir/hooks/pre-commit' | ||
- 'template-dir/hooks/pre-push' | ||
- 'template-dir/hooks/pre-rebase' | ||
- 'template-dir/hooks/prepare-commit-msg' | ||
|
||
# Offense count: 2 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
Style/HashTransformValues: | ||
Exclude: | ||
- 'lib/overcommit/configuration.rb' | ||
- 'lib/overcommit/configuration_validator.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: respond_to_missing? | ||
Style/OptionalBooleanParameter: | ||
Exclude: | ||
- 'lib/overcommit/logger.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Style/RedundantBegin: | ||
Exclude: | ||
- 'lib/overcommit/hook/prepare_commit_msg/replace_branch.rb' | ||
- 'lib/overcommit/utils.rb' | ||
|
||
# Offense count: 10 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
# Configuration parameters: SafeForConstants. | ||
Style/RedundantFetchBlock: | ||
Exclude: | ||
- 'lib/overcommit/configuration.rb' | ||
- 'lib/overcommit/configuration_validator.rb' | ||
- 'lib/overcommit/hook/base.rb' | ||
- 'lib/overcommit/hook/pre_commit/chamber_verification.rb' | ||
- 'lib/overcommit/logger.rb' | ||
- 'spec/support/shell_helpers.rb' | ||
|
||
# Offense count: 8 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Style/RedundantRegexpEscape: | ||
Exclude: | ||
- 'lib/overcommit/configuration.rb' | ||
- 'lib/overcommit/hook/pre_commit/php_cs.rb' | ||
- 'lib/overcommit/hook/pre_commit/php_lint.rb' | ||
- 'lib/overcommit/hook/pre_commit/php_stan.rb' | ||
|
||
# Offense count: 15 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
# Configuration parameters: Mode. | ||
Style/StringConcatenation: | ||
Exclude: | ||
- 'lib/overcommit/hook/pre_commit/bundle_check.rb' | ||
- 'lib/overcommit/hook_runner.rb' | ||
- 'lib/overcommit/message_processor.rb' | ||
- 'spec/integration/gemfile_option_spec.rb' | ||
- 'spec/overcommit/hook/commit_msg/text_width_spec.rb' | ||
- 'spec/overcommit/hook/prepare_commit_msg/base_spec.rb' | ||
- 'spec/overcommit/message_processor_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
Style/ZeroLengthPredicate: | ||
Exclude: | ||
- 'lib/overcommit/hook/pre_commit/ruby_syntax.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
# Defines the gem version. | ||
module Overcommit | ||
VERSION = '0.60.0' | ||
VERSION = '0.62.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.