Skip to content

Commit

Permalink
Use default Max for Metrics/BlockLength cop
Browse files Browse the repository at this point in the history
By explicitly disabling 2 violations.
  • Loading branch information
floehopper committed Nov 16, 2019
1 parent 09a6847 commit d6ddf36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-11-16 18:08:52 +0000 using RuboCop version 0.58.2.
# on 2019-11-16 18:15:36 +0000 using RuboCop version 0.58.2.
# 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
Expand All @@ -10,12 +10,6 @@
Metrics/AbcSize:
Max: 26

# Offense count: 2
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 48

# Offense count: 23
# Configuration parameters: CountComments.
Metrics/ClassLength:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ task 'test' do
end
end

namespace 'test' do
namespace 'test' do # rubocop:disable Metrics/BlockLength
unit_tests = FileList['test/unit/**/*_test.rb']
all_acceptance_tests = FileList['test/acceptance/*_test.rb']
ruby186_incompatible_acceptance_tests = FileList['test/acceptance/stub_class_method_defined_on_*_test.rb'] + FileList['test/acceptance/stub_instance_method_defined_on_*_test.rb']
Expand Down
2 changes: 1 addition & 1 deletion mocha.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lib = File.expand_path('../lib/', __FILE__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'mocha/version'

Gem::Specification.new do |s|
Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
s.name = 'mocha'
s.version = Mocha::VERSION
s.licenses = ['MIT', 'BSD-2-Clause']
Expand Down

0 comments on commit d6ddf36

Please sign in to comment.