From 92700186697c0261fd42661d0dc21f8235c52f6b Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Wed, 6 Nov 2024 11:02:13 -0500 Subject: [PATCH] Fix: explicitly require racc and ostruct. --- .rubocop_todo.yml | 17 ++++++++++++----- Gemfile | 1 + spec/spec_helper.rb | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 80e4c386..299f71b4 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-08-05 13:32:37 UTC using RuboCop version 1.26.1. +# on 2024-11-06 16:01:45 UTC using RuboCop version 1.26.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -81,14 +81,14 @@ Performance/StringInclude: Exclude: - 'lib/tasks/web.rake' -# Offense count: 8 +# Offense count: 9 # This cop supports safe auto-correction (--auto-correct). RSpec/ContextMethod: Exclude: - 'spec/slack/messages/formatting_spec.rb' - 'spec/slack/web/api/mixins/users_spec.rb' -# Offense count: 82 +# Offense count: 83 # Configuration parameters: Prefixes. # Prefixes: when, with, without RSpec/ContextWording: @@ -99,13 +99,13 @@ RSpec/ContextWording: RSpec/ExampleLength: Max: 18 -# Offense count: 19 +# Offense count: 18 # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. # Include: **/*_spec*rb*, **/spec/**/* RSpec/FilePath: Enabled: false -# Offense count: 70 +# Offense count: 69 # Configuration parameters: . # SupportedStyles: have_received, receive RSpec/MessageSpies: @@ -166,6 +166,13 @@ Rake/Desc: Exclude: - 'lib/tasks/git.rake' +# Offense count: 1 +# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols. +# SupportedStyles: inline, group +Style/AccessModifierDeclarations: + Exclude: + - 'lib/slack/real_time/client.rb' + # Offense count: 4 # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods. # SupportedStyles: annotated, template, unannotated diff --git a/Gemfile b/Gemfile index 52d9fd2d..b81dce31 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,7 @@ group :test do gem 'erubis' gem 'faraday-typhoeus' gem 'json-schema' + gem 'racc' gem 'rake', '~> 13' gem 'rspec' gem 'rubocop', '1.26.1' # Lock to specific version to avoid breaking cops/changes diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 119ef7d4..f34930b1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,6 +3,7 @@ require 'rubygems' require 'rspec' +require 'ostruct' require 'timecop' require 'simplecov'