Use include directive to specify cop directories

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

@.luke made the following suggestion in this MR:

In .rubocop.yml you can define which directories to apply the cop, using the Include directive. Although we don't use this as much as we should, we could set it to only inspect the relevant graphql directories. I think this would speed up our cop inspections just a little bit when people are working outside of graphql.

We should refactor some of the existing cops to do directory filtering via config, not programmatically.

Edited Jun 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading