# This configuration was generated by # `rubocop --auto-gen-config` # on 2016-02-17 12:41:04 +0200 using RuboCop version 0.37.2. # 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: 3 Lint/AmbiguousOperator: Exclude: - 'app/services/community_stylesheet_compiler.rb' - 'app/utils/array_utils.rb' - 'app/utils/date_utils.rb' # Offense count: 307 Lint/AmbiguousRegexpLiteral: Enabled: false # Offense count: 13 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'app/controllers/community_memberships_controller.rb' - 'app/controllers/sessions_controller.rb' - 'app/models/category.rb' - 'app/models/community.rb' - 'app/models/custom_field.rb' - 'app/models/custom_field_option.rb' - 'app/models/menu_link.rb' - 'app/models/person.rb' - 'app/services/user_service/api/auth_tokens.rb' - 'features/step_definitions/wait_steps.rb' # Offense count: 12 # Cop supports --auto-correct. Lint/BlockAlignment: Exclude: - 'app/controllers/admin/categories_controller.rb' - 'app/controllers/people_controller.rb' - 'app/mailers/person_mailer.rb' - 'app/services/paypal_service/api/lookup.rb' - 'app/utils/sql_utils.rb' - 'lib/tasks/deploy.rake' - 'lib/tasks/heroku.rake' - 'spec/controllers/listings_controller_spec.rb' - 'spec/models/person_spec.rb' - 'spec/utils/entity_utils_spec.rb' # Offense count: 1 Lint/ConditionPosition: Exclude: - 'app/controllers/community_memberships_controller.rb' # Offense count: 4 # Cop supports --auto-correct. Lint/Debugger: Exclude: - 'features/step_definitions/debug_steps.rb' - 'features/step_definitions/web_steps.rb' - 'features/support/hooks.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. # SupportedStyles: start_of_line, def Lint/DefEndAlignment: Enabled: false # Offense count: 5 # Cop supports --auto-correct. Lint/DeprecatedClassMethods: Exclude: - 'app/services/community_stylesheet_compiler.rb' - 'app/services/stylesheet_compiler.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 2 Lint/DuplicateMethods: Exclude: - 'app/services/email_service.rb' - 'spec/services/plan_service/api/api.rb' # Offense count: 2 Lint/DuplicatedKey: Exclude: - 'app/models/community.rb' - 'spec/services/paypal_service/store/paypal_payment_spec.rb' # Offense count: 47 # Cop supports --auto-correct. # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. # SupportedStyles: keyword, variable, start_of_line Lint/EndAlignment: Enabled: false # Offense count: 2 Lint/Eval: Exclude: - 'features/step_definitions/admin_transaction_steps.rb' # Offense count: 4 Lint/HandleExceptions: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 13 Lint/IneffectiveAccessModifier: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/homepage_controller.rb' - 'app/helpers/cache_helper.rb' - 'app/helpers/rest_helper.rb' - 'app/models/custom_field_values/numeric_field_value.rb' # Offense count: 9 Lint/NestedMethodDefinition: Exclude: - 'app/utils/form_utils.rb' - 'lib/selenium_webdriver_phantomjs_monkey_patch.rb' # Offense count: 18 Lint/ParenthesesAsGroupedExpression: Exclude: - 'app/controllers/accept_conversations_controller.rb' - 'app/controllers/accept_preauthorized_conversations_controller.rb' - 'app/controllers/confirm_conversations_controller.rb' - 'app/controllers/free_transactions_controller.rb' - 'app/controllers/post_pay_transactions_controller.rb' - 'app/controllers/terms_controller.rb' - 'features/support/hooks.rb' - 'script/username_blacklist.rb' - 'spec/controllers/listings_controller_spec.rb' - 'spec/factories.rb' - 'spec/models/person_spec.rb' - 'spec/services/marketplace_service/marketplaces_spec.rb' - 'spec/services/user_service/users_spec.rb' # Offense count: 1 Lint/RescueException: Exclude: - 'app/services/braintree_sale_service.rb' # Offense count: 13 Lint/ShadowingOuterLocalVariable: Exclude: - 'app/services/confirm_conversation.rb' - 'app/services/email_service.rb' - 'app/services/paypal_service/api/payments.rb' - 'app/services/paypal_service/store/paypal_payment.rb' - 'app/utils/array_utils.rb' - 'app/utils/param_utils.rb' - 'spec/spec_helper.rb' - 'spec/utils/array_utils_spec.rb' - 'test/helper_modules.rb' # Offense count: 7 # Cop supports --auto-correct. Lint/StringConversionInInterpolation: Exclude: - 'app/models/translation_cache.rb' - 'app/utils/date_utils.rb' - 'app/utils/form_utils.rb' - 'app/utils/hash_utils.rb' - 'app/utils/sql_utils.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 70 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks. Lint/UnusedBlockArgument: Enabled: false # Offense count: 110 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Enabled: false # Offense count: 4 Lint/UselessAccessModifier: Exclude: - 'app/controllers/admin/custom_fields_controller.rb' - 'app/helpers/cache_helper.rb' - 'app/helpers/rest_helper.rb' - 'app/models/custom_field_values/numeric_field_value.rb' # Offense count: 86 Lint/UselessAssignment: Enabled: false # Offense count: 1 Lint/Void: Exclude: - 'features/step_definitions/email_steps.rb' # Offense count: 295 Metrics/AbcSize: Max: 107 # Offense count: 2 Metrics/BlockNesting: Max: 4 # Offense count: 36 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 466 # Offense count: 63 Metrics/CyclomaticComplexity: Max: 22 # Offense count: 3820 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes. # URISchemes: http, https Metrics/LineLength: Max: 514 # Offense count: 386 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 96 # Offense count: 21 # Configuration parameters: CountComments. Metrics/ModuleLength: Max: 803 # Offense count: 8 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: CountKeywordArgs: false Max: 7 # Offense count: 48 Metrics/PerceivedComplexity: Max: 23 # Offense count: 1 # Cop supports --auto-correct. Performance/CaseWhenSplat: Exclude: - 'app/services/paypal_service/ipn.rb' # Offense count: 6 # Cop supports --auto-correct. Performance/Casecmp: Exclude: - 'app/controllers/amazon_bounces_controller.rb' - 'app/controllers/application_controller.rb' - 'app/services/paypal_service/onboarding.rb' - 'lib/tasks/deploy.rake' # Offense count: 4 # Cop supports --auto-correct. Performance/Count: Exclude: - 'features/step_definitions/email_steps.rb' # Offense count: 3 # Cop supports --auto-correct. Performance/Detect: Exclude: - 'spec/mailers/community_mailer_spec.rb' - 'test/helper_modules.rb' # Offense count: 1 # Cop supports --auto-correct. Performance/RangeInclude: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 54 # Cop supports --auto-correct. Performance/RedundantBlockCall: Enabled: false # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: MaxKeyValuePairs. Performance/RedundantMerge: Exclude: - 'app/helpers/rest_helper.rb' # Offense count: 14 # Cop supports --auto-correct. Performance/StringReplacement: Exclude: - 'app/helpers/application_helper.rb' - 'app/helpers/listings_helper.rb' - 'app/models/community.rb' - 'app/services/community_stylesheet_compiler.rb' - 'app/services/params_service.rb' - 'app/services/paypal_service/api/data_types.rb' - 'app/services/s3_uploader.rb' - 'features/step_definitions/admin_transaction_steps.rb' - 'features/step_definitions/user_steps.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 7 Performance/TimesMap: Exclude: - 'spec/services/email_service/ses/synchronize_spec.rb' - 'spec/services/paypal_service/test_api.rb' # Offense count: 143 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, Include. # SupportedStyles: action, filter # Include: app/controllers/**/*.rb Rails/ActionFilter: Enabled: false # Offense count: 14 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: strict, flexible Rails/Date: Exclude: - 'app/controllers/admin/community_memberships_controller.rb' - 'app/controllers/admin/community_transactions_controller.rb' - 'app/controllers/application_controller.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/braintree_payments_helper.rb' - 'app/jobs/page_loaded_job.rb' - 'app/mailers/community_mailer.rb' - 'features/step_definitions/listing_steps.rb' - 'spec/services/marketplace_service/transaction.rb' # Offense count: 3 # Cop supports --auto-correct. Rails/Delegate: Exclude: - 'app/models/listing.rb' - 'app/models/person.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: Include. # Include: app/models/**/*.rb Rails/FindBy: Exclude: - 'app/models/community.rb' - 'app/models/custom_fields/option_field.rb' - 'app/models/person.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Include. # Include: app/models/**/*.rb Rails/FindEach: Exclude: - 'app/models/community.rb' # Offense count: 4 # Configuration parameters: Include. # Include: app/models/**/*.rb Rails/HasAndBelongsToMany: Exclude: - 'app/models/category.rb' - 'app/models/listing.rb' - 'app/models/listing_shape.rb' - 'app/models/person.rb' # Offense count: 22 # Configuration parameters: Include. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb Rails/Output: Exclude: - 'app/jobs/transaction_automatically_confirmed_job.rb' - 'app/jobs/transaction_canceled_job.rb' - 'app/mailers/community_mailer.rb' - 'app/services/community_stylesheet_compiler.rb' - 'lib/console scripts/braintree_refund.rb' - 'lib/selenium_webdriver_phantomjs_monkey_patch.rb' # Offense count: 3 # Cop supports --auto-correct. Rails/PluralizationGrammar: Exclude: - 'app/services/marketplace_service/transaction.rb' - 'app/state_machines/transaction_process_state_machine.rb' - 'spec/mailers/community_mailer_spec.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: Include. # Include: app/models/**/*.rb Rails/ReadWriteAttribute: Exclude: - 'app/models/community.rb' - 'app/models/listing.rb' - 'app/models/paypal_ipn_message.rb' - 'app/models/transaction.rb' - 'app/models/transaction_process.rb' # Offense count: 131 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: strict, flexible Rails/TimeZone: Enabled: false # Offense count: 91 # Configuration parameters: Include. # Include: app/models/**/*.rb Rails/Validation: Enabled: false # Offense count: 17 Style/AccessorMethodName: Exclude: - 'app/controllers/admin/categories_controller.rb' - 'app/controllers/listings_controller.rb' - 'app/controllers/plans_controller.rb' - 'app/jobs/send_payment_receipts.rb' - 'app/jobs/send_welcome_email.rb' - 'app/models/person.rb' - 'app/services/email_service/jobs/request_email_verification.rb' - 'app/services/paypal_service/store/token.rb' - 'app/services/stylesheet_compiler.rb' - 'features/support/env.rb.database_cleanup.rb' - 'lib/np_guid/uuidtools.rb' - 'lib/tasks/deploy.rake' - 'spec/services/paypal_service/api/accounts_spec.rb' - 'spec/services/plan_service/api/api.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/i18n_action_mailer/i18n_action_mailer.rb' - 'spec/spec_helper.rb' # Offense count: 2 # Cop supports --auto-correct. Style/AlignArray: Exclude: - 'app/models/person.rb' - 'spec/services/transaction_service/process_spec.rb' # Offense count: 53 # Cop supports --auto-correct. # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles. # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit Style/AlignHash: Exclude: - 'app/controllers/inboxes_controller.rb' - 'app/mailers/person_mailer.rb' - 'app/models/mercury/image.rb' - 'spec/controllers/sessions_controller_spec.rb' - 'spec/models/person_spec.rb' - 'spec/routing/conversation_routing_spec.rb' - 'spec/services/paypal_service/store/paypal_payment_spec.rb' - 'test/helper_modules.rb' # Offense count: 142 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: with_first_parameter, with_fixed_indentation Style/AlignParameters: Enabled: false # Offense count: 59 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: always, conditionals Style/AndOr: Enabled: false # Offense count: 2 Style/AsciiComments: Exclude: - 'app/helpers/cache_helper.rb' # Offense count: 131 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: percent_q, bare_percent Style/BarePercentLiterals: Enabled: false # Offense count: 511 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Enabled: false # Offense count: 1 # Cop supports --auto-correct. Style/BlockEndNewline: Exclude: - 'spec/services/feature_flag_service/api/features_spec.rb' # Offense count: 577 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Enabled: false # Offense count: 2 Style/CaseEquality: Exclude: - 'app/models/listing_image.rb' - 'app/utils/pattern_matching.rb' # Offense count: 32 # Cop supports --auto-correct. # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth. # SupportedStyles: case, end Style/CaseIndentation: Enabled: false # Offense count: 115 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: is_a?, kind_of? Style/ClassCheck: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 11 # Cop supports --auto-correct. Style/ClassMethods: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 15 Style/ClassVars: Exclude: - 'app/services/braintree_api.rb' - 'features/support/env.rb.database_cleanup.rb' - 'lib/np_guid/uuid22.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 66 # Cop supports --auto-correct. Style/ClosingParenthesisIndentation: Enabled: false # Offense count: 9 # Cop supports --auto-correct. Style/ColonMethodCall: Exclude: - 'app/controllers/application_controller.rb' - 'app/services/user_service/api/auth_tokens.rb' - 'features/step_definitions/email_steps.rb' - 'spec/factories.rb' - 'test/helper_modules.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks. # SupportedStyles: backticks, percent_x, mixed Style/CommandLiteral: Exclude: - 'script/username_blacklist.rb' # Offense count: 57 # Cop supports --auto-correct. # Configuration parameters: Keywords. # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW Style/CommentAnnotation: Enabled: false # Offense count: 10 # Cop supports --auto-correct. Style/CommentIndentation: Exclude: - 'app/controllers/admin/communities_controller.rb' - 'app/helpers/cache_helper.rb' - 'app/models/person.rb' - 'app/services/transaction_service/process/transition.rb' - 'lib/np_guid/usesnpguid.rb' - 'lib/np_guid/uuid22.rb' - 'spec/services/email_service_spec.rb' - 'spec/spec_helper.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: SingleLineConditionsOnly. Style/ConditionalAssignment: Exclude: - 'app/controllers/admin/custom_fields_controller.rb' - 'app/helpers/application_helper.rb' - 'app/models/checkout_payment.rb' - 'app/models/payment_gateways/checkout.rb' - 'app/models/person.rb' - 'lib/np_guid/uuidtools.rb' - 'lib/rack_middleware/custom_domain_cookie.rb' - 'lib/rack_middleware/robots_generator.rb' # Offense count: 16 # Cop supports --auto-correct. Style/DefWithParentheses: Exclude: - 'app/helpers/listings_helper.rb' - 'app/jobs/compile_custom_stylesheet_job.rb' - 'app/models/person.rb' - 'app/services/plan_service/api/api.rb' - 'app/services/result.rb' - 'app/services/s3_uploader.rb' - 'app/services/stylesheet_compiler.rb' - 'features/support/formatter.rb' - 'features/support/login_helpers.rb' - 'lib/np_guid/uuidtools.rb' - 'spec/services/paypal_service/test_api.rb' - 'spec/services/plan_service/api/api.rb' # Offense count: 5 # Cop supports --auto-correct. Style/DeprecatedHashMethods: Exclude: - 'app/helpers/layout_helper.rb' - 'app/services/events.rb' - 'app/utils/hash_utils.rb' - 'features/step_definitions/web_steps.rb' # Offense count: 407 Style/Documentation: Enabled: false # Offense count: 23 Style/EachWithObject: Exclude: - 'app/controllers/admin/community_customizations_controller.rb' - 'app/controllers/admin/listing_shapes_controller.rb' - 'app/controllers/mercury_update_controller.rb' - 'app/helpers/communities_helper.rb' - 'app/services/js_translations.rb' - 'app/services/marketplace_service/conversation.rb' - 'app/services/marketplace_service/person.rb' - 'app/services/paypal_service/api/minimum_commissions.rb' - 'app/services/paypal_service/store/paypal_payment.rb' - 'app/utils/entity_utils.rb' - 'app/utils/hash_utils.rb' - 'app/utils/param_utils.rb' - 'app/view_utils/translation_service_helper.rb' - 'features/step_definitions/admin_category_steps.rb' # Offense count: 41 # Cop supports --auto-correct. Style/ElseAlignment: Enabled: false # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty, nil, both Style/EmptyElse: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/homepage_controller.rb' - 'app/helpers/listings_helper.rb' - 'app/models/person.rb' - 'app/services/braintree_service/payments.rb' - 'app/services/email_service/email_service_injector.rb' - 'app/services/marketplace_service/community.rb' - 'app/services/marketplace_service/conversation.rb' - 'app/utils/json_utils.rb' - 'features/step_definitions/listing_steps.rb' # Offense count: 49 # Cop supports --auto-correct. # Configuration parameters: AllowAdjacentOneLineDefs. Style/EmptyLineBetweenDefs: Exclude: - 'app/helpers/application_helper.rb' - 'app/services/paypal_service/api/data_types.rb' - 'app/services/paypal_service/data_types.rb' - 'app/services/paypal_service/data_types/ipn.rb' - 'app/services/paypal_service/data_types/merchant.rb' - 'app/services/paypal_service/data_types/permissions.rb' - 'app/view_utils/testimonial_view_utils.rb' - 'lib/np_guid/uuid22.rb' - 'lib/selenium_webdriver_phantomjs_monkey_patch.rb' # Offense count: 128 # Cop supports --auto-correct. Style/EmptyLines: Enabled: false # Offense count: 286 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundBlockBody: Enabled: false # Offense count: 272 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundClassBody: Enabled: false # Offense count: 60 # Cop supports --auto-correct. Style/EmptyLinesAroundMethodBody: Enabled: false # Offense count: 201 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Style/EmptyLinesAroundModuleBody: Enabled: false # Offense count: 1 # Cop supports --auto-correct. Style/EmptyLiteral: Exclude: - 'features/step_definitions/listing_steps.rb' # Offense count: 40 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Style/ExtraSpacing: Enabled: false # Offense count: 85 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses Style/FirstParameterIndentation: Enabled: false # Offense count: 10 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: for, each Style/For: Enabled: false # Offense count: 3 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 2 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - 'spec/spec_helper.rb' # Offense count: 27 # Configuration parameters: MinBodyLength. Style/GuardClause: Enabled: false # Offense count: 1556 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues. # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets Style/HashSyntax: Enabled: false # Offense count: 4 Style/IdenticalConditionalBranches: Exclude: - 'app/controllers/admin/communities_controller.rb' # Offense count: 7 Style/IfInsideElse: Exclude: - 'app/controllers/paypal_service/checkout_orders_controller.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/rest_helper.rb' - 'app/models/listing_image.rb' - 'app/models/person.rb' - 'app/services/paypal_service/api/billing_agreements.rb' - 'features/support/rename.rb' # Offense count: 57 # Cop supports --auto-correct. # Configuration parameters: MaxLineLength. Style/IfUnlessModifier: Enabled: false # Offense count: 42 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_brackets Style/IndentArray: Enabled: false # Offense count: 313 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Style/IndentHash: Enabled: false # Offense count: 19 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: normal, rails Style/IndentationConsistency: Exclude: - 'app/helpers/cache_helper.rb' - 'app/mailers/person_mailer.rb' - 'app/models/community.rb' - 'app/models/listing_image.rb' - 'lib/np_guid/uuid22.rb' - 'spec/models/person_spec.rb' - 'spec/services/transaction_service/paypal_events_spec.rb' # Offense count: 82 # Cop supports --auto-correct. # Configuration parameters: Width. Style/IndentationWidth: Enabled: false # Offense count: 123 # Cop supports --auto-correct. Style/Lambda: Enabled: false # Offense count: 71 # Cop supports --auto-correct. Style/LeadingCommentSpace: Enabled: false # Offense count: 7 # Cop supports --auto-correct. Style/LineEndConcatenation: Exclude: - 'features/support/paths.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 84 # Cop supports --auto-correct. Style/MethodCallParentheses: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline Style/MethodDefParentheses: Enabled: false # Offense count: 1 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: snake_case, camelCase Style/MethodName: Enabled: false # Offense count: 55 Style/MultilineBlockChain: Enabled: false # Offense count: 11 # Cop supports --auto-correct. Style/MultilineBlockLayout: Exclude: - 'app/controllers/homepage_controller.rb' - 'app/helpers/transaction_helper.rb' - 'spec/services/feature_flag_service/api/features_spec.rb' - 'spec/services/plan_service/api/plans_spec.rb' # Offense count: 13 # Cop supports --auto-correct. Style/MultilineIfThen: Exclude: - 'app/controllers/emails_controller.rb' - 'app/controllers/homepage_controller.rb' - 'app/controllers/people_controller.rb' - 'app/helpers/listings_helper.rb' - 'app/models/listing_image.rb' - 'app/services/email_service.rb' - 'features/step_definitions/user_steps.rb' - 'features/step_definitions/web_steps.rb' - 'features/support/rename.rb' # Offense count: 184 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented Style/MultilineMethodCallIndentation: Enabled: false # Offense count: 26 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented Style/MultilineOperationIndentation: Enabled: false # Offense count: 86 # Cop supports --auto-correct. Style/MutableConstant: Enabled: false # Offense count: 15 # Cop supports --auto-correct. Style/NegatedIf: Exclude: - 'app/controllers/confirm_conversations_controller.rb' - 'app/controllers/listing_images_controller.rb' - 'app/controllers/mercury_update_controller.rb' - 'app/controllers/paypal_service/checkout_orders_controller.rb' - 'app/models/comment.rb' - 'app/models/community.rb' - 'app/models/email.rb' - 'app/models/invitation.rb' - 'app/services/paypal_service/api/lookup.rb' - 'features/step_definitions/admin_category_steps.rb' - 'features/support/env.rb.database_cleanup.rb' - 'spec/support/database_cleanup.rb' # Offense count: 15 Style/NestedParenthesizedCalls: Exclude: - 'features/step_definitions/listing_steps.rb' - 'spec/routing/devise_routing_spec.rb' - 'spec/routing/listing_routing_spec.rb' - 'spec/routing/mercury_routing_spec.rb' - 'spec/routing/people_routing_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'app/models/listing.rb' - 'lib/np_guid/uuidtools.rb' - 'lib/tasks/export.rake' - 'test/helper_modules.rb' # Offense count: 5 # Cop supports --auto-correct. Style/NilComparison: Exclude: - 'app/controllers/admin/custom_fields_controller.rb' - 'app/controllers/homepage_controller.rb' - 'app/models/location.rb' - 'app/services/paypal_service/api/payments.rb' - 'features/step_definitions/conversation_steps.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: IncludeSemanticChanges. Style/NonNilCheck: Exclude: - 'app/models/location.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 8 # Cop supports --auto-correct. Style/Not: Exclude: - 'app/controllers/sessions_controller.rb' - 'app/models/community_membership.rb' - 'app/models/email.rb' - 'app/models/invitation.rb' - 'features/step_definitions/web_steps.rb' # Offense count: 60 # Cop supports --auto-correct. Style/NumericLiterals: MinDigits: 11 # Offense count: 3 Style/OneLineConditional: Exclude: - 'app/controllers/listing_images_controller.rb' - 'app/helpers/listings_helper.rb' # Offense count: 1 Style/OpMethod: Exclude: - 'lib/np_guid/uuidtools.rb' # Offense count: 3 # Cop supports --auto-correct. Style/ParallelAssignment: Exclude: - 'app/services/paypal_service/data_types/ipn.rb' - 'features/support/formatter.rb' - 'spec/support/test_log_target.rb' # Offense count: 82 # Cop supports --auto-correct. # Configuration parameters: AllowSafeAssignment. Style/ParenthesesAroundCondition: Enabled: false # Offense count: 137 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Enabled: false # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: lower_case_q, upper_case_q Style/PercentQLiterals: Exclude: - 'features/step_definitions/general_steps.rb' - 'features/support/rename.rb' # Offense count: 11 # Cop supports --auto-correct. Style/PerlBackrefs: Exclude: - 'features/support/email.rb' - 'features/support/paths.rb' # Offense count: 37 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? Style/PredicateName: Enabled: false # Offense count: 3 # Cop supports --auto-correct. Style/Proc: Exclude: - 'app/models/listing_image.rb' # Offense count: 90 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, exploded Style/RaiseArgs: Enabled: false # Offense count: 7 # Cop supports --auto-correct. Style/RedundantBegin: Exclude: - 'app/controllers/plans_controller.rb' - 'app/jobs/transaction_automatically_confirmed_job.rb' - 'app/jobs/transaction_canceled_job.rb' - 'app/models/community.rb' - 'app/services/braintree_sale_service.rb' - 'app/services/paypal_service/store/paypal_payment.rb' - 'lib/rack_middleware/robots_generator.rb' # Offense count: 25 # Cop supports --auto-correct. Style/RedundantParentheses: Exclude: - 'app/controllers/int_api/marketplaces_controller.rb' - 'app/controllers/paypal_accounts_controller.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/rest_helper.rb' - 'app/helpers/settings_helper.rb' - 'app/services/paypal_service/api/lookup.rb' - 'app/services/paypal_service/api/payments.rb' - 'app/services/paypal_service/api/process.rb' - 'app/services/paypal_service/merchant.rb' - 'app/services/paypal_service/merchant_injector.rb' - 'app/services/paypal_service/permissions.rb' - 'app/services/paypal_service/store/paypal_payment.rb' - 'app/utils/param_utils.rb' - 'app/view_utils/listing_view_utils.rb' # Offense count: 76 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Enabled: false # Offense count: 104 # Cop supports --auto-correct. Style/RedundantSelf: Enabled: false # Offense count: 26 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'app/controllers/application_controller.rb' - 'app/forms/form.rb' - 'app/helpers/application_helper.rb' - 'app/models/braintree_account.rb' - 'app/models/email.rb' - 'app/models/payment_gateways/checkout.rb' - 'features/step_definitions/email_steps.rb' - 'features/step_definitions/web_steps.rb' - 'lib/tasks/deploy.rake' - 'script/username_blacklist.rb' - 'spec/controllers/listings_controller_spec.rb' - 'spec/mailers/community_mailer_spec.rb' - 'spec/spec_helper.rb' # Offense count: 2 # Cop supports --auto-correct. Style/RescueModifier: Exclude: - 'lib/np_guid/usesnpguid.rb' - 'lib/tasks/heroku.rake' # Offense count: 3 # Cop supports --auto-correct. Style/SelfAssignment: Exclude: - 'app/services/paypal_service/api/request_wrapper.rb' - 'app/utils/money_util.rb' - 'lib/np_guid/uuidtools.rb' # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'app/controllers/people_controller.rb' - 'app/helpers/communities_helper.rb' - 'app/helpers/transaction_helper.rb' - 'app/models/listing.rb' - 'app/models/listing_image_js_adapter.rb' - 'features/step_definitions/admin_custom_field_steps.rb' - 'features/step_definitions/listing_steps.rb' - 'features/step_definitions/web_steps.rb' - 'lib/np_guid/uuidtools.rb' - 'spec/utils/marketplace_router_spec.rb' # Offense count: 2 # Configuration parameters: Methods. # Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]} Style/SingleLineBlockParams: Exclude: - 'app/utils/string_utils.rb' - 'spec/services/email_service/ses/synchronize_spec.rb' # Offense count: 71 # Cop supports --auto-correct. # Configuration parameters: AllowIfMethodIsEmpty. Style/SingleLineMethods: Exclude: - 'app/jobs/compile_custom_stylesheet_job.rb' - 'app/services/marketplace_service/api/data_types.rb' - 'app/services/paypal_service/api/data_types.rb' - 'app/services/paypal_service/data_types.rb' - 'app/services/paypal_service/data_types/ipn.rb' - 'app/services/paypal_service/data_types/merchant.rb' - 'app/services/paypal_service/data_types/permissions.rb' - 'app/services/transaction_service/data_types/transaction.rb' - 'app/services/transaction_service/data_types/transition_metadata.rb' - 'app/services/translation_service/data_types/translation.rb' - 'app/services/user_service/api/data_types.rb' - 'lib/selenium_webdriver_phantomjs_monkey_patch.rb' # Offense count: 68 # Cop supports --auto-correct. Style/SpaceAfterComma: Enabled: false # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceAroundBlockParameters: Exclude: - 'app/services/paypal_service/data_types/merchant.rb' - 'app/view_utils/testimonial_view_utils.rb' # Offense count: 78 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceAroundEqualsInParameterDefault: Enabled: false # Offense count: 35 # Cop supports --auto-correct. Style/SpaceAroundKeyword: Enabled: false # Offense count: 527 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Style/SpaceAroundOperators: Enabled: false # Offense count: 48 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceBeforeBlockBraces: Enabled: false # Offense count: 20 # Cop supports --auto-correct. Style/SpaceBeforeComma: Exclude: - 'app/controllers/accept_preauthorized_conversations_controller.rb' - 'app/helpers/application_helper.rb' - 'app/mailers/person_mailer.rb' - 'app/services/paypal_service/api/payments.rb' - 'spec/view_utils/i18n_helper_spec.rb' # Offense count: 172 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space Style/SpaceInsideBlockBraces: Enabled: false # Offense count: 70 # Cop supports --auto-correct. Style/SpaceInsideBrackets: Enabled: false # Offense count: 1448 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. # SupportedStyles: space, no_space Style/SpaceInsideHashLiteralBraces: Enabled: false # Offense count: 26 # Cop supports --auto-correct. Style/SpaceInsideParens: Exclude: - 'app/models/conversation.rb' - 'app/services/marketplace_service/conversation.rb' - 'app/services/paypal_service/data_types/merchant.rb' - 'app/services/stylesheet_compiler.rb' - 'features/step_definitions/conversation_steps.rb' - 'features/step_definitions/payment_steps.rb' - 'features/step_definitions/user_steps.rb' - 'features/support/omniauth.rb' - 'features/support/paths.rb' - 'spec/controllers/sessions_controller_spec.rb' - 'spec/services/admin_category_service_spec.rb' - 'spec/services/listing_service/api/listings_spec.rb' - 'spec/services/paypal_service/store/process_token_spec.rb' - 'spec/utils/entity_utils_spec.rb' - 'test/helper_modules.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: Enabled: false # Offense count: 7562 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 41 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: single_quotes, double_quotes Style/StringLiteralsInInterpolation: Enabled: false # Offense count: 37 Style/StructInheritance: Enabled: false # Offense count: 37 # Cop supports --auto-correct. # Configuration parameters: IgnoredMethods. # IgnoredMethods: respond_to Style/SymbolProc: Enabled: false # Offense count: 5 # Cop supports --auto-correct. Style/Tab: Exclude: - 'lib/np_guid/uuid22.rb' # Offense count: 25 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: final_newline, final_blank_line Style/TrailingBlankLines: Enabled: false # Offense count: 35 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. # SupportedStyles: comma, consistent_comma, no_comma Style/TrailingCommaInArguments: Exclude: - 'app/controllers/comments_controller.rb' - 'app/controllers/plans_controller.rb' - 'app/controllers/testimonials_controller.rb' - 'app/services/listing_index_service/data_types.rb' - 'app/services/marketplace_service/api/data_types.rb' - 'app/services/paypal_service/data_types/ipn.rb' - 'app/services/plan_service/data_types.rb' - 'app/services/user_service/api/data_types.rb' - 'spec/controllers/listings_controller_spec.rb' - 'spec/services/email_service_spec.rb' - 'spec/services/plan_service/api/plans_spec.rb' # Offense count: 126 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. # SupportedStyles: comma, consistent_comma, no_comma Style/TrailingCommaInLiteral: Enabled: false # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowNamedUnderscoreVariables. Style/TrailingUnderscoreVariable: Exclude: - 'app/controllers/braintree_accounts_controller.rb' - 'features/support/rename.rb' # Offense count: 89 # Cop supports --auto-correct. Style/TrailingWhitespace: Exclude: - 'app/jobs/compile_custom_stylesheet_job.rb' - 'app/models/follower_relationship.rb' - 'lib/devise/encryptors/asi.rb' - 'lib/np_guid/uuid22.rb' - 'lib/np_guid/uuidtools.rb' - 'lib/rack_middleware/custom_domain_cookie.rb' - 'lib/rack_middleware/robots_generator.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym Style/TrivialAccessors: Exclude: - 'spec/support/sync_delayed_job_observer.rb' # Offense count: 10 Style/UnlessElse: Exclude: - 'app/controllers/community_memberships_controller.rb' - 'app/controllers/people_controller.rb' - 'app/helpers/listings_helper.rb' - 'app/helpers/rest_helper.rb' - 'app/models/payment_gateways/checkout.rb' - 'app/services/email_service.rb' - 'app/services/paypal_service/api/payments.rb' - 'app/services/paypal_service/store/paypal_payment.rb' - 'spec/services/paypal_service/test_api.rb' # Offense count: 20 # Cop supports --auto-correct. Style/UnneededInterpolation: Exclude: - 'app/controllers/application_controller.rb' - 'app/helpers/listings_helper.rb' - 'app/mailers/person_mailer.rb' - 'app/services/community_stylesheet_compiler.rb' - 'app/services/paypal_service/api/payments.rb' - 'features/step_definitions/admin_category_steps.rb' - 'features/step_definitions/admin_custom_field_steps.rb' - 'features/step_definitions/admin_manage_members_steps.rb' - 'features/step_definitions/mercury_steps.rb' - 'features/step_definitions/payment_steps.rb' - 'features/step_definitions/settings_steps.rb' - 'features/step_definitions/web_steps.rb' - 'features/support/formatter.rb' - 'lib/rack_middleware/custom_domain_cookie.rb' - 'spec/controllers/listings_controller_spec.rb' # Offense count: 62 # Cop supports --auto-correct. Style/UnneededPercentQ: Exclude: - 'features/step_definitions/admin_category_steps.rb' - 'features/step_definitions/admin_custom_field_steps.rb' - 'features/step_definitions/admin_look_and_feel_steps.rb' - 'features/step_definitions/admin_manage_members_steps.rb' - 'features/step_definitions/checkout_steps.rb' - 'features/step_definitions/conversation_steps.rb' - 'features/step_definitions/email_steps.rb' - 'features/step_definitions/general_steps.rb' - 'features/step_definitions/header_steps.rb' - 'features/step_definitions/listing_steps.rb' - 'features/step_definitions/payment_steps.rb' - 'features/step_definitions/settings_steps.rb' - 'features/step_definitions/time_steps.rb' - 'features/support/login_helpers.rb' - 'features/support/rename.rb' # Offense count: 2 # Cop supports --auto-correct. Style/WhileUntilDo: Exclude: - 'app/helpers/event_id_helper.rb' - 'app/models/category.rb' # Offense count: 13 Style/ZeroLengthPredicate: Exclude: - 'app/controllers/community_memberships_controller.rb' - 'app/helpers/homepage_helper.rb' - 'app/models/custom_field_values/numeric_field_value.rb' - 'app/models/person.rb' - 'app/services/paypal_service/merchant.rb' - 'app/services/paypal_service/permissions.rb' - 'features/step_definitions/web_steps.rb' - 'lib/np_guid/uuidtools.rb'