java - checking for illegal imports of remote.entities outside remote package -


when application needs query remote system, create “remote” package, “entity” sub-package containing classes easier process info retrieve. these classes shouldn’t leak out of remote package.

is there rule available (or under study) check importing x.y.remote.entities outside of x.y.remote package?

from question tags, see checkstyle based solution helpful you. importcontrol check should need. checkstyle features sonarqube plugin should require that.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -