AllCops: TargetRubyVersion: 2.6 RubyInterpreters: - ruby Exclude: - '**/*.gemspec' - 'test/**/*.rb' - 'examples/**/*.rb' - 'Gemfile*' - lib/polyphony/adapters/irb.rb Style/LambdaCall: Enabled: false # Style/ModuleFunction: # Enabled: false # Style/RegexpLiteral: # Enabled: false # Naming/MemoizedInstanceVariableName: # Enabled: false Style/Alias: EnforcedStyle: prefer_alias_method Style/SpecialGlobalVars: Enabled: false Style/ClassAndModuleChildren: Enabled: false Metrics/AbcSize: Enabled: false Style/MixinUsage: Enabled: false Style/MultilineBlockChain: Enabled: false Lint/RescueException: Enabled: false Lint/InheritException: Enabled: false Style/NumericPredicate: Enabled: false Style/TrivialAccessors: Enabled: false Style/MethodMissingSuper: Enabled: false Style/GlobalVars: Exclude: - lib/polyphony/auto_run.rb - lib/polyphony/extensions/core.rb - examples/**/*.rb Layout/HashAlignment: EnforcedColonStyle: table EnforcedHashRocketStyle: table Naming/AccessorMethodName: Exclude: - lib/polyphony/http/server/http1.rb - lib/polyphony/http/server/http2_stream.rb - examples/**/*.rb Naming/MethodName: Exclude: - test/test_signal.rb Lint/SuppressedException: Exclude: - lib/polyphony/http/server/http1.rb - lib/polyphony/http/server/http2.rb - lib/polyphony/http/server/http2_stream.rb - lib/polyphony/http/server.rb - examples/**/*.rb Metrics/MethodLength: Max: 12 Exclude: - lib/polyphony/http/server/rack.rb - lib/polyphony/extensions/io.rb - test/**/*.rb - examples/**/*.rb Metrics/ModuleLength: Exclude: - lib/polyphony/extensions/core.rb - examples/**/*.rb Metrics/ClassLength: Exclude: - lib/polyphony/http/server/http1.rb - lib/polyphony/extensions/io.rb - test/**/*.rb - examples/**/*.rb Style/RegexpLiteral: Enabled: false Style/RescueModifier: Exclude: - lib/polyphony/auto_run.rb - test/**/*.rb - examples/**/*.rb Style/Documentation: Exclude: - test/**/*.rb - examples/**/*.rb - lib/polyphony/adapters/**/*.rb Style/FormatString: Exclude: - test/**/*.rb - examples/**/*.rb Style/FormatStringToken: Exclude: - test/**/*.rb - examples/**/*.rb Naming/MethodParameterName: Exclude: - test/**/*.rb - examples/**/*.rb Security/MarshalLoad: Exclude: - examples/**/*.rb Lint/ShadowedArgument: Exclude: - lib/polyphony/extensions/fiber.rb Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Layout/EmptyLinesAroundAttributeAccessor: Enabled: true Layout/SpaceAroundMethodCallOperator: Enabled: true Lint/DeprecatedOpenSSLConstant: Enabled: true Lint/MixedRegexpCaptureTypes: Enabled: true Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true Style/ExponentialNotation: Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/SlicingWithRange: Enabled: true Style/RaiseArgs: Exclude: - lib/polyphony/extensions/fiber.rb