Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docs for -XepExcludedPaths #818

Merged
merged 1 commit into from
Nov 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ There are also a few blanket severity-changing flags:
* `-XepDisableAllChecks`
* `-XepDisableWarningsInGeneratedCode`

Additionally, you can completely exclude certain paths
from any Error Prone checking via the `-XepExcludedPaths` flag. The
flag takes as an argument a regular expression that is matched against
a source file's path to determine whether it should be excluded.
So, to exclude files in any sub-directory of a path containing `build/generated`,
use the option:

```bash
-XepExcludedPaths:.*/build/generated/.*
```

If you pass a flag that refers to an unknown check name, by default Error Prone
will throw an error. You can allow the use of unknown check names by passing the
`-XepIgnoreUnknownCheckNames` flag.
Expand Down