mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
18 lines
298 B
Text
18 lines
298 B
Text
|
# frozen_string_literal: true
|
||
|
|
||
|
desc 'Run default checks'
|
||
|
task default: :lint
|
||
|
|
||
|
desc 'Run code analysis tools'
|
||
|
task lint: :rubocop
|
||
|
|
||
|
desc 'Fix code style (rubocop --auto-correct)'
|
||
|
task fix: 'rubocop:auto_correct'
|
||
|
|
||
|
begin
|
||
|
require 'rubocop/rake_task'
|
||
|
RuboCop::RakeTask.new
|
||
|
rescue LoadError
|
||
|
nil
|
||
|
end
|