159 lines
6.3 KiB
YAML
159 lines
6.3 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2026-02-25 17:56:28 UTC using RuboCop version 1.75.6.
|
|
# 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: 2
|
|
Chatwoot/AttachmentDownload:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/evolution_service.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
|
|
# Offense count: 8
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Exclude:
|
|
- 'app/controllers/public/api/v1/captain/inter_webhooks_controller.rb'
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'app/services/wuzapi/client.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
Lint/DuplicateBranch:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
|
|
# Offense count: 1
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
# NotImplementedExceptions: NotImplementedError
|
|
Lint/UnusedMethodArgument:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/evolution_service.rb'
|
|
|
|
# Offense count: 29
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
Metrics/AbcSize:
|
|
Exclude:
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/evolution_api/client.rb'
|
|
- 'app/services/whatsapp/decryption_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'app/services/whatsapp/providers/evolution_api/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'app/services/wuzapi/client.rb'
|
|
- 'enterprise/app/services/captain/inter/auth_service.rb'
|
|
- 'enterprise/app/services/captain/inter/cob_service.rb'
|
|
- 'enterprise/app/services/captain/inter/webhook_setup_service.rb'
|
|
- 'enterprise/app/services/captain/reservations/marker_builder.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
Metrics/ClassLength:
|
|
Exclude:
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/wuzapi/client.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
|
|
# Offense count: 41
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 23
|
|
|
|
# Offense count: 29
|
|
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
Metrics/MethodLength:
|
|
Exclude:
|
|
- 'app/controllers/public/api/v1/captain/inter_webhooks_controller.rb'
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/evolution_api/client.rb'
|
|
- 'app/services/whatsapp/decryption_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'app/services/whatsapp/providers/evolution_api/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'app/services/wuzapi/client.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
- 'enterprise/app/services/captain/inter/webhook_setup_service.rb'
|
|
- 'enterprise/app/services/captain/reservations/marker_builder.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
Metrics/ParameterLists:
|
|
Max: 6
|
|
|
|
# Offense count: 29
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/PerceivedComplexity:
|
|
Max: 25
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
Naming/MethodParameterName:
|
|
Exclude:
|
|
- 'app/services/whatsapp/decryption_service.rb'
|
|
|
|
# Offense count: 13
|
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
RSpec/VerifiedDoubles:
|
|
Exclude:
|
|
- 'spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb'
|
|
|
|
# Offense count: 1
|
|
Rails/AfterCommitOverride:
|
|
Exclude:
|
|
- 'app/models/channel/whatsapp.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include.
|
|
# Include: **/app/models/**/*.rb
|
|
Rails/HasManyOrHasOneDependent:
|
|
Exclude:
|
|
- 'enterprise/app/models/captain/brand.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: IgnoreScopes, Include.
|
|
# Include: **/app/models/**/*.rb
|
|
Rails/InverseOf:
|
|
Exclude:
|
|
- 'enterprise/app/models/captain/brand.rb'
|
|
- 'enterprise/app/models/captain/reservation.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: ForbiddenMethods, AllowedMethods.
|
|
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
|
|
Rails/SkipsModelValidations:
|
|
Exclude:
|
|
- 'app/controllers/api/v1/accounts/inboxes_controller.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/inboxes_controller.rb'
|
|
- 'enterprise/app/services/captain/payments/confirmation_service.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: TransactionMethods.
|
|
Rails/TransactionExitStatement:
|
|
Exclude:
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: MinBranchesCount.
|
|
Style/HashLikeCase:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/evolution_api/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|