Upstream CodeReuse/ActiveRecord Cop from GitLab
- Adds the CodeReuse/ActiveRecord Cop from GitLab with a shift to using
Exclude
construct to determine if the cop should analyze a directory instead of in the code itself as it becomes hard to detect paths when moving this to a gem and is generally a more common RuboCop construct.
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/259014
Edited by Doug Stull