コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Closure Linter のサポート終了
ES2015 以降、JavaScript の構文は進化を続けており、Closure Linter を最新の状態に保つことがますます難しくなっています。スタッフが配置されておらず、メンテナンスも行われていないため、非推奨となっています。Google のほとんどのプロジェクトは新しいリンターに移行しました。
Closure ツールを使用しているチームには、代わりに Closure Compiler に基づく新しいリンターを使用することをおすすめします。これを行うには、--jscomp_warning=lintChecks
をコンパイラに渡すか、スタンドアロンのリンター バイナリをビルドします。詳しくは、
Closure Compiler の Wiki
をご覧ください。このページの残りの情報は、Closure Linter を引き続き使用しているチームのために、しばらくの間維持されます。
Closure Linter とは
Closure Linter は、演算子の配置、セミコロンの欠落、スペーシング、JsDoc アノテーションの有無など、JavaScript ファイルのスタイルに関する問題をチェックするユーティリティです。
Closure Linter でできること
Closure Linter は、プロジェクトのすべての JavaScript コードが Google JavaScript スタイルガイドのガイドラインに準拠していることを確認します。また、一般的なエラーの多くを自動的に修正できるため、時間を節約してコーディングに集中できます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[[["Closure Linter is deprecated and no longer actively maintained due to difficulties in keeping up with evolving JavaScript syntax."],["Google recommends using the new linter integrated with Closure Compiler by passing `--jscomp_warning=lintChecks` to the compiler or building the standalone linter binary."],["Closure 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."]]],[]]