From 6f543b241596a64d494407fddb98b0899ecd2357 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Sun, 21 Jul 2024 10:11:28 -0500 Subject: [PATCH] Add lint fixes --- waydowntown/waydowntown_server/Guardfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/waydowntown/waydowntown_server/Guardfile b/waydowntown/waydowntown_server/Guardfile index 23074cd1..07036365 100644 --- a/waydowntown/waydowntown_server/Guardfile +++ b/waydowntown/waydowntown_server/Guardfile @@ -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' @@ -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 @@ -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) @@ -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