# This configuration was generated by # `rubocop --auto-gen-config` # on 2016-12-27 13:45:00 +0100 using RuboCop version 0.46.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. # Offense count: 6 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'lib/appsignal/config.rb' - 'lib/appsignal/transaction.rb' # Offense count: 7 Lint/HandleExceptions: Exclude: - 'lib/appsignal/cli/install.rb' - 'spec/lib/appsignal/hooks/shoryuken_spec.rb' - 'spec/lib/appsignal/hooks/sidekiq_spec.rb' - 'spec/lib/appsignal/integrations/resque_spec.rb' # Offense count: 1 Lint/IneffectiveAccessModifier: Exclude: - 'lib/appsignal/garbage_collection_profiler.rb' # Offense count: 4 Lint/RescueException: Exclude: - 'lib/appsignal/minutely.rb' - 'lib/appsignal/rack/streaming_listener.rb' # Offense count: 3 # Cop supports --auto-correct. Lint/UnifiedInteger: Exclude: - 'lib/appsignal/utils.rb' - 'lib/appsignal/utils/params_sanitizer.rb' # Offense count: 36 Metrics/AbcSize: Max: 59 # Offense count: 2 # Configuration parameters: CountComments. Metrics/BlockLength: Max: 31 # Offense count: 4 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 263 # Offense count: 14 Metrics/CyclomaticComplexity: Max: 11 # Offense count: 378 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 456 # Offense count: 77 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 60 # Offense count: 1 # Configuration parameters: CountComments. Metrics/ModuleLength: Exclude: - "lib/appsignal.rb" # Offense count: 8 Metrics/PerceivedComplexity: Max: 15 # Offense count: 7 Style/AccessorMethodName: Exclude: - 'lib/appsignal.rb' - 'lib/appsignal/transaction.rb' - 'spec/support/helpers/cli_helpers.rb' # Offense count: 19 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/appsignal.rb' - 'lib/appsignal/hooks/active_support_notifications.rb' - 'lib/appsignal/hooks/celluloid.rb' - 'lib/appsignal/hooks/net_http.rb' - 'lib/appsignal/hooks/puma.rb' - 'lib/appsignal/hooks/rake.rb' - 'lib/appsignal/hooks/redis.rb' - 'lib/appsignal/hooks/unicorn.rb' - 'lib/appsignal/hooks/webmachine.rb' - 'lib/appsignal/transaction.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/appsignal.rb' # Offense count: 3 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'lib/appsignal/integrations/padrino.rb' - 'lib/appsignal/integrations/webmachine.rb' # Offense count: 3 Style/ClassVars: Exclude: - 'lib/appsignal/event_formatter.rb' - 'lib/appsignal/minutely.rb' # Offense count: 1 Style/DoubleNegation: Exclude: - 'lib/appsignal.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'lib/appsignal/transaction.rb' - 'spec/lib/appsignal/event_formatter_spec.rb' - 'spec/lib/appsignal/hooks/mongo_ruby_driver_spec.rb' - 'spec/lib/appsignal/hooks/puma_spec.rb' - 'spec/lib/appsignal/hooks/unicorn_spec.rb' - 'spec/lib/appsignal/integrations/data_mapper_spec.rb' - 'spec/lib/appsignal/integrations/resque_active_job_spec.rb' # Offense count: 5 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'lib/appsignal.rb' - 'lib/appsignal/event_formatter.rb' - 'lib/appsignal/event_formatter/moped/query_formatter.rb' - 'lib/appsignal/hooks.rb' - 'lib/appsignal/marker.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: MaxLineLength. Style/IfUnlessModifier: Exclude: - 'lib/appsignal.rb' - 'lib/appsignal/garbage_collection_profiler.rb' # Offense count: 2 Style/MethodMissing: Exclude: - 'lib/appsignal/extension.rb' - 'lib/appsignal/transaction.rb' # Offense count: 1 # Cop supports --auto-correct. Style/MultilineIfModifier: Exclude: - 'lib/appsignal/js_exception_transaction.rb' # Offense count: 9 # Cop supports --auto-correct. Style/MutableConstant: Exclude: - 'ext/extconf.rb' - 'lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter.rb' - 'lib/appsignal/integrations/data_mapper.rb' - 'lib/appsignal/marker.rb' - 'lib/appsignal/transaction.rb' - 'lib/appsignal/transmitter.rb' - 'lib/appsignal/version.rb' - 'spec/lib/appsignal/hooks/mongo_ruby_driver_spec.rb' - 'spec/lib/appsignal/hooks/redis_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'ext/extconf.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: IncludeSemanticChanges. Style/NonNilCheck: Exclude: - 'lib/appsignal/transaction.rb' # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles. # SupportedOctalStyles: zero_with_o, zero_only Style/NumericLiteralPrefix: Exclude: - 'ext/extconf.rb' - 'spec/lib/appsignal/cli/diagnose_spec.rb' - 'spec/lib/appsignal/config_spec.rb' - 'spec/lib/appsignal/system/container_spec.rb' - 'spec/lib/appsignal/transmitter_spec.rb' - 'spec/lib/appsignal_spec.rb' - 'spec/support/helpers/time_helpers.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/appsignal/cli/diagnose.rb' # Offense count: 2 # Cop supports --auto-correct. Style/PerlBackrefs: Exclude: - 'lib/appsignal/system.rb' # Offense count: 2 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? Style/PredicateName: Exclude: - 'spec/**/*' - 'lib/appsignal.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, exploded Style/RaiseArgs: Exclude: - 'lib/appsignal/utils.rb' - 'spec/lib/appsignal/integrations/resque_spec.rb' # Offense count: 7 # Cop supports --auto-correct. Style/RescueModifier: Exclude: - 'spec/lib/appsignal/integrations/padrino_spec.rb' - 'spec/lib/appsignal/rack/generic_instrumentation_spec.rb' - 'spec/lib/appsignal/rack/rails_instrumentation_spec.rb' - 'spec/lib/appsignal/rack/sinatra_instrumentation_spec.rb' - 'spec/lib/appsignal/rack/streaming_listener_spec.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: Exclude: - 'lib/appsignal.rb' - 'lib/appsignal/config.rb' # Offense count: 1 # Cop supports --auto-correct. Style/UnlessElse: Exclude: - 'lib/appsignal.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: Exclude: - 'lib/appsignal/cli/install.rb' - 'spec/lib/appsignal/config_spec.rb' - 'spec/lib/appsignal/hooks/shoryuken_spec.rb' - 'spec/lib/appsignal/hooks/sidekiq_spec.rb' - 'spec/lib/appsignal/transaction_spec.rb' - 'spec/lib/appsignal/utils/query_params_sanitizer_spec.rb'