Report RuboCop offences as TeamCity Service Messages
Add to Gemfile, for example:
group :development do
gem 'rubocop-teamcity-formatter', git: 'https://github.com/govtechsg/rubocop-teamcity-formatter.git', require: false
endWhen running rubocop for Teamcity:
TEAMCITY_FMT_PATH="`bundle show rubocop-teamcity-formatter`/lib/rubocop/formatter/teamcity-formatter.rb"
bundle exec rubocop -r ${TEAMCITY_FMT_PATH} --format RuboCop::Formatter::TeamCityFormatter# Running unit tests
bundle exec rspec
# Building the gem
gem build rubocop-teamcity-formatter.gemspec See CONTRIBUTING.md for how to send issues and pull requests