# コード品質のための JavaScript CodeQL クエリ

CodeQL が、JavaScript で記述されたコードのコード品質を分析するために使用するクエリを探索します。

Code Quality は、次の CodeQL クエリを使用して JavaScript コードを分析し、コード品質の問題を検出します。

* あなたの**既定のブランチ**の結果が、リポジトリの "標準の結果" ダッシュボードに表示されます。
* 
              **Pull requests (プル リクエスト)** は、発見された事項とともに、`github-code-quality[bot]` によるコメントとして表示されます

Copilot Autofix の提案は、可能な場合に検出結果に対して提供されます。

<div class="ghd-tool rowheaders">

| クエリ名 | カテゴリ | Severity |
| --- | --- | --- |
| 
              [eval に似た DOM 関数の呼び出し](https://codeql.github.com/codeql-query-help/javascript/js-eval-like-call/) | 保守性 | 勧告 |
| 
              [重複する依存関係](https://codeql.github.com/codeql-query-help/javascript/js-angular-duplicate-dependency/) | 保守性 | Warnung |
| 
              [重複する HTML 要素の属性](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-html-attribute/) | 保守性 | Warnung |
| 
              [プロパティの重複](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-property/) | 保守性 | Warnung |
| 
              [変数宣言の重複](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-variable-declaration/) | 保守性 | 勧告 |
| 
              [式は何も影響を及ぼしません](https://codeql.github.com/codeql-query-help/javascript/js-useless-expression/) | 保守性 | Warnung |
| 
              [制御ステートメントの後に誤解を招くインデント](https://codeql.github.com/codeql-query-help/javascript/js-misleading-indentation-after-control-statement/) | 保守性 | Warnung |
| 
              [ぶら下げ 'else' の誤解を招くインデント](https://codeql.github.com/codeql-query-help/javascript/js-misleading-indentation-of-dangling-else/) | 保守性 | Warnung |
| 
              [文字列連結にスペースがありません](https://codeql.github.com/codeql-query-help/javascript/js-missing-space-in-concatenation/) | 保守性 | Warnung |
| 
              [依存関係の繰り返し挿入](https://codeql.github.com/codeql-query-help/javascript/js-angular-repeated-dependency-injection/) | 保守性 | Warnung |
| 
              [セミコロンの挿入](https://codeql.github.com/codeql-query-help/javascript/js-automatic-semicolon-insertion/) | 保守性 | 勧告 |
| 
              [入れ子になった演算子の優先順位が明確でない](https://codeql.github.com/codeql-query-help/javascript/js-unclear-operator-precedence/) | 保守性 | 勧告 |
| 
              [不要な防御コード](https://codeql.github.com/codeql-query-help/javascript/js-unneeded-defensive-code/) | 保守性 | 勧告 |
| 
              [未使用の変数、インポート、関数、またはクラス](https://codeql.github.com/codeql-query-help/javascript/js-unused-local-variable/) | 保守性 | 勧告 |
| 
              [for-in 理解ブロックの使用](https://codeql.github.com/codeql-query-help/javascript/js-for-in-comprehension/) | 保守性 | エラー |
| 
              [プラットフォーム固有の言語機能の使用](https://codeql.github.com/codeql-query-help/javascript/js-non-standard-language-feature/) | 保守性 | Warnung |
| 
              [ローカル変数への無駄な代入](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-to-local/) | 保守性 | Warnung |
| 
              [プロパティへの無駄な割り当て](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-to-property/) | 保守性 | Warnung |
| 
              [セッターでの無駄なリターン](https://codeql.github.com/codeql-query-help/javascript/js-setter-return/) | 保守性 | Warnung |
| 
              [変数は使用前に宣言されていません](https://codeql.github.com/codeql-query-help/javascript/js-use-before-declaration/) | 保守性 | Warnung |
| 
              [With ステートメント](https://codeql.github.com/codeql-query-help/javascript/js-with-statement/) | 保守性 | Warnung |
| 
              [テンポラル デッド ゾーンの let バインド変数へのアクセス](https://codeql.github.com/codeql-query-help/javascript/js-variable-use-in-temporal-dead-zone/) | Reliability | エラー |
| 
              [引数が再定義されました](https://codeql.github.com/codeql-query-help/javascript/js-arguments-redefinition/) | Reliability | 勧告 |
| 
              [Vue インスタンスの Arrow メソッド](https://codeql.github.com/codeql-query-help/javascript/js-vue-arrow-method-on-vue-instance/) | Reliability | Warnung |
| 
              [定数への割り当て](https://codeql.github.com/codeql-query-help/javascript/js-assignment-to-constant/) | Reliability | エラー |
| 
              [エクスポート変数への割り当て](https://codeql.github.com/codeql-query-help/javascript/js-node-assignment-to-exports-variable/) | Reliability | Warnung |
| 
              [プリミティブ値のプロパティへの割り当て](https://codeql.github.com/codeql-query-help/javascript/js-property-assignment-on-primitive/) | Reliability | エラー |
| 
              [負の先読みアサーションへの逆参照](https://codeql.github.com/codeql-query-help/javascript/js-regex-back-reference-to-negative-lookahead/) | Reliability | エラー |
| 
              [逆参照がキャプチャグループに先行する](https://codeql.github.com/codeql-query-help/javascript/js-regex-back-reference-before-group/) | Reliability | エラー |
| 
              [変換できない型の比較](https://codeql.github.com/codeql-query-help/javascript/js-comparison-between-incompatible-types/) | Reliability | Warnung |
| 
              [NaN との比較](https://codeql.github.com/codeql-query-help/javascript/js-comparison-with-nan/) | Reliability | エラー |
| 
              [条件付きコメント](https://codeql.github.com/codeql-query-help/javascript/js-conditional-comment/) | Reliability | Warnung |
| 
              [競合する関数宣言](https://codeql.github.com/codeql-query-help/javascript/js-function-declaration-conflict/) | Reliability | エラー |
| 
              [競合する変数の初期化](https://codeql.github.com/codeql-query-help/javascript/js-variable-initialization-conflict/) | Reliability | エラー |
| 
              [ネストされた関数の既定パラメーター参照](https://codeql.github.com/codeql-query-help/javascript/js-nested-function-reference-in-default-parameter/) | Reliability | エラー |
| 
              [プロパティでないものの削除](https://codeql.github.com/codeql-query-help/javascript/js-deletion-of-non-property/) | Reliability | Warnung |
| 
              [依存関係の不一致](https://codeql.github.com/codeql-query-help/javascript/js-angular-dependency-injection-mismatch/) | Reliability | Warnung |
| 
              [直接状態の変更](https://codeql.github.com/codeql-query-help/javascript/js-react-direct-state-mutation/) | Reliability | Warnung |
| 
              [重複する 'if' 条件](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-condition/) | Reliability | Warnung |
| 
              [文字クラス内の重複する文字](https://codeql.github.com/codeql-query-help/javascript/js-regex-duplicate-in-character-class/) | Reliability | Warnung |
| 
              [パラメーター名の重複](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-parameter-name/) | Reliability | エラー |
| 
              [重複したスイッチケース](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-switch-case/) | Reliability | Warnung |
| 
              [空の文字クラス](https://codeql.github.com/codeql-query-help/javascript/js-regex-empty-character-class/) | Reliability | Warnung |
| 
              [同一オペランド](https://codeql.github.com/codeql-query-help/javascript/js-redundant-operation/) | Reliability | Warnung |
| 
              [純粋な配列メソッドからの結果を無視する](https://codeql.github.com/codeql-query-help/javascript/js-ignore-array-result/) | Reliability | Warnung |
| 
              [無効な呼び出し](https://codeql.github.com/codeql-query-help/javascript/js-illegal-invocation/) | Reliability | エラー |
| 
              [暗黙的なオペランド変換](https://codeql.github.com/codeql-query-help/javascript/js-implicit-operand-conversion/) | Reliability | Warnung |
| 
              [互換性のない依存関係の挿入](https://codeql.github.com/codeql-query-help/javascript/js-angular-incompatible-service/) | Reliability | エラー |
| 
              [for ループの方向が不一致](https://codeql.github.com/codeql-query-help/javascript/js-inconsistent-loop-direction/) | Reliability | エラー |
| 
              ['new' の一貫性のない使用](https://codeql.github.com/codeql-query-help/javascript/js-inconsistent-use-of-new/) | Reliability | Warnung |
| 
              [無効なパラメーター型](https://codeql.github.com/codeql-query-help/javascript/js-ineffective-parameter-type/) | Reliability | Warnung |
| 
              [プロトタイプ値が無効です](https://codeql.github.com/codeql-query-help/javascript/js-invalid-prototype-value/) | Reliability | エラー |
| 
              [非関数の実行](https://codeql.github.com/codeql-query-help/javascript/js-call-to-non-callable/) | Reliability | エラー |
| 
              [シフトが原因でループイテレーションがスキップされた](https://codeql.github.com/codeql-query-help/javascript/js-loop-iteration-skipped-due-to-shifting/) | Reliability | Warnung |
| 
              [ID 属性の形式が正しくありません](https://codeql.github.com/codeql-query-help/javascript/js-malformed-html-id/) | Reliability | Warnung |
| 
              [比較時に '.length' が欠けています](https://codeql.github.com/codeql-query-help/javascript/js-missing-dot-length-in-comparison/) | Reliability | Warnung |
| 
              ['this' 修飾子がありません](https://codeql.github.com/codeql-query-help/javascript/js-missing-this-qualifier/) | Reliability | エラー |
| 
              [await が見つかりません](https://codeql.github.com/codeql-query-help/javascript/js-missing-await/) | Reliability | Warnung |
| 
              [明示的な依存関係の挿入が見つからない](https://codeql.github.com/codeql-query-help/javascript/js-angular-missing-explicit-injection/) | Reliability | Warnung |
| 
              [エクスポート修飾子がありません](https://codeql.github.com/codeql-query-help/javascript/js-node-missing-exports-qualifier/) | Reliability | エラー |
| 
              [変数宣言がありません](https://codeql.github.com/codeql-query-help/javascript/js-missing-variable-declaration/) | Reliability | Warnung |
| 
              [スペルが間違った変数名](https://codeql.github.com/codeql-query-help/javascript/js-misspelled-variable-name/) | Reliability | Warnung |
| 
              [switch ステートメントのcaseに属さないラベル](https://codeql.github.com/codeql-query-help/javascript/js-label-in-switch/) | Reliability | Warnung |
| 
              [非線形パターン](https://codeql.github.com/codeql-query-help/javascript/js-non-linear-pattern/) | Reliability | エラー |
| 
              [長さに対するオフバイワン比較](https://codeql.github.com/codeql-query-help/javascript/js-index-out-of-bounds/) | Reliability | Warnung |
| 
              [上書きされたプロパティ](https://codeql.github.com/codeql-query-help/javascript/js-overwritten-property/) | Reliability | エラー |
| 
              [一貫性のない状態の更新の可能性](https://codeql.github.com/codeql-query-help/javascript/js-react-inconsistent-state-update/) | Reliability | Warnung |
| 
              [null または未定義に対するプロパティのアクセス](https://codeql.github.com/codeql-query-help/javascript/js-property-access-on-non-object/) | Reliability | エラー |
| 
              [正規表現は常に一致します](https://codeql.github.com/codeql-query-help/javascript/js-regex-always-matches/) | Reliability | Warnung |
| 
              [Return ステートメントでローカル変数を割り当てる](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-in-return/) | Reliability | Warnung |
| 
              [自己割り当て](https://codeql.github.com/codeql-query-help/javascript/js-redundant-assignment/) | Reliability | Warnung |
| 
              [範囲外にシフト](https://codeql.github.com/codeql-query-help/javascript/js-shift-out-of-range/) | Reliability | エラー |
| 
              [正規表現ではなく文字列](https://codeql.github.com/codeql-query-help/javascript/js-string-instead-of-regex/) | Reliability | Warnung |
| 
              [余分な末尾の引数](https://codeql.github.com/codeql-query-help/javascript/js-superfluous-trailing-arguments/) | Reliability | Warnung |
| 
              [疑わしいメソッド名の宣言](https://codeql.github.com/codeql-query-help/javascript/js-suspicious-method-name-declaration/) | Reliability | Warnung |
| 
              [文字列リテラルのテンプレート構文](https://codeql.github.com/codeql-query-help/javascript/js-template-syntax-in-string-literal/) | Reliability | Warnung |
| 
              [バインドされていないバックリファレンス](https://codeql.github.com/codeql-query-help/javascript/js-regex-unbound-back-reference/) | Reliability | Warnung |
| 
              [非バインド イベント ハンドラー レシーバー](https://codeql.github.com/codeql-query-help/javascript/js-unbound-event-handler-receiver/) | Reliability | エラー |
| 
              [ストリーム パイプラインの未処理のエラー](https://codeql.github.com/codeql-query-help/javascript/js-unhandled-error-in-stream-pipeline/) | Reliability | Warnung |
| 
              [不明なディレクティブ](https://codeql.github.com/codeql-query-help/javascript/js-unknown-directive/) | Reliability | Warnung |
| 
              [正規表現で比類のないキャレット](https://codeql.github.com/codeql-query-help/javascript/js-regex-unmatchable-caret/) | Reliability | エラー |
| 
              [正規表現で一致しないドル](https://codeql.github.com/codeql-query-help/javascript/js-regex-unmatchable-dollar/) | Reliability | エラー |
| 
              [到達できないメソッドのオーバーロード](https://codeql.github.com/codeql-query-help/javascript/js-unreachable-method-overloads/) | Reliability | Warnung |
| 
              [到達できないステートメント](https://codeql.github.com/codeql-query-help/javascript/js-unreachable-statement/) | Reliability | Warnung |
| 
              [ライフサイクル メソッドでサポートされていない状態の更新](https://codeql.github.com/codeql-query-help/javascript/js-react-unsupported-state-update-in-lifecycle-method/) | Reliability | Warnung |
| 
              [未使用のインデックス変数](https://codeql.github.com/codeql-query-help/javascript/js-unused-index-variable/) | Reliability | Warnung |
| 
              [未使用のループ反復変数](https://codeql.github.com/codeql-query-help/javascript/js-unused-loop-variable/) | Reliability | エラー |
| 
              [未使用または未定義の状態プロパティ](https://codeql.github.com/codeql-query-help/javascript/js-react-unused-or-undefined-state-property/) | Reliability | Warnung |
| 
              [URL 値属性での AngularJS マークアップの使用](https://codeql.github.com/codeql-query-help/javascript/js-angular-expression-in-url-attribute/) | Reliability | Warnung |
| 
              [厳密モードでの呼び出し履歴のイントロスペクションの使用](https://codeql.github.com/codeql-query-help/javascript/js-strict-mode-call-stack-introspection/) | Reliability | エラー |
| 
              [不完全に初期化されたオブジェクトの使用](https://codeql.github.com/codeql-query-help/javascript/js-incomplete-object-initialization/) | Reliability | エラー |
| 
              [リターンレス関数の使用](https://codeql.github.com/codeql-query-help/javascript/js-use-of-returnless-function/) | Reliability | Warnung |
| 
              [役に立たない比較テスト](https://codeql.github.com/codeql-query-help/javascript/js-useless-comparison-test/) | Reliability | Warnung |
| 
              [役に立たない条件付き](https://codeql.github.com/codeql-query-help/javascript/js-trivial-conditional/) | Reliability | Warnung |
| 
              [役に立たない型テスト](https://codeql.github.com/codeql-query-help/javascript/js-useless-type-test/) | Reliability | エラー |
| 
              [空白文字が演算子の優先順位と矛盾する](https://codeql.github.com/codeql-query-help/javascript/js-whitespace-contradicts-precedence/) | Reliability | Warnung |
| 
              [静的メソッドに 'this' を誤って使用する](https://codeql.github.com/codeql-query-help/javascript/js-mixed-static-instance-this-access/) | Reliability | エラー |
| 
              [非ジェネレーター関数の Yield](https://codeql.github.com/codeql-query-help/javascript/js-yield-outside-generator/) | Reliability | エラー |

</div>