Sha256: 7489912ff6b1076d09255e3ca5ff33d1edc01a774659d8cea5ec5221eff96a85

Contents?: true

Size: 523 Bytes

Versions: 22

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'ShellCheck' tool support to quality gem
    module Shellcheck
      private

      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

22 entries across 22 versions & 1 rubygems

Version Path
quality-32.1.1 lib/quality/tools/shellcheck.rb
quality-32.1.0 lib/quality/tools/shellcheck.rb
quality-32.0.0 lib/quality/tools/shellcheck.rb
quality-31.3.0 lib/quality/tools/shellcheck.rb
quality-31.2.1 lib/quality/tools/shellcheck.rb
quality-31.2.0 lib/quality/tools/shellcheck.rb
quality-31.1.0 lib/quality/tools/shellcheck.rb
quality-31.0.0 lib/quality/tools/shellcheck.rb
quality-30.0.1 lib/quality/tools/shellcheck.rb
quality-30.0.0 lib/quality/tools/shellcheck.rb
quality-29.0.0 lib/quality/tools/shellcheck.rb
quality-28.0.0 lib/quality/tools/shellcheck.rb
quality-27.4.0 lib/quality/tools/shellcheck.rb
quality-27.3.1 lib/quality/tools/shellcheck.rb
quality-27.3.0 lib/quality/tools/shellcheck.rb
quality-27.2.0 lib/quality/tools/shellcheck.rb
quality-27.1.1 lib/quality/tools/shellcheck.rb
quality-27.1.0 lib/quality/tools/shellcheck.rb
quality-27.0.0 lib/quality/tools/shellcheck.rb
quality-26.0.0 lib/quality/tools/shellcheck.rb