diff options
author | Kristen Kozak <sebright@google.com> | 2018-04-18 14:33:35 -0700 |
---|---|---|
committer | Kristen Kozak <sebright@google.com> | 2018-04-18 15:12:18 -0700 |
commit | cffa220c13ee5a932ecb933c28872527419d75b0 (patch) | |
tree | de9967babe45543025d6b03543893587d6d22466 /buildscripts/import-control.xml | |
parent | 91820a0996be82adf22e001d8b193e76e082b692 (diff) | |
download | opencensus-java-cffa220c13ee5a932ecb933c28872527419d75b0.tar.gz |
Add some general guidelines on package imports to import-control.xml.
Diffstat (limited to 'buildscripts/import-control.xml')
-rw-r--r-- | buildscripts/import-control.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/buildscripts/import-control.xml b/buildscripts/import-control.xml index 49e253b2..75ae826a 100644 --- a/buildscripts/import-control.xml +++ b/buildscripts/import-control.xml @@ -3,6 +3,23 @@ "-//Puppy Crawl//DTD Import Control 1.3//EN" "http://checkstyle.sourceforge.net/dtds/import_control_1_3.dtd"> +<!-- + +General guidelines on imports: + +- 'stats' depends on 'tags', but 'tags' shouldn't depend on 'stats' or 'trace'. + 'stats'/'tags' and 'trace' should remain independent, where possible. + +- Packages should not be split between artifacts. + +- 'internal' packages should only be imported by packages within the same + artifact. + +- Since we are trying to remove dependencies on Guava (issue #1113), we should + avoid adding any new Guava imports here, especially in the API. + +--> + <import-control pkg="io.opencensus"> <allow pkg="com.google.auto.value"/> <allow pkg="com.google.errorprone.annotations"/> |