Skip to content

Commit 9cdac40

Browse files
committed
rubocop: add rubocop-fluentd and rubocop-performance
1 parent 9ad0877 commit 9cdac40

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.rubocop.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins:
2+
- rubocop-performance
3+
- rubocop-fluentd
4+
15
AllCops:
26
Exclude:
37
- 'lib/opentelemetry/**/*'
@@ -6,6 +10,15 @@ AllCops:
610
SuggestExtensions: false
711
TargetRubyVersion: 3.2
812

13+
# rubocop-fluentd
14+
Lint/FluentdPluginLogScope:
15+
Enabled: true
16+
Lint/FluentdPluginConfigParamDefaultTime:
17+
Enabled: true
18+
Performance/FluentdPluginLogStringInterpolation:
19+
Enabled: true
20+
21+
# rubocop
922
Gemspec/DevelopmentDependencies:
1023
Enabled: false
1124

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ gem "grpc", "~> 1.73"
99
gem "grpc-tools"
1010
gem "irb"
1111
gem "rake", "~> 13.0"
12-
gem "rubocop", "~> 1.75"
1312
gem "test-unit", "~> 3.0"
1413
gem "timecop"
14+
15+
gem "rubocop", "~> 1.75"
16+
gem "rubocop-fluentd", "~> 0.2"
17+
gem "rubocop-performance", "~> 1.25"

0 commit comments

Comments
 (0)