จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลิกใช้งาน Closure Linter แล้ว
เนื่องจากไวยากรณ์ของ JavaScript มีการพัฒนาอย่างต่อเนื่องตั้งแต่ ES2015
เป็นต้นมา การอัปเดต Closure
Linter จึงยากขึ้นเรื่อยๆ โดยไม่มีเจ้าหน้าที่ดูแล ไม่มีการบำรุงรักษา และเลิกใช้งานแล้ว
โปรเจ็กต์ส่วนใหญ่ใน Google ได้ย้ายข้อมูลไปยัง Linter ใหม่แล้ว
สำหรับทีมที่ใช้เครื่องมือ Closure เราขอแนะนำให้ใช้ Linter ใหม่
ที่อิงตาม Closure Compiler แทน คุณทำได้โดย
ส่ง --jscomp_warning=lintChecks
ไปยังคอมไพเลอร์
หรือสร้างไบนารีของ Linter แบบสแตนด์อโลน ดูรายละเอียดได้ที่
วิกิของ Closure Compiler
ส่วนข้อมูลที่เหลือในหน้านี้จะยังคงอยู่สักระยะหนึ่งสำหรับทีมที่ยังใช้ Closure Linter
Closure Linter คืออะไร
Closure Linter เป็นยูทิลิตีที่ตรวจสอบไฟล์ JavaScript เพื่อหาปัญหาด้านรูปแบบ เช่น การวางตัวดำเนินการ เครื่องหมายเซมิโคลอนที่ขาดหายไป การเว้นวรรค การมีคำอธิบายประกอบ JsDoc และอื่นๆ
Closure Linter ทำอะไรให้ฉันได้บ้าง
Closure Linter ช่วยให้มั่นใจว่าโค้ด JavaScript ทั้งหมดของโปรเจ็กต์เป็นไปตามหลักเกณฑ์ในคู่มือรูปแบบ JavaScript ของ Google นอกจากนี้ยังแก้ไขข้อผิดพลาดทั่วไปหลายอย่างโดยอัตโนมัติได้ด้วย ซึ่งช่วยประหยัดเวลาและให้คุณมุ่งเน้นที่การเขียนโค้ดได้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]