Skip to content

Commit be69214

Browse files
authored
Merge pull request #226 from eduardoj/fix/rubocop
Fix RuboCop linter offenses
2 parents fbff61d + 05ad00d commit be69214

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.rubocop_todo.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-07-18 20:10:02 UTC using RuboCop version 1.54.2.
3+
# on 2024-05-27 16:23:11 UTC using RuboCop version 1.55.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -64,6 +64,24 @@ RSpec/RepeatedDescription:
6464
Exclude:
6565
- 'spec/requests/active_record_sql_metrics_spec.rb'
6666

67+
# Offense count: 4
68+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
69+
# Include: **/*_spec.rb
70+
RSpec/SpecFilePathFormat:
71+
Exclude:
72+
- '**/spec/routing/**/*'
73+
- 'spec/unit/block_instrumentation_spec.rb'
74+
- 'spec/unit/configuration_spec.rb'
75+
- 'spec/unit/sql/normalizer_spec.rb'
76+
- 'spec/unit/sql/query_spec.rb'
77+
78+
# Offense count: 1
79+
# Configuration parameters: Include.
80+
# Include: **/*_spec*rb*, **/spec/**/*
81+
RSpec/SpecFilePathSuffix:
82+
Exclude:
83+
- 'spec/unit/tags.rb'
84+
6785
# Offense count: 1
6886
# This cop supports safe autocorrection (--autocorrect).
6987
Rake/Desc:

spec/requests/logger_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
get "/metrics"
99
end
1010

11-
assert_includes out, "error message"
11+
expect(out).to include("error message")
1212
end
1313
end

0 commit comments

Comments
 (0)