# This configuration was generated by # `rubocop --auto-gen-config` # on 2016-11-20 15:49:33 +0000 using RuboCop version 0.45.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. require: rubocop-rspec # Offense count: 2 Lint/AmbiguousRegexpLiteral: Exclude: - 'lib/flipper/instrumentation/metriks.rb' - 'lib/flipper/instrumentation/statsd.rb' # Offense count: 6 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'lib/flipper/adapters/active_record.rb' - 'lib/flipper/adapters/sequel.rb' - 'lib/flipper/feature.rb' - 'lib/flipper/gate_values.rb' # Offense count: 1 Lint/Eval: Exclude: - 'flipper.gemspec' # Offense count: 3 Lint/HandleExceptions: Exclude: - 'spec/flipper/adapters/mongo_spec.rb' - 'test/adapters/mongo_test.rb' - 'test/helper.rb' # Offense count: 24 Lint/ShadowingOuterLocalVariable: Exclude: - 'lib/flipper/adapters/active_record.rb' - 'lib/flipper/adapters/instrumented.rb' - 'lib/flipper/adapters/sequel.rb' - 'spec/flipper/api/v1/actions/actors_gate_spec.rb' - 'spec/flipper/api/v1/actions/percentage_of_actors_gate_spec.rb' - 'spec/flipper/api/v1/actions/percentage_of_time_gate_spec.rb' - 'spec/flipper/dsl_spec.rb' - 'spec/flipper/feature_spec.rb' - 'spec/flipper/types/group_spec.rb' # Offense count: 26 Lint/UselessAssignment: Exclude: - 'lib/flipper/instrumentation/log_subscriber.rb' - 'lib/flipper/instrumentation/subscriber.rb' - 'lib/flipper/ui/actions/groups_gate.rb' - 'spec/flipper/api/action_spec.rb' - 'spec/flipper/dsl_spec.rb' - 'spec/flipper/feature_spec.rb' - 'spec/flipper/gates/group_spec.rb' - 'spec/flipper/instrumentation/metriks_subscriber_spec.rb' - 'spec/flipper/instrumentation/statsd_subscriber_spec.rb' - 'spec/flipper_spec.rb' - 'spec/flipper/middleware/memoizer_spec.rb' - 'test/helper.rb' # Offense count: 27 Metrics/AbcSize: Max: 30 # Offense count: 1 # Configuration parameters: CountComments. Metrics/BlockLength: Max: 195 # Offense count: 4 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 178 # Offense count: 39 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 23 # Offense count: 65 # Configuration parameters: Max. RSpec/ExampleLength: Enabled: false # Offense count: 2 # Configuration parameters: CustomTransform. RSpec/FilePath: Exclude: - 'spec/flipper/adapters/pstore_spec.rb' - 'spec/integration_spec.rb' # Offense count: 91 RSpec/InstanceVariable: Exclude: - 'spec/flipper/adapters/operation_logger_spec.rb' - 'spec/flipper/dsl_spec.rb' - 'spec/flipper/feature_spec.rb' - 'spec/flipper/instrumentation/log_subscriber_spec.rb' - 'spec/flipper/ui/actions/add_feature_spec.rb' - 'spec/flipper/ui/actions/features_spec.rb' - 'spec/flipper/ui/decorators/feature_spec.rb' - 'spec/flipper/ui/decorators/gate_spec.rb' - 'spec/flipper/ui_spec.rb' - 'spec/flipper_spec.rb' - 'spec/integration_spec.rb' # Offense count: 15 # Configuration parameters: IgnoreSymbolicNames. RSpec/VerifiedDoubles: Exclude: - 'spec/flipper/api/v1/actions/features_spec.rb' - 'spec/flipper/dsl_spec.rb' - 'spec/flipper/feature_spec.rb' - 'spec/flipper/types/group_spec.rb' - 'spec/flipper_spec.rb' - 'spec/integration_spec.rb' # Offense count: 2 Style/AccessorMethodName: Exclude: - 'lib/flipper/adapters/memory.rb' - 'lib/flipper/adapters/pstore.rb' # Offense count: 7 Style/ConstantName: Exclude: - 'lib/flipper.rb' - 'lib/flipper/adapters/dalli.rb' - 'lib/flipper/adapters/memoizable.rb' - 'lib/flipper/adapters/memory.rb' - 'lib/flipper/adapters/mongo.rb' - 'lib/flipper/adapters/pstore.rb' - 'lib/flipper/adapters/redis.rb' # Offense count: 3 Style/DoubleNegation: Exclude: - 'lib/flipper/adapters/memoizable.rb' - 'lib/flipper/gates/boolean.rb' - 'lib/flipper/typecast.rb' # Offense count: 7 # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts. Style/FileName: Exclude: - 'lib/flipper-active_record.rb' - 'lib/flipper-api.rb' - 'lib/flipper-cloud.rb' - 'lib/flipper-dalli.rb' - 'lib/flipper-mongo.rb' - 'lib/flipper-redis.rb' - 'lib/flipper-sequel.rb' - 'lib/flipper-ui.rb' # Offense count: 2 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - 'lib/flipper/instrumentation/log_subscriber.rb' # Offense count: 10 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'lib/flipper/api/v1/actions/percentage_of_actors_gate.rb' - 'lib/flipper/api/v1/actions/percentage_of_time_gate.rb' - 'lib/flipper/gate_values.rb' - 'lib/flipper/instrumentation/statsd_subscriber.rb' - 'lib/flipper/instrumentation/subscriber.rb' - 'lib/flipper/registry.rb' - 'lib/flipper/typecast.rb' # Offense count: 1 Style/IfInsideElse: Exclude: - 'lib/flipper/gates/actor.rb' # Offense count: 1 Style/MethodMissing: Exclude: - 'lib/flipper/types/actor.rb' Style/AccessorMethodName: Exclude: - 'lib/flipper/adapter.rb' - 'lib/flipper/adapters/http.rb' - 'lib/flipper/adapters/instrumented.rb' - 'lib/flipper/adapters/memoizable.rb' - 'lib/flipper/adapters/operation_logger.rb' - 'lib/flipper/adapters/memory.rb' - 'lib/flipper/adapters/pstore.rb'