google/closure-compiler

Option to fail on warnings

Open

#3,451 建立於 2019年8月13日

在 GitHub 查看
 (4 留言) (2 反應) (0 負責人)Java (1,197 fork)batch import
help wantedinternal-issue-created

倉庫指標

Star
 (7,176 star)
PR 合併指標
 (平均合併 3天 4小時) (30 天內合併 1 個 PR)

描述

I would like to propose an option that could make the compiler fail if at least one warning is encountered, regardless of errors and exit with a non-zero exit code.

This could be a simple flags such as --fail-on-warnings or a more sophisticated setting like --error-level that could introduce more granular control, i.e. still exit with 0 if compilation failed with errors.

Use case for this is either a purist approach when no warnings are tolerated or code quality control CI job that verifies new code with --checks-only.

貢獻者指南