Skip to content

Commit ac11dd2

Browse files
committed
add rubocop
1 parent fbe4024 commit ac11dd2

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.rubocop.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
AllCops:
4+
TargetRubyVersion: 3.1
5+
Exclude:
6+
- 'lib/opentelemetry/**/*.rb'
7+
8+
Layout/LineLength:
9+
Max: 140
10+
11+
Lint/UnusedMethodArgument:
12+
Enabled: false
13+
14+
Metrics:
15+
Enabled: false
16+
17+
Style/Copyright:
18+
Enabled: false
19+
20+
Style/ClassAndModuleChildren:
21+
Enabled: false
22+
23+
Style/StringHashKeys:
24+
Enabled: false
25+
26+
Style/StringLiterals:
27+
EnforcedStyle: double_quotes
28+
29+
Style/RequireOrder:
30+
Enabled: true
31+

.rubocop_todo.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2025-04-04 09:06:04 UTC using RuboCop version 1.75.2.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 10
10+
# Configuration parameters: AllowedConstants.
11+
Style/Documentation:
12+
Exclude:
13+
- 'spec/**/*'
14+
- 'test/**/*'
15+
- 'lib/fluent/plugin/in_otlp.rb'
16+
- 'lib/fluent/plugin/otlp/request.rb'
17+
- 'lib/fluent/plugin/otlp/response.rb'
18+
- 'lib/fluent/plugin/out_otlp.rb'

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ gem "irb"
99
gem "rake", "~> 13.0"
1010

1111
gem "test-unit", "~> 3.0"
12+
13+
gem "rubocop"

0 commit comments

Comments
 (0)