Sha256: 784a3c8196c1227e4bbf3ff18e38289bb7fcf7ab7d3432f0cd1fe7b5e8fd73a5

Contents?: true

Size: 546 Bytes

Versions: 19

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    module Mdl
      private

      def mdl_args
        markdown_files.join(' ')
      end

      def quality_mdl
        if mdl_args.empty?
          puts 'No markdown files found--skipping mdl'
          return
        end

        ratchet_quality_cmd('mdl',
                            args: mdl_args,
                            gives_error_code_on_violations: true) do |_line|
          1
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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