diff --git a/config/flay.yml b/config/flay.yml index 43da80e3..79675ede 100644 --- a/config/flay.yml +++ b/config/flay.yml @@ -1,3 +1,3 @@ --- threshold: 18 -total_score: 1244 +total_score: 1248 diff --git a/lib/mutant/reporter/cli/format.rb b/lib/mutant/reporter/cli/format.rb index 49629971..bc967171 100644 --- a/lib/mutant/reporter/cli/format.rb +++ b/lib/mutant/reporter/cli/format.rb @@ -41,9 +41,8 @@ module Mutant # @return [Boolean] # # @api private - def tty? - @tty - end + alias_method :tty?, :tty + public :tty? %i[puts write].each do |name| define_method(name) do |*args, &block| diff --git a/lib/mutant/reporter/cli/printer/status_progressive.rb b/lib/mutant/reporter/cli/printer/status_progressive.rb index 842b1f16..e8dca7c2 100644 --- a/lib/mutant/reporter/cli/printer/status_progressive.rb +++ b/lib/mutant/reporter/cli/printer/status_progressive.rb @@ -41,7 +41,7 @@ module Mutant # # @api private def object - super.payload + super().payload end end # StatusProgressive end # Printer diff --git a/lib/mutant/zombifier.rb b/lib/mutant/zombifier.rb index c540e1d6..da138c48 100644 --- a/lib/mutant/zombifier.rb +++ b/lib/mutant/zombifier.rb @@ -10,6 +10,7 @@ module Mutant :root_require, :pathname ) + private(*anima.attribute_names) include AST::Sexp @@ -56,7 +57,7 @@ module Mutant # # @api private def include?(logical_name) - !@zombified.include?(logical_name) && @includes =~ logical_name + !@zombified.include?(logical_name) && includes =~ logical_name end # Require file in zombie namespace