add guard-rubocop
This commit is contained in:
parent
e5161f6fa2
commit
8ff3062c68
3 changed files with 11 additions and 1 deletions
3
Gemfile
3
Gemfile
|
|
@ -52,7 +52,8 @@ group :development, :test do
|
||||||
gem "rspec-rails", "~> 3.4.0"
|
gem "rspec-rails", "~> 3.4.0"
|
||||||
|
|
||||||
# automatic test runs
|
# automatic test runs
|
||||||
gem "guard-rspec", require: false
|
gem "guard-rspec", require: false
|
||||||
|
gem "guard-rubocop", require: false
|
||||||
|
|
||||||
# preloading environment
|
# preloading environment
|
||||||
gem "spring"
|
gem "spring"
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,9 @@ GEM
|
||||||
guard (~> 2.1)
|
guard (~> 2.1)
|
||||||
guard-compat (~> 1.1)
|
guard-compat (~> 1.1)
|
||||||
rspec (>= 2.99.0, < 4.0)
|
rspec (>= 2.99.0, < 4.0)
|
||||||
|
guard-rubocop (1.2.0)
|
||||||
|
guard (~> 2.0)
|
||||||
|
rubocop (~> 0.20)
|
||||||
hashdiff (0.2.3)
|
hashdiff (0.2.3)
|
||||||
httparty (0.13.7)
|
httparty (0.13.7)
|
||||||
json (~> 1.8)
|
json (~> 1.8)
|
||||||
|
|
@ -286,6 +289,7 @@ DEPENDENCIES
|
||||||
fixture_builder (~> 0.4.1)
|
fixture_builder (~> 0.4.1)
|
||||||
fuubar (= 2.0.0)
|
fuubar (= 2.0.0)
|
||||||
guard-rspec
|
guard-rspec
|
||||||
|
guard-rubocop
|
||||||
logging-rails (= 0.5.0)
|
logging-rails (= 0.5.0)
|
||||||
nyan-cat-formatter
|
nyan-cat-formatter
|
||||||
pronto (= 0.5.3)
|
pronto (= 0.5.3)
|
||||||
|
|
|
||||||
|
|
@ -21,3 +21,8 @@ guard :rspec, cmd: "NO_COVERAGE=true bin/rspec" do
|
||||||
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
||||||
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
guard :rubocop do
|
||||||
|
watch(/.+\.rb$/)
|
||||||
|
watch(/\.rubocop\.yml$/) {|m| File.dirname(m[0]) }
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue