Use include directive to specify cop directories
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
@.luke made the following suggestion in this MR:
In
.rubocop.ymlyou can define which directories to apply the cop, using theIncludedirective. Although we don't use this as much as we should, we could set it to only inspect the relevantgraphqldirectories. I think this would speed up our cop inspections just a little bit when people are working outside ofgraphql.
We should refactor some of the existing cops to do directory filtering via config, not programmatically.
Edited by 🤖 GitLab Bot 🤖