Rakefile in crypt_ident-0.2.6 vs Rakefile in crypt_ident-0.2.7
- old
+ new
@@ -33,24 +33,19 @@
t.libs << 'test'
t.warning = false
end
end
-FlayTask.new do |t|
- t.verbose = true
- t.dirs = %w(lib)
-end
-
FlogTask.new do |t|
t.verbose = true
t.threshold = 400 # default is 200
t.methods_only = true
t.dirs = %w(lib) # Look, Ma; no tests! Run the tool manually every so often for those.
end
Inch::Rake::Suggest.new do |suggest|
- # suggest.args = '--pedantic'
+ suggest.args = '--pedantic'
end
Reek::Rake::Task.new do |t|
t.config_file = 'config.reek'
t.source_files = '{apps,db,lib}/**/*.rb'
@@ -62,11 +57,11 @@
'apps/**/*.rb',
'db/**/*.rb',
'lib/**/*.rb',
'spec/**/*.rb'
]
- task.formatters = ['simple', 'd']
+ task.formatters = ['progress']
task.fail_on_error = true
# task.options << '--rails'
task.options << '--config=.rubocop.yml'
task.options << '--display-cop-names'
end
@@ -86,8 +81,18 @@
end
end
desc 'Run both integration and unit tests'
task test: ['test:integration', 'test:unit']
+
+# FlayTask.new do |t|
+# t.verbose = true
+# t.dirs = %w(lib)
+# end
+
+desc 'Flay run via command line since FlayTask searches *all* as of v2.12.1'
+task :flay do
+ system('bin/flay lib')
+end
task default: [:test, 'test:integration', :flog, :flay, :reek, :rubocop, :inch]
task spec: :test