google / google/error-prone

Can we check for some unwanted imports?

Open
#479 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

We have an app on Google App Engine platform and GAE libraries come with shadowed guava dependencies e.g. com.google.appengine.repackaged.com.google.common.base.Strings. Some goes for other libraries like CatchException (with their shadowed Mockito). It can happen that developers accidentally use a wrong import and I was thinking about preventing it with static check. I would like to write a custom error-prone checker but didn't find a way to make checker configurable so that everybody could use it to blacklist imports specific to his/her project. Does error-prone support passing arguments to specific checkers?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.