Sha256: 155fd0bfd3a995a5535e2725e64fc16be07173acd0dd52c7edd45219f80942c1
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require 'coffeelint' require 'rubocop/rake_task' namespace :lint do desc 'Run SCSS quality checks' task :scss do exit(1) unless system("scss-lint app/assets/stylesheets --config #{config('scss-lint.yml')}") end desc 'Run Ruby quality checks' RuboCop::RakeTask.new(:ruby) do |task| task.patterns = ['{app,config,features,lib,spec}/**/*.{rb,rake}'] task.formatters = ['progress'] task.fail_on_error = true task.options = ['--config', config('rubocop.yml')] end desc 'Run Coffeelint quality checks' task :coffeescript do exit(1) unless Coffeelint.run_test_suite('app/assets/javascripts', config_file: config('coffeelint.json')) end def config(file) File.realdirpath("#{__FILE__}/../../../config/#{file}") end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lint-0.3.6 | lib/tasks/lint.rake |
lint-0.3.5 | lib/tasks/lint.rake |
lint-0.3.4 | lib/tasks/lint.rake |
lint-0.3.3 | lib/tasks/lint.rake |
lint-0.3.2 | lib/tasks/lint.rake |