Skip to content

Exclude Types::PermissionTypes from BoundedContexts cop

What does this MR do and why?

Context: https://gitlab.slack.com/archives/C03NTK6HZBM/p1720430958763409

Exclude Types::PermissionTypes from BoundedContexts cop

Like for Types and Resolvers we ignore the namespace Types::PermissionTypes for now, considering anything under that as required to be organized per bounded context.

This change came from some violations appearing for GraphQL files under ./types/permission_types/* where PermissionTypes was considered a top-level namespace. Since it is not in the list of expected bounded contexts the cop was marking it as a violation.

The correct structure would be Types::PermissionTypes::SomeDomain where SomeDomain is one of the expected bounded contexts.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports

Loading