Il manuale dice che posso usare:Attenzione whitelist non funziona in Google compilatore chiusura
--warnings_whitelist_file VAL : A file containing warnings to
suppress. Each line should be of the
form
<file-name>:<line-number>? <warning-d
escription>
Questo è ciò che la mia lista bianca appare come:
ef-utils.js:1 Redeclared variable: ef
ef-utils.js:1 Variable ef first declared in externs-ko.js
ef-validation.js:1 Redeclared variable: ef
ef-validation.js:1 Variable ef first declared in externs-ko.js
E sto ancora ricevendo gli avvisi durante la compilazione :
ef-utils.js:1: WARNING - Redeclared variable: ef
?var ef = (function (ns, ko) {
^
ef-utils.js:1: WARNING - Variable ef first declared in externs-ko.js
?var ef = (function (ns, ko) {
^
ef-validation.js:1: WARNING - Redeclared variable: ef
?var ef = (function (ns, ko) {
^
ef-validation.js:1: WARNING - Variable ef first declared in externs-ko.js
?var ef = (function (ns, ko) {
^
pagina Questa web non funziona più. Inoltre, non riesco a trovare questo strumento più sul web. – efficks
ClosureCompiler è ora su GitHub. La classe WhitelistBuilder è [qui] (https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/WhitelistWarningsGuard.java#L212), ma non sembra essere il modo preferito per gestire gli avvisi più. Aggiornerò la mia risposta quando determinerò il processo raccomandato. – Tibos