Sha256: b16988c7cc9781961f69b63401ee2466a57649e6ff1c5e07bf694cd13980fdad

Contents?: true

Size: 611 Bytes

Versions: 20

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    class Mdl < Tool
      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|
          if line =~ /\d: MD/
            1
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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