Skip to content

Commit 064e962

Browse files
Skip this rule for specific files
These files are scripts/test files that make sense to have all classes being defined together.
1 parent 0a3db7e commit 064e962

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ Style/MultipleComparison:
104104
Style/NumericLiteralPrefix:
105105
Enabled: false
106106

107+
Style/OneClassPerFile:
108+
Description: Checks that each source file defines at most one top-level class or module.
109+
Exclude:
110+
- 'script/txt2html'
111+
- 'test/helpers/test_faker_deprecator.rb'
112+
- 'test/test_faker.rb'
113+
- 'test/test_flexible.rb'
114+
107115
Style/RegexpLiteral:
108116
Description: Use / or %r around regular expressions.
109117
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r

0 commit comments

Comments
 (0)