332 lines
14 KiB
YAML
332 lines
14 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config --exclude-limit 10000`
|
|
# on 2026-01-25 12:20:43 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/wuzapi_service.rb'
|
|
- 'debug_media.rb'
|
|
|
|
# Offense count: 32
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Exclude:
|
|
- 'app/jobs/conversations/cluster_job.rb'
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/captain/reservations/sync_service.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'enterprise/app/jobs/captain/conversation/debounce_response_job.rb'
|
|
- 'enterprise/app/services/captain/llm/system_prompts_service.rb'
|
|
- 'enterprise/app/services/captain/tools/check_availability_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/status_suites_tool.rb'
|
|
- 'enterprise/app/services/enterprise/message_templates/hook_execution_service.rb'
|
|
- 'enterprise/lib/captain/tools/scenario_delegator_tool.rb'
|
|
- 'lib/wuzapi/client.rb'
|
|
- 'scripts/debug_faq_search.rb'
|
|
- 'spec/factories/contacts.rb'
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
Lint/DuplicateBranch:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/DuplicateMethods:
|
|
Exclude:
|
|
- 'app/services/jasmine/semantic_search_service.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: MaximumRangeSize.
|
|
Lint/MissingCopEnableDirective:
|
|
Exclude:
|
|
- 'db/migrate/20260114100000_create_captain_inbox_automations.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/NonLocalExitFromIterator:
|
|
Exclude:
|
|
- 'app/services/whatsapp/incoming_message_service_helpers.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/ShadowedException:
|
|
Exclude:
|
|
- 'enterprise/app/services/captain/llm/paginated_faq_generator_service.rb'
|
|
|
|
# Offense count: 1
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
# NotImplementedExceptions: NotImplementedError
|
|
Lint/UnusedMethodArgument:
|
|
Exclude:
|
|
- 'enterprise/app/services/llm/base_ai_service.rb'
|
|
|
|
# Offense count: 63
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
Metrics/AbcSize:
|
|
Exclude:
|
|
- 'app/jobs/conversations/auto_label_job.rb'
|
|
- 'app/jobs/conversations/resolution_job.rb'
|
|
- 'app/jobs/webhooks/whatsapp_events_job.rb'
|
|
- 'app/listeners/jasmine_listener.rb'
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/models/message.rb'
|
|
- 'app/services/captain/reservations/sync_service.rb'
|
|
- 'app/services/crm_insights/update_service.rb'
|
|
- 'app/services/jasmine/brain_service.rb'
|
|
- 'app/services/jasmine/semantic_search_service.rb'
|
|
- 'app/services/jasmine/tool_runner.rb'
|
|
- 'app/services/whatsapp/decryption_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'config/initializers/fix_null_message_crash.rb'
|
|
- 'db/migrate/20251227054034_create_jasmine_tables.rb'
|
|
- 'db/migrate/20260110193000_fix_status_suites_headers.rb'
|
|
- 'debug_token.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/assistants_controller.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/reservations_controller.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/tools_controller.rb'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/reservations_controller.rb'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/webhooks_controller.rb'
|
|
- 'enterprise/app/jobs/captain/conversation/response_builder_job.rb'
|
|
- 'enterprise/app/models/captain/assistant.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
- 'enterprise/app/services/captain/inter/auth_service.rb'
|
|
- 'enterprise/app/services/captain/inter/cob_service.rb'
|
|
- 'enterprise/app/services/captain/llm/assistant_chat_service.rb'
|
|
- 'enterprise/app/services/captain/llm/jasmine_brain.rb'
|
|
- 'enterprise/app/services/captain/reminders/create_service.rb'
|
|
- 'enterprise/app/services/captain/reservations/create_service.rb'
|
|
- 'enterprise/app/services/captain/tools/check_availability_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/react_to_message_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/status_suites_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/suite_watchdog_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/update_contact_tool.rb'
|
|
- 'enterprise/lib/captain/tools/faq_lookup_tool.rb'
|
|
- 'enterprise/lib/captain/tools/http_tool.rb'
|
|
- 'enterprise/lib/captain/tools/scenario_delegator_tool.rb'
|
|
- 'lib/wuzapi/client.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
# AllowedMethods: refine
|
|
Metrics/BlockLength:
|
|
Exclude:
|
|
- 'db/migrate/20260110193000_fix_status_suites_headers.rb'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/reservations_controller.rb'
|
|
- 'enterprise/app/models/concerns/captain_tools_helpers.rb'
|
|
- 'script/test_auto_resolve_inbox.rb'
|
|
- 'seed_captain_tools.rb'
|
|
- 'seed_jasmine_hotel_v2.rb'
|
|
|
|
# Offense count: 11
|
|
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
Metrics/ClassLength:
|
|
Exclude:
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/crm_insights/update_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'enterprise/app/jobs/captain/conversation/response_builder_job.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
- 'enterprise/app/services/captain/llm/assistant_chat_service.rb'
|
|
- 'enterprise/app/services/captain/llm/jasmine_brain.rb'
|
|
- 'enterprise/app/services/captain/tools/check_availability_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/tool_runner.rb'
|
|
- 'enterprise/lib/captain/tools/scenario_delegator_tool.rb'
|
|
|
|
# Offense count: 67
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 39
|
|
|
|
# Offense count: 78
|
|
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
Metrics/MethodLength:
|
|
Exclude:
|
|
- 'app/jobs/conversations/auto_label_job.rb'
|
|
- 'app/jobs/conversations/cluster_job.rb'
|
|
- 'app/jobs/jasmine/response_job.rb'
|
|
- 'app/listeners/jasmine_listener.rb'
|
|
- 'app/models/channel/whatsapp.rb'
|
|
- 'app/services/captain/inter_service.rb'
|
|
- 'app/services/captain/reservations/sync_service.rb'
|
|
- 'app/services/crm_insights/update_service.rb'
|
|
- 'app/services/jasmine/brain_service.rb'
|
|
- 'app/services/jasmine/embedding_service.rb'
|
|
- 'app/services/jasmine/semantic_search_service.rb'
|
|
- 'app/services/jasmine/tool_runner.rb'
|
|
- 'app/services/jasmine/vision_service.rb'
|
|
- 'app/services/whatsapp/decryption_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_service_helpers.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'app/services/whatsapp/providers/wuzapi_service.rb'
|
|
- 'db/migrate/20251227054034_create_jasmine_tables.rb'
|
|
- 'db/migrate/20260104150000_add_crm_insights_history_fields.rb'
|
|
- 'db/migrate/20260110193000_fix_status_suites_headers.rb'
|
|
- 'db/migrate/20260114090200_create_captain_reminders.rb'
|
|
- 'debug_token.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/assistants_controller.rb'
|
|
- 'enterprise/app/controllers/api/v1/accounts/captain/scenarios_controller.rb'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/reservations_controller.rb'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/webhooks_controller.rb'
|
|
- 'enterprise/app/jobs/captain/conversation/response_builder_job.rb'
|
|
- 'enterprise/app/jobs/captain/intent_classification_job.rb'
|
|
- 'enterprise/app/services/captain/assistant/agent_runner_service.rb'
|
|
- 'enterprise/app/services/captain/llm/assistant_chat_service.rb'
|
|
- 'enterprise/app/services/captain/llm/jasmine_brain.rb'
|
|
- 'enterprise/app/services/captain/llm/system_prompts_service.rb'
|
|
- 'enterprise/app/services/captain/reminders/create_service.rb'
|
|
- 'enterprise/app/services/captain/reservations/create_service.rb'
|
|
- 'enterprise/app/services/captain/tools/check_availability_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/react_to_message_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/reminder_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/suite_watchdog_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/update_contact_tool.rb'
|
|
- 'enterprise/app/services/captain/webhook_sender_service.rb'
|
|
- 'enterprise/app/services/captain/whatsapp_notification_service.rb'
|
|
- 'enterprise/lib/captain/tools/faq_lookup_tool.rb'
|
|
- 'enterprise/lib/captain/tools/scenario_delegator_tool.rb'
|
|
- 'lib/wuzapi/client.rb'
|
|
- 'scripts/force_create_captain_tables.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: CountComments, CountAsOne.
|
|
Metrics/ModuleLength:
|
|
Max: 132
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
Metrics/ParameterLists:
|
|
Max: 7
|
|
|
|
# Offense count: 46
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/PerceivedComplexity:
|
|
Max: 40
|
|
|
|
# Offense count: 2
|
|
Naming/AccessorMethodName:
|
|
Exclude:
|
|
- 'app/services/captain/inter_service.rb'
|
|
- 'app/services/jasmine/vision_service.rb'
|
|
|
|
# Offense count: 7
|
|
# 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'
|
|
- 'enterprise/app/controllers/public/api/v1/captain/reservations_controller.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: MinSize.
|
|
Performance/CollectionLiteralInLoop:
|
|
Exclude:
|
|
- 'db/migrate/20260110193000_fix_status_suites_headers.rb'
|
|
|
|
# Offense count: 1
|
|
Rails/AfterCommitOverride:
|
|
Exclude:
|
|
- 'app/models/channel/whatsapp.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: Include.
|
|
# Include: **/app/models/**/*.rb
|
|
Rails/HasManyOrHasOneDependent:
|
|
Exclude:
|
|
- 'enterprise/app/models/captain/brand.rb'
|
|
- 'enterprise/app/models/captain/unit.rb'
|
|
|
|
# Offense count: 17
|
|
# Configuration parameters: IgnoreScopes, Include.
|
|
# Include: **/app/models/**/*.rb
|
|
Rails/InverseOf:
|
|
Exclude:
|
|
- 'app/models/captain/unit.rb'
|
|
- 'app/models/captain_assistant.rb'
|
|
- 'enterprise/app/models/captain/brand.rb'
|
|
- 'enterprise/app/models/captain/pricing.rb'
|
|
- 'enterprise/app/models/captain/pricing_inbox.rb'
|
|
- 'enterprise/app/models/captain/reservation.rb'
|
|
- 'enterprise/app/models/captain/unit.rb'
|
|
- 'enterprise/app/models/captain_inbox.rb'
|
|
|
|
# Offense count: 9
|
|
# 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/services/jasmine/tool_runner.rb'
|
|
- 'enterprise/app/jobs/captain/documents/response_builder_job.rb'
|
|
- 'enterprise/app/services/captain/tools/create_reservation_intent_tool.rb'
|
|
- 'enterprise/app/services/captain/tools/generate_pix_tool.rb'
|
|
- 'promote_super_admin.rb'
|
|
- 'script/test_auto_resolve_inbox.rb'
|
|
|
|
# Offense count: 8
|
|
# Configuration parameters: Include.
|
|
# Include: db/**/*.rb
|
|
Rails/ThreeStateBooleanColumn:
|
|
Exclude:
|
|
- 'db/migrate/20240523120000_create_captain_configurations.rb'
|
|
- 'db/migrate/20251227054034_create_jasmine_tables.rb'
|
|
- 'db/migrate/20251227201733_create_captain_tool_configs.rb'
|
|
- 'db/migrate/20260114101004_create_captain_extras.rb'
|
|
- 'db/migrate/20260120141736_add_message_signature_enabled_to_inboxes.rb'
|
|
- 'db/migrate/20260121165034_add_plug_play_to_captain_units.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: TransactionMethods.
|
|
Rails/TransactionExitStatement:
|
|
Exclude:
|
|
- 'app/services/jasmine/embedding_service.rb'
|
|
- 'app/services/whatsapp/incoming_message_wuzapi_service.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include.
|
|
# Include: **/app/models/**/*.rb
|
|
Rails/UniqueValidationWithoutIndex:
|
|
Exclude:
|
|
- 'app/models/jasmine/inbox_collection.rb'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: MinBranchesCount.
|
|
Style/HashLikeCase:
|
|
Exclude:
|
|
- 'app/services/whatsapp/providers/wuzapi/payload_parser.rb'
|
|
- 'enterprise/app/jobs/captain/conversation/response_builder_job.rb'
|
|
|
|
# Offense count: 4
|
|
Style/OneClassPerFile:
|
|
Exclude:
|
|
- 'app/services/jasmine/brain_service.rb'
|
|
|
|
# Offense count: 8
|
|
UseFromEmail:
|
|
Exclude:
|
|
- 'app/services/captain/reservations/sync_service.rb'
|
|
- 'clear_chat_history.rb'
|
|
- 'debug_auth.rb'
|
|
- 'debug_token.rb'
|
|
- 'force_reset.rb'
|
|
- 'promote_super_admin.rb'
|
|
- 'setup_docker_env.rb'
|