Sha256: 479733f4acdef873917ef8c2be9a28ad5ff56a2cef3321dd607ab479ca36cd64

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to cppcheck command line tool.
    class CPPCheck < Base
      def languages
        super(Language::CPP)
      end

    private

      def flags
        [
          '--enable=all',
          '--error-exitcode=1',
          '--template="{file}:{line}:::{id}:{severity}:{message}"'
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lint_trap-0.0.11 lib/lint_trap/linter/cppcheck.rb
lint_trap-0.0.10 lib/lint_trap/linter/cppcheck.rb
lint_trap-0.0.9 lib/lint_trap/linter/cppcheck.rb