Sha256: e59d5d7a161109b6b2ce83a6b76972b1d56f96cbff2b9f5e394309380d5a626e
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
module Quality module Tools # Adds 'pep8' tool support to quality gem module Pep8 private def pep8_args python_files.join(' ') end def pep8_count_errors(line) if line =~ /^Usage:/ # no files specified 0 elsif line =~ /^pep8: / # no files specified 0 elsif line =~ /^$/ # no files specified 0 else 1 end end def quality_pep8 ratchet_quality_cmd('pep8', args: pep8_args, gives_error_code_on_no_relevant_code: true) do |line| pep8_count_errors(line) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quality-22.0.0 | lib/quality/tools/pep8.rb |