Skip to content

Commit

Permalink
Add lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Jul 21, 2024
1 parent ea50d2a commit 6f543b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions waydowntown/waydowntown_server/Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"

# Note: The cmd option is now required due to the increasing number of ways
# NOTE: The cmd option is now required due to the increasing number of ways
# rspec may be run, below are examples of the most common uses.
# * bundler: 'bundle exec rspec'
# * bundler binstubs: 'bin/rspec'
Expand All @@ -24,8 +24,8 @@
# * zeus: 'zeus rspec' (requires the server to be started separately)
# * 'just' rspec: 'rspec'

guard :rspec, cmd: "bundle exec rspec" do
require "guard/rspec/dsl"
guard :rspec, cmd: 'bundle exec rspec' do # rubocop:disable Metrics/BlockLength
require 'guard/rspec/dsl'
dsl = Guard::RSpec::Dsl.new(self)

# Feel free to open issues for suggestions and improvements
Expand All @@ -41,7 +41,7 @@ guard :rspec, cmd: "bundle exec rspec" do
dsl.watch_spec_files_for(ruby.lib_files)

# Rails files
rails = dsl.rails(view_extensions: %w(erb haml slim))
rails = dsl.rails(view_extensions: %w[erb haml slim])
dsl.watch_spec_files_for(rails.app_files)
dsl.watch_spec_files_for(rails.views)

Expand All @@ -65,6 +65,6 @@ guard :rspec, cmd: "bundle exec rspec" do
# Turnip features and steps
watch(%r{^spec/acceptance/(.+)\.feature$})
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance'
end
end

0 comments on commit 6f543b2

Please sign in to comment.