Sha256: 2316d84b5a9361c58150e8e9c5ac766e083ce9371ec179402a6d9df23b9bf74b

Contents?: true

Size: 457 Bytes

Versions: 12

Compression:

Stored size: 457 Bytes

Contents

desc "Lints ActiveAdmin code base"
task lint: ["lint:rubocop", "lint:mdl"]

namespace :lint do
  require "rubocop/rake_task"
  desc "Checks ruby code style with RuboCop"
  RuboCop::RakeTask.new

  desc "Checks markdown code style with Markdownlint"
  task :mdl do
    puts "Running mdl..."

    targets = [
      *Dir.glob("docs/**/*.md"),
      "CONTRIBUTING.md",
      ".github/ISSUE_TEMPLATE.md"
    ]

    abort unless system("mdl", *targets)
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
activeadmin-rails-1.7.1 tasks/lint.rake
activeadmin-rails-1.7.0 tasks/lint.rake
activeadmin-rb-1.6.0 tasks/lint.rake
activeadmin-rb-1.5.2 tasks/lint.rake
activeadmin-rb-1.5.1 tasks/lint.rake
activeadmin-rb-1.5.0 tasks/lint.rake
activeadmin-rb-1.4.0 tasks/lint.rake
activeadmin-1.3.1 tasks/lint.rake
activeadmin-1.3.0 tasks/lint.rake
activeadmin-1.2.1 tasks/lint.rake
activeadmin-1.2.0 tasks/lint.rake
activeadmin-1.1.0 tasks/lint.rake