Rubocop: features/support/formatter.rb
This commit is contained in:
parent
ff591dd5dc
commit
ab3cda6e58
|
@ -1,7 +1,7 @@
|
|||
require 'fileutils'
|
||||
require 'colorator'
|
||||
require 'cucumber/formatter/console'
|
||||
require 'cucumber/formatter/io'
|
||||
require "fileutils"
|
||||
require "colorator"
|
||||
require "cucumber/formatter/console"
|
||||
require "cucumber/formatter/io"
|
||||
|
||||
module Jekyll
|
||||
module Cucumber
|
||||
|
@ -17,7 +17,7 @@ module Jekyll
|
|||
:undefined => "\u2718".red,
|
||||
:passed => "\u2714".green,
|
||||
:skipped => "\u203D".blue
|
||||
}
|
||||
}.freeze
|
||||
|
||||
#
|
||||
|
||||
|
@ -34,7 +34,7 @@ module Jekyll
|
|||
|
||||
#
|
||||
|
||||
def before_features(features)
|
||||
def before_features(_features)
|
||||
print_profile_information
|
||||
end
|
||||
|
||||
|
@ -47,7 +47,7 @@ module Jekyll
|
|||
|
||||
#
|
||||
|
||||
def before_feature(feature)
|
||||
def before_feature(_feature)
|
||||
@exceptions = []
|
||||
@indent = 0
|
||||
end
|
||||
|
@ -55,20 +55,23 @@ module Jekyll
|
|||
#
|
||||
|
||||
def tag_name(tag_name); end
|
||||
|
||||
def comment_line(comment_line); end
|
||||
|
||||
def after_feature_element(feature_element); end
|
||||
|
||||
def after_tags(tags); end
|
||||
|
||||
#
|
||||
|
||||
def before_feature_element(feature_element)
|
||||
def before_feature_element(_feature_element)
|
||||
@indent = 2
|
||||
@scenario_indent = 2
|
||||
end
|
||||
|
||||
#
|
||||
|
||||
def before_background(background)
|
||||
def before_background(_background)
|
||||
@scenario_indent = 2
|
||||
@in_background = true
|
||||
@indent = 2
|
||||
|
@ -76,7 +79,7 @@ module Jekyll
|
|||
|
||||
#
|
||||
|
||||
def after_background(background)
|
||||
def after_background(_background)
|
||||
@in_background = nil
|
||||
end
|
||||
|
||||
|
@ -104,8 +107,9 @@ module Jekyll
|
|||
|
||||
#
|
||||
|
||||
def before_step_result(keyword, step_match, multiline_arg, status, exception, \
|
||||
source_indent, background, file_colon_line)
|
||||
# rubocop:disable Metrics/ParameterLists
|
||||
def before_step_result(_keyword, _step_match, _multiline_arg, status, exception, \
|
||||
_source_indent, background, _file_colon_line)
|
||||
|
||||
@hide_this_step = false
|
||||
if exception
|
||||
|
@ -127,10 +131,11 @@ module Jekyll
|
|||
|
||||
#
|
||||
|
||||
def step_name(keyword, step_match, status, source_indent, background, file_colon_line)
|
||||
def step_name(_keyword, _step_match, status, _source_indent, _background, _file_colon_line)
|
||||
@io.print CHARS[status]
|
||||
@io.print " "
|
||||
end
|
||||
# rubocop:enable Metrics/ParameterLists
|
||||
|
||||
#
|
||||
|
||||
|
@ -153,7 +158,7 @@ module Jekyll
|
|||
#
|
||||
|
||||
private
|
||||
def print_feature_element_name(keyword, name, source_line, indent)
|
||||
def print_feature_element_name(keyword, name, source_line, _indent)
|
||||
@io.puts
|
||||
|
||||
names = name.empty? ? [name] : name.each_line.to_a
|
||||
|
|
Loading…
Reference in New Issue