require_relative 'base' module LintTrap module Linter # Encapsulates logic specific to pylint command line tool. class PyLint < Base def languages super(Language::Python) end 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