From 3d499fe61ced73d3870b739bf611dc3746e2b468 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 15 Jun 2013 17:15:14 +0200 Subject: [PATCH] Use underscores for unused parameters --- lib/mutant/mutation/filter.rb | 8 ++++---- lib/mutant/strategy/rspec.rb | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/mutant/mutation/filter.rb b/lib/mutant/mutation/filter.rb index bb495c94..b5d3fc70 100644 --- a/lib/mutant/mutation/filter.rb +++ b/lib/mutant/mutation/filter.rb @@ -42,14 +42,14 @@ module Mutant # Return filter for handle # - # @param [String] notation + # @param [String] _notation # # @return [nil] # returns nil # # @api private # - def self.handle(notation) + def self.handle(_notation) nil end @@ -58,14 +58,14 @@ module Mutant # Test for match # - # @pram [Mutation] mutation + # @pram [Mutation] _mutation # # @return [true] # returns true # # @api private # - def match?(mutation) + def match?(_mutation) true end diff --git a/lib/mutant/strategy/rspec.rb b/lib/mutant/strategy/rspec.rb index ec30d57a..4636b3fa 100644 --- a/lib/mutant/strategy/rspec.rb +++ b/lib/mutant/strategy/rspec.rb @@ -26,7 +26,7 @@ module Mutant # # @api private # - def self.spec_files(mutation) + def self.spec_files(_mutation) Dir['spec/unit/**/*_spec.rb'] end end # Unit @@ -40,7 +40,7 @@ module Mutant # # @api private # - def self.spec_files(mutation) + def self.spec_files(_mutation) Dir['spec/integration/**/*_spec.rb'] end end # Integration @@ -54,7 +54,7 @@ module Mutant # # @api private # - def self.spec_files(mutation) + def self.spec_files(_mutation) Dir['spec/**/*_spec.rb'] end end # Full