lint: improve Rubocop detection
Instead on relying on the environment, we try to load the Rubocop cop only if Rubocop is currently loaded.
This commit is contained in:
parent
a6b337c436
commit
cbaa584bd0
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
if ENV["RAILS_ENV"] == "development"
|
if defined?(RuboCop)
|
||||||
module RuboCop
|
module RuboCop
|
||||||
module Cop
|
module Cop
|
||||||
module DS
|
module DS
|
||||||
|
|
Loading…
Reference in a new issue