Skip to content

Commit

Permalink
fixup! Revert removal of runtime RuboCop version check
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Feb 8, 2020
1 parent 7ed2149 commit 0ff9be3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/test_prof/rubocop.rb
@@ -1,5 +1,12 @@
# frozen_string_literal: true

require "test_prof/utils"
unless supported = TestProf::Utils.verify_gem_version("rubocop", at_least: "0.51.0")
warn "TestProf cops require RuboCop >= 0.51.0 to run."
return
end

require "rubocop"

require_relative "cops/inject"
require "test_prof/cops/rspec/aggregate_examples"

0 comments on commit 0ff9be3

Please sign in to comment.