revelc / apilyzer-maven-plugin

Analyze types used by declared public API
https://code.revelc.net/apilyzer-maven-plugin
Apache License 2.0
6 stars 2 forks source link

Should probably fail if an include regex does not match #10

Open keith-turner opened 9 years ago

keith-turner commented 9 years ago

If a an include regex does not match any types, it indicates a problem and the APILyzer should probably fail in this case. I ran into a case where I specified multiple include regexs and one of them matched nothing when I expected it to match something.

ctubbsii commented 9 years ago

We could probably print out a warning if an include rule is completely unused. Maybe later, add an option to fail instead. This won't catch everything... there may be redundant rules which are both used, but because of short-circuiting, we didn't notice that one was unneeded.

keith-turner commented 9 years ago

The situation I ran into that prompted me open this issue was :