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

Already on GitHub? Sign in to your account

Prevent using packages/classes from classes #135

Closed
ilumar opened this Issue Sep 18, 2013 · 2 comments

Comments

Projects
None yet
5 participants

ilumar commented Sep 18, 2013

Create check that will be prevent using packages/classes from classes that matches to pattern.

We already have forbidding packages in packages, see below:
See check that control base on packages: http://checkstyle.sourceforge.net/config_imports.html#ImportControl
See other check that do package to package rules: https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/ForbidCertainImportsCheck.java

Example: we want to forbid usage of dao package ("..dao.") in presentation models files (that match pattern like ".*Pm.java")

@ghost ghost assigned VadimPanasiuk Nov 11, 2013

@daniilyar daniilyar added easy and removed enhancement labels Aug 15, 2014

Contributor

rnveach commented Nov 22, 2016

@romani This looks the same as issue in main project, or am i mistaken?

Owner

romani commented Nov 25, 2016

right, problem is the same.
sevntu issue is not required.

@romani romani closed this Nov 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment