inherit_mode: merge: - Exclude - Include AllCops: Include: - '**/*.rbs' Lint: Exclude: - '**/*.rbs' Style: Exclude: - '**/*.rbs' # RBS RBS: Enabled: true Include: - '**/*.rbs' ## RBS/Layout RBS/Layout: Enabled: true RBS/Layout/CommentIndentation: Description: 'Use 2 spaces for comment indentation' Enabled: true RBS/Layout/EmptyLineAroundOverloads: Description: 'No empty line between overload' Enabled: true RBS/Layout/EndAlignment: Description: 'Align `end` keyword' Enabled: true RBS/Layout/ExtraSpacing: Description: 'Remove extra spacing' Enabled: true RBS/Layout/IndentationWidth: Description: 'Use 2 spaces for indentation' Enabled: true RBS/Layout/OverloadIndentation: Description: 'Indent overload method' Enabled: true RBS/Layout/SpaceAroundArrow: Description: 'Use space around `->`' Enabled: true RBS/Layout/SpaceAroundBraces: Description: 'Use space around `{}`' Enabled: true RBS/Layout/SpaceBeforeColon: Description: 'Use space before `:`' Enabled: true RBS/Layout/SpaceBeforeOverload: Description: 'Use space before overload method' Enabled: true RBS/Layout/TrailingWhitespace: Description: 'Remove trailing whitespace' Enabled: true ## RBS/Lint RBS/Lint: Enabled: true RBS/Lint/DuplicateOverload: Severity: warning Description: 'Checks that there are no repeated overload bodies' Enabled: true RBS/Lint/RedundantOverloadTypeParams: Severity: warning Description: 'Check redundant overload type params' Enabled: true RBS/Lint/Syntax: Severity: fatal Description: 'Check RBS syntax' Enabled: true RBS/Lint/TypeParamsArity: Severity: warning Description: 'Check type params arity' Enabled: true Expects: # Default expects. # You can add expects in .rubocop.yml. ## class/module Array: 1 Enumerable: 1 Enumerator: 2 Enumerator::Chain: 1 Enumerator::Generator: 1 Enumerator::Lazy: 2 Enumerator::Product: 1 FrozenError: 1 Hash: 2 KeyError: 2 NameError: 1 NoMatchingPatternKeyError: 2 NoMethodError: 1 ObjectSpace::WeakKeyMap: 2 Range: 1 Set: 1 Struct: 1 ## interface Array::_Pattern: 1 Enumerable::_NotFound: 1 Gem::_HashLike: 2 Kernel::_RationalDiv: 1 Marshal::_Proc: 1 String::_MatchAgainst: 2 _Each: 1 _EachEntry: 1 _Range: 1 _ToA: 1 _ToAry: 1 _ToH: 2 _ToHash: 2 ## type alias array: 1 hash: 2 range: 1 RBS/Lint/WillSyntaxError: Severity: warning Description: 'Check RBS will syntax error' Enabled: true ## RBS/Style RBS/Style: Enabled: true RBS/Style/BlockReturnBoolish: Description: 'Use `bool` for block return type' Enabled: true RBS/Style/ClassicType: Description: 'Use simple type' Enabled: true RBS/Style/DuplicatedType: Description: 'Check duplicated type' Enabled: true RBS/Style/InitializeReturnType: Description: 'Use `void` for initialize method' Enabled: true RBS/Style/MergeUntyped: Description: 'Merge to `untyped`' Enabled: true RBS/Style/OptionalNil: Description: 'Use nil instead of nil?' Enabled: true RBS/Style/TrueFalse: Description: 'Use bool instead of true | false' Enabled: true