File: rubocop.rake

package info (click to toggle)
ruby-asciidoctor-pdf 2.3.24-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,484 kB
  • sloc: ruby: 44,991; sh: 136; java: 45; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new :lint do |t|
    t.patterns = Dir['lib/**/*.rb'] - ['lib/asciidoctor/pdf/formatted_text/parser.rb'] + %w(Gemfile Rakefile bin/* cops/**/*.rb spec/**/*.rb tasks/*.rake)
  end
rescue LoadError => e
  task :lint do
    raise <<~'EOS', cause: e
    Failed to load lint task.
    Install required gems using: bundle --path=.bundle/gems
    Next, invoke Rake using: bundle exec rake
    EOS
  end
end