lib/quality/tools/cane.rb in quality-20.1.0 vs lib/quality/tools/cane.rb in quality-20.1.1
- old
+ new
@@ -14,10 +14,10 @@
def cane_args
args = [
"-f '#{ruby_files_glob}'",
]
- args += cane_exclude_args if exclude_files.size > 0
+ args += cane_exclude_args if !exclude_files.empty?
args.join(' ')
end
def quality_cane
ratchet_quality_cmd('cane', gives_error_code_on_violations: true,