Usage

You need to tell RuboCop to load the Workitcop extension. There are some ways to do this:

RuboCop configuration file

Put this into your .rubocop.yml:

require: workitcop

or, if you are using several extensions:

require:
  - workitcop
  - rubocop-rspec

Now you can run rubocop and it will automatically load the Workitcop cops together with the standard cops.

$ rubocop --require workitcop

Rake task

RuboCop::RakeTask.new do |task|
  task.requires << 'workitcop'
end