Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when having rules on a package that only contains packages #52

Open
pkernevez opened this issue Jun 15, 2022 · 0 comments
Open

Comments

@pkernevez
Copy link

I have a package named 'connectors' that contains several packages but not direct classes.
I want to have a rule like:

      DependencyRule common, connector;
  
      @Override
      public void defineRules() {
          common.mustNotUse(connector.allSubOf());
          connector.andAllSub().mayUse(common);
      }

But this test failed:

java.lang.AssertionError: 
Expected: Comply with rules
     but: 
NOT_EXISTING com.xxx.connector              There is a rule for this element, but it has not been found in the code.

But the package exists.
If I add a class directly in the package, the error disappears.

Do I miss something ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant