Sha256: 9060e582822431ae03c97c50ff310f3a36f37ec129a20228acda83f34f537e38
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
module Warder # responsible for run code duplication validation class CodeDuplicationRunner < Runner CLI_OPTION = 'd' CLI_FULL_OPTION = 'code-duplication' DESCRIPTION = 'Run code duplication validation' COMMAND_NAME = 'flay' FLAY_SCORE = SCORE / 2 FAILURE_REGEXP = /code found in :\w+ \(mass(\*\d+)? = (?<issues>\d+)\)/ private def command_with_options "#{COMMAND_NAME} -d -m #{flay_score} #{@options.files}" end def flay_score env_flay_score = ENV['FLAY_SCORE'] return self.class::FLAY_SCORE unless env_flay_score env_flay_score.to_i end end end
Version data entries
4 entries across 4 versions & 1 rubygems