add gendarme support, ignore some rules and fix our implementation
This commit is contained in:
21
Rakefile
21
Rakefile
@@ -23,7 +23,7 @@ desc 'Run the tests'
|
||||
task :test => [:nunit]
|
||||
|
||||
desc 'Retrieve, Build, Test'
|
||||
task :preflight => [:retrieve, :build, :test]
|
||||
task :preflight => [:retrieve, :build, :test, :cs_lint]
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,25 @@ test_runner :nunit do |tests|
|
||||
tests.exe = "packages/NUnit.Runners.2.6.4/tools/nunit-console.exe" # executable to run tests with
|
||||
end
|
||||
|
||||
task :cs_lint do
|
||||
|
||||
unless Dir.exists?('output')
|
||||
Dir.mkdir('output')
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
CMD_PREFIX = ""
|
||||
if !OS.windows?
|
||||
CMD_PREFIX = "mono"
|
||||
end
|
||||
|
||||
sh "#{CMD_PREFIX} packages/Mono.Gendarme.2.11.0.20121120/tools/gendarme.exe src/Untappd.Net/bin/#{Configuration}/Untappd.Net.dll --html output/gendarme.html --severity high+ --ignore assets/gendarme/gendarme.ignore"
|
||||
|
||||
end
|
||||
|
||||
|
||||
# task :tests => :'tests:unit'
|
||||
|
||||
#task :ensure_nuget_key do
|
||||
|
||||
Reference in New Issue
Block a user