Sha256: ab11160e25f28efbad09874ed5c0f413ea41fff60bbe1bbd671f5ffe04db8e6d

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to pylint command line tool.
    class PyLint < Base
    private

      def flags
        [
          '-r', 'no',
          '--msg-template', '"{abspath}:{line}:{column}::{symbol}:{category}:{msg}"'
        ].tap do |flags|
          flags.concat(['--rcfile', options[:config]]) if options[:config]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lint_trap-0.0.8 lib/lint_trap/linter/pylint.rb
lint_trap-0.0.7 lib/lint_trap/linter/pylint.rb
lint_trap-0.0.6 lib/lint_trap/linter/pylint.rb
lint_trap-0.0.5 lib/lint_trap/linter/pylint.rb
lint_trap-0.0.4 lib/lint_trap/linter/pylint.rb
lint_trap-0.0.3 lib/lint_trap/linter/pylint.rb