Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Closure Linter è stato ritirato
Man mano che la sintassi di JavaScript ha continuato a evolversi, con ES2015
e versioni successive, è diventato sempre più difficile mantenere Closure
Linter aggiornato. Non è gestito, non è sottoposto a manutenzione ed è deprecato.
La maggior parte dei progetti di Google è stata migrata al nuovo linter.
Per i team che utilizzano gli strumenti di chiusura, consigliamo di utilizzare il nuovo
linter basato su Closure Compiler. Puoi farlo
passando --jscomp_warning=lintChecks
al compilatore
o creando il binario linter autonomo. Per maggiori dettagli, consulta
il
wiki di Closure Compiler
. Il resto delle informazioni in questa pagina verrà
mantenuto per un po' di tempo, per i team che utilizzano ancora Closure Linter.
Che cos'è Closure Linter?
Closure Linter è un'utilità che controlla i file JavaScript per
problemi di stile come il posizionamento degli operatori, i punti e virgola mancanti,
la spaziatura, la presenza di annotazioni JsDoc e altro ancora.
Cosa può fare Closure Linter per me?
Closure Linter garantisce che tutto il codice JavaScript del progetto
segua le linee guida della
Guida allo stile di
JavaScript di Google. Può anche correggere automaticamente molti
errori comuni, il che ti fa risparmiare tempo e ti consente di concentrarti sulla codifica.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eClosure Linter is deprecated and no longer actively maintained due to difficulties in keeping up with evolving JavaScript syntax.\u003c/p\u003e\n"],["\u003cp\u003eGoogle recommends using the new linter integrated with Closure Compiler by passing \u003ccode\u003e--jscomp_warning=lintChecks\u003c/code\u003e to the compiler or building the standalone linter binary.\u003c/p\u003e\n"],["\u003cp\u003eClosure Linter, while deprecated, is a tool used for checking JavaScript files for style issues, ensuring code follows Google JavaScript Style Guide, and automatically fixing common errors.\u003c/p\u003e\n"]]],[],null,["Closure Linter is deprecated\n----------------------------\n\n\nAs the syntax of JavaScript has continued to evolve, with ES2015\nand beyond, it has become increasingly difficult to keep Closure\nLinter up to date. It is unstaffed, unmaintained, and deprecated.\nMost projects at Google have migrated to the new linter.\n\n\nFor teams using the Closure tools, we recommend they use the new\nlinter based on the Closure Compiler instead. You can do this by\npassing `--jscomp_warning=lintChecks` to the compiler,\nor building the standalone linter binary; see the\n[Closure Compiler wiki](https://github.com/google/closure-compiler/wiki/Lint-checks) for details. The rest of the information on this page will be\nkept up for a while, for teams who are still using Closure Linter.\n\nWhat is the Closure Linter?\n---------------------------\n\n\nThe Closure Linter is a utility that checks JavaScript files for\nstyle issues such as operator placement, missing semicolons,\nspacing, the presence of JsDoc annotations, and more.\n\nWhat can the Closure Linter do for me?\n--------------------------------------\n\n\nThe Closure Linter ensures that all of your project's JavaScript\ncode follows the guidelines in\nthe [Google\nJavaScript Style Guide](https://google.github.io/styleguide/javascriptguide.xml). It can also automatically fix many\ncommon errors, which saves you time and lets you focus on coding. \n\nHow do I start?\n---------------\n\n\n- [Download Closure Linter](https://github.com/google/closure-linter/zipball/master).\n- Read [How to Use Closure Linter](/closure/utilities/docs/linter_howto).\n- Browse [the source code](https://github.com/google/closure-linter/).\n- Questions? Ask the [discussion forum](http://groups.google.com/group/closure-linter-discuss).\n\n\u003cbr /\u003e"]]