Sha256: dee7624f13e2aa3ae83fd5e2729af7f1cb8ebd25230f6c86045c8881cf88e3fc

Contents?: true

Size: 514 Bytes

Versions: 20

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'ShellCheck' tool support to quality gem
    class Shellcheck < Tool
      def shellcheck_args
        "-fgcc -sbash #{shell_files.join(' ')}"
      end

      def quality_shellcheck
        ratchet_quality_cmd('shellcheck',
                            args: shellcheck_args,
                            gives_error_code_on_no_relevant_code: true,
                            gives_error_code_on_violations: true)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
quality-40.0.1 lib/quality/tools/shellcheck.rb
quality-40.0.0 lib/quality/tools/shellcheck.rb
quality-39.0.1 lib/quality/tools/shellcheck.rb
quality-38.0.1 lib/quality/tools/shellcheck.rb
quality-38.0.0 lib/quality/tools/shellcheck.rb
quality-37.1.1 lib/quality/tools/shellcheck.rb
quality-37.1.0 lib/quality/tools/shellcheck.rb
quality-37.0.1 lib/quality/tools/shellcheck.rb
quality-37.0.0 lib/quality/tools/shellcheck.rb
quality-36.1.0 lib/quality/tools/shellcheck.rb
quality-36.0.0 lib/quality/tools/shellcheck.rb
quality-35.2.1 lib/quality/tools/shellcheck.rb
quality-35.2.0 lib/quality/tools/shellcheck.rb
quality-35.1.1 lib/quality/tools/shellcheck.rb
quality-35.0.1 lib/quality/tools/shellcheck.rb
quality-35.0.0 lib/quality/tools/shellcheck.rb
quality-34.0.2 lib/quality/tools/shellcheck.rb
quality-34.0.1 lib/quality/tools/shellcheck.rb
quality-34.0.0 lib/quality/tools/shellcheck.rb
quality-33.0.0 lib/quality/tools/shellcheck.rb