Add RuboCop rule to enforce class-level allow_access_with_scope
Implement RuboCop rule to prevent misuse of allow_access_with_scope method. This ensures the method is only used at the class level, not nested in namespaces. Because, if this method is called multiple times on the same class, the scopes are all aggregated Changelog: other
显示
- .rubocop.yml 6 个添加, 0 个删除.rubocop.yml
- .rubocop_todo/api/class_level_allow_access_with_scope.yml 3 个添加, 0 个删除.rubocop_todo/api/class_level_allow_access_with_scope.yml
- rubocop/cop/api/class_level_allow_access_with_scope.rb 54 个添加, 0 个删除rubocop/cop/api/class_level_allow_access_with_scope.rb
- spec/rubocop/cop/api/class_level_allow_access_with_scope_spec.rb 120 个添加, 0 个删除...bocop/cop/api/class_level_allow_access_with_scope_spec.rb
加载中
想要评论请 注册 或 登录