Skip to content

Commit

Permalink
Added rubocop task after generating kpeg files. Because it files alwa…
Browse files Browse the repository at this point in the history
…ys contained trailing-whitespaces.
  • Loading branch information
hsbt committed Sep 7, 2018
1 parent 1917dcd commit e448a54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ $:.unshift File.expand_path 'lib'
require 'rdoc/task'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'

task :docs => :generate
task :test => :generate
Expand Down Expand Up @@ -80,7 +81,11 @@ end

task "#{path}.gem" => package_parser_files

RuboCop::RakeTask.new(:rubocop) do |t|
t.options = [*parsed_files]
end

desc "Genrate all files used racc and kpeg"
task :generate => parsed_files

task :build => [:generate]
task :build => [:generate, "rubocop:auto_correct"]

0 comments on commit e448a54

Please sign in to comment.