Skip to content

Commit

Permalink
Merge pull request #1612 from yeti-switch/rubocop-improvement-no-issue
Browse files Browse the repository at this point in the history
upate rubocop and related gems like rspec-rubocop and etc && generage todo file [no issue]
  • Loading branch information
Ivanov-Anton authored Nov 16, 2024
2 parents 4ad44ee + 43a9134 commit 6ca647a
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-rails
- rubocop-performance
Expand Down
140 changes: 140 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# This configuration was generated by
# `rubocop --auto-gen-config --no-exclude-limit`
# on 2024-11-10 12:20:48 UTC using RuboCop version 1.68.0.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterGuardClause:
Exclude:
- 'pgq-processors/bin/bundle'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'config/initializers/permissions_policy.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'app/models/application_record.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
Layout/LeadingCommentSpace:
Exclude:
- 'config/initializers/active_admin.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'spec/features/equipment/codec_groups/new_codec_group_spec.rb'
- 'spec/features/rate_management/pricelist_item/actions_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Exclude:
- 'pgq-processors/bin/bundle'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
- 'app/resources/base_resource.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Performance/RegexpMatch:
Exclude:
- 'pgq-processors/bin/byebug'
- 'pgq-processors/bin/htmldiff'
- 'pgq-processors/bin/ldiff'
- 'pgq-processors/bin/rake'
- 'pgq-processors/bin/restclient'
- 'pgq-processors/bin/rspec'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: order, limit, select, lock
Rails/FindEach:
Exclude:
- 'spec/services/billing_invoice/calculate_period_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
Rails/Present:
Exclude:
- 'pgq-processors/bin/bundle'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
Exclude:
- 'pgq-processors/bin/bundle'
- 'pgq-processors/bin/byebug'
- 'pgq-processors/bin/htmldiff'
- 'pgq-processors/bin/ldiff'
- 'pgq-processors/bin/rake'
- 'pgq-processors/bin/restclient'
- 'pgq-processors/bin/rspec'

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
Style/HashEachMethods:
Exclude:
- 'app/forms/batch_update_form/base.rb'
- 'lib/prometheus/active_calls_collector.rb'
- 'lib/prometheus/customer_auth_collector.rb'
- 'spec/features/realtime_data/sip_options_probers/sip_options_probers_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/PerlBackrefs:
Exclude:
- 'pgq-processors/bin/bundle'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/services/send_report/base.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'config/initializers/yeti.rb'

# Offense count: 62
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'pgq-processors/bin/bundle'
- 'pgq-processors/bin/byebug'
- 'pgq-processors/bin/htmldiff'
- 'pgq-processors/bin/ldiff'
- 'pgq-processors/bin/rake'
- 'pgq-processors/bin/restclient'
- 'pgq-processors/bin/rspec'
41 changes: 23 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,14 @@ GEM
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
byebug (11.1.3)
capybara (3.33.0)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~> 1.5)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
capybara-screenshot (1.0.22)
capybara (>= 1.0, < 4)
Expand Down Expand Up @@ -411,6 +412,7 @@ GEM
activerecord
kaminari-core (= 1.2.1)
kaminari-core (1.2.1)
language_server-protocol (3.17.0.3)
launchy (2.4.3)
addressable (~> 2.3)
libv8-node (16.10.0.0)
Expand Down Expand Up @@ -654,8 +656,9 @@ GEM
parallel (1.12.1)
parallel_tests (2.29.0)
parallel
parser (3.2.1.1)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
pg (1.4.6)
pgq_prometheus (0.2.3)
prometheus_exporter
Expand Down Expand Up @@ -710,7 +713,7 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
rchardet (1.8.0)
regexp_parser (1.8.2)
regexp_parser (2.9.2)
request_store (1.4.1)
rack (>= 1.4)
responders (3.0.1)
Expand Down Expand Up @@ -738,26 +741,28 @@ GEM
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.2)
rubocop (1.48.1)
rubocop (1.68.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.26.0, < 2.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.0)
parser (>= 3.2.1.0)
rubocop-performance (1.6.0)
rubocop (>= 0.71.0)
rubocop-rails (2.18.0)
rubocop-ast (1.34.1)
parser (>= 3.3.1.0)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.27.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-rspec (1.39.0)
rubocop (>= 0.68.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.2.0)
rubocop (~> 1.61)
ruby-ole (1.2.12.2)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.4)
Expand Down

0 comments on commit 6ca647a

Please sign in to comment.