Rakefile in comable_frontend-0.2.3 vs Rakefile in comable_frontend-0.3.0
- old
+ new
@@ -67,18 +67,30 @@
end
end
end
end
- task default: ['app:spec:all', 'rubocop']
+ task default: ['app:spec:all', 'rubocop', 'brakeman:all']
+else
+ task default: ['app:spec', 'rubocop', 'brakeman']
end
-task default: ['app:spec', 'rubocop']
-
Bundler::GemHelper.install_tasks
# from https://github.com/rspec/rspec-rails/issues/936
task 'test:prepare'
task :rubocop do
- exec 'rubocop'
+ sh 'rubocop'
+end
+
+task :brakeman do
+ sh 'brakeman --exit-on-warn --ignore-config .brakeman.ignore'
+end
+
+namespace :brakeman do
+ task :all do
+ FRAMEWORKS.each do |framework|
+ sh "brakeman --exit-on-warn --ignore-config .brakeman.ignore #{framework}"
+ end
+ end
end