קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הכלי Closure Linter הוצא משימוש
התחביר של JavaScript ממשיך להתפתח, עם ES2015
ומעלה, ונעשה קשה יותר ויותר לעדכן את Closure
Linter. הוא לא מאויש, לא מתוחזק והוצא משימוש.
רוב הפרויקטים ב-Google עברו ל-linter החדש.
לצוותים שמשתמשים בכלים של Closure, מומלץ להשתמש במקום זאת ב-linter החדש שמבוסס על Closure Compiler. כדי לעשות את זה, מעבירים את --jscomp_warning=lintChecks
לקומפיילר או יוצרים את הקובץ הבינארי של ה-linter העצמאי. פרטים נוספים זמינים ב
דף ה-wiki של Closure Compiler
. שאר המידע בדף הזה יישאר זמין למשך זמן מה, לצוותים שעדיין משתמשים ב-Closure Linter.
מה זה Closure Linter?
Closure Linter הוא כלי שבודק קובצי JavaScript כדי לזהות בעיות בסגנון, כמו מיקום אופרטורים, נקודה פסיק חסרה, רווחים, נוכחות של הערות JsDoc ועוד.
מה אפשר לעשות עם Closure Linter?
הכלי Closure Linter מוודא שכל קוד ה-JavaScript בפרויקט פועל לפי ההנחיות שמפורטות במדריך הסגנון של Google JavaScript. הוא יכול גם לתקן אוטומטית הרבה שגיאות נפוצות, וכך לחסוך לכם זמן ולאפשר לכם להתמקד בכתיבת הקוד.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]