Skip to content

Commit

Permalink
Add rubocop to the default rake task
Browse files Browse the repository at this point in the history
This will require the lint to run as part of the default build.
  • Loading branch information
brucebolt committed Feb 1, 2022
1 parent 2ae7bad commit 7d9f9a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ namespace :dummy_app do
end

# Load local tasks
Dir["tasks/**/*.rake"].each { |file| load file }
Rails.application.load_tasks

task default: [:spec, "dummy_app:jasmine:ci", "sass:check"]
task default: ["lint", :spec, "dummy_app:jasmine:ci", "sass:check"]
6 changes: 6 additions & 0 deletions lib/tasks/lint.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

desc "Lint files"
task "lint" => :environment do
sh "rubocop --format clang"
end

0 comments on commit 7d9f9a2

Please sign in to comment.