google / google/closure-compiler

How does --warnings_allowlist_file works? I tried many ways but no luck

Open
#4,163 6 comments 0 reactions 0 assignees View on GitHub
triage-done
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Hello,
I'm trying to use --warnings_allowlist_file to dismiss this warning type:

`
warning JSC_UNRECOGNIZED_TYPE_ERROR: Bad type annotation. Unknown type XYZ
`

I know it is reading my file because if it doesn't find the file the compiler just crash with:

`
java.lang.RuntimeException: java.io.FileNotFoundException: pallowlist.txt (The system cannot find the file specified)
`

Is the path absolute, relative?, what is the format of the line? I feel my warning is not correct or not accepted, but no error is shown

![image](https://github.com/google/closure-compiler/assets/1304429/fc85b400-a530-4b39-ab73-eb84de6cb235)

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.