Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Roman Ivanov (romanivanov)
Assigned to: Nobody/Anonymous (nobody)
Summary: new check: ForbidsCertainImports
Forbids usage Certain Imports usage in class.
idea was taken from similar check in Sonar project.
- Package name. (type=regexp)
- Forbidden package name in imports. (type=regexp)
Example of usage:
Forbid to use "*.log4j.*" classes/packages in imports in all ("*") packages
Forbid to use "*.ui.*" packages in "*.dao.*" packages
By means of few instances of this check will be possible to check any number of rules.