Improve SaaS testing and linting of ee vs ce code

Plan

Click to expand

The following discussion from !100466 (merged) should be addressed:

  • @dstull started a discussion: (+5 comments)

    issue:

    If this is not a prepended(extended) class from foss, then it should live under ee/app/models/preloaders/user_member_roles_in_projects_preloader.rb instead(models/preloaders instead of models/ee/preloaders) and not need this module EE line see ee/app/models/preloaders/environments/protected_environment_preloader.rb for an example.

    side thought - we need to build better mouse trap in some way for this...some kindof linter as it should be programmatically possible to lint this.

Edited by Doug Stull