Skip to content

Commit 8afeb42

Browse files
committed
disable cyclomatic complexity for option parser
1 parent a48257f commit 8afeb42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rspec/core/option_parser.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def parse(source=nil)
3434
private
3535

3636
# rubocop:disable MethodLength
37+
# rubocop:disable CyclomaticComplexity
3738
def parser(options)
3839
OptionParser.new do |parser|
3940
parser.banner = "Usage: rspec [options] [files or directories]\n\n"
@@ -254,6 +255,7 @@ def parser(options)
254255
end
255256
end
256257
# rubocop:enable MethodLength
258+
# rubocop:enable CyclomaticComplexity
257259

258260
def add_tag_filter(options, filter_type, tag_name, value=true)
259261
(options[filter_type] ||= {})[tag_name] = value

0 commit comments

Comments
 (0)