description
Checkstyle formatter for reek
usage
Load the rake task into your Rakefile
.
require 'reek-checkstyle-formatter/rake_task'
rake -T
[...]
rake reek # Check for code smells
rake reek:checkstyle # Generate checkstyle XML for code smells analyzed by reek
[...]
customize
Overwrite the formatter options in your Rakefile
.
E.g Map a smell to a different severity (default warning):
Reek::CheckstyleFormatter.rake_task_options = {
:smell_severities => {
'IrresponsibleModule' => 'error'
}
}
Please look at Reek::CheckstyleFormatter#initialize for available options.