با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
لینتر بسته شدن منسوخ شده است
همانطور که سینتکس جاوا اسکریپت به تکامل خود ادامه داده است، با ES2015 و بعد از آن، به روز نگه داشتن Closure Linter دشوارتر شده است. بدون پرسنل، نگهداری نشده و منسوخ شده است. اکثر پروژههای گوگل به سیستم جدید مهاجرت کردهاند.
برای تیمهایی که از ابزارهای Closure استفاده میکنند، توصیه میکنیم به جای آن از لینتر جدید بر اساس کامپایلر بستن استفاده کنند. شما می توانید این کار را با ارسال --jscomp_warning=lintChecks
به کامپایلر، یا ساختن باینری linter مستقل انجام دهید. برای جزئیات به ویکی Closure Compiler مراجعه کنید. بقیه اطلاعات موجود در این صفحه برای تیم هایی که هنوز از Close Linter استفاده می کنند برای مدتی حفظ خواهد شد.
لینتر بستن چیست؟
Closure Linter ابزاری است که فایلهای جاوا اسکریپت را برای مسائل مربوط به سبک مانند قرار دادن اپراتور، نقطه ویرگول از دست رفته، فاصله، وجود حاشیهنویسی JsDoc و موارد دیگر بررسی میکند.
لینتر بستن چه کاری می تواند برای من انجام دهد؟
Closure Linter تضمین می کند که تمام کدهای جاوا اسکریپت پروژه شما از دستورالعمل های راهنمای سبک جاوا اسکریپت Google پیروی می کند. همچنین میتواند بهطور خودکار بسیاری از خطاهای رایج را برطرف کند، که در وقت شما صرفهجویی میکند و به شما امکان میدهد روی کدنویسی تمرکز کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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"]]