Skip to content

Commit

Permalink
Turn down warnings inside .i.js files to be silent by default
Browse files Browse the repository at this point in the history
In practice, making them warnings causes way too much logspam

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=198592324
  • Loading branch information
blickly authored and lauraharker committed May 31, 2018
1 parent 69b75d9 commit aa0e726
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.google.javascript.rhino.Node;

/**
* A warnings guard that sets the errors found in type summary files to be warnings, leaving only
* the errors found in the original source.
* A warnings guard that demotes the errors found in type summary files to be less severe,
* leaving only the errors found in the original source.
*/
public class CheckTypeSummaryWarningsGuard extends FileAwareWarningsGuard {

Expand All @@ -35,7 +35,7 @@ public CheckTypeSummaryWarningsGuard(AbstractCompiler compiler) {
@Override
public CheckLevel level(JSError error) {
if (inTypeSummary(error)) {
return CheckLevel.WARNING;
return CheckLevel.OFF;
}
return null;
}
Expand Down

0 comments on commit aa0e726

Please sign in to comment.