{"meta":{"title":"코드 품질에 대한 JavaScript CodeQL 쿼리","intro":"CodeQL에서 JavaScript로 작성된 코드의 코드 품질을 분석하기 위해 사용하는 쿼리를 탐색합니다.","product":"보안 및 코드 품질","breadcrumbs":[{"href":"/ko/enterprise-cloud@latest/code-security","title":"보안 및 코드 품질"},{"href":"/ko/enterprise-cloud@latest/code-security/reference","title":"Reference"},{"href":"/ko/enterprise-cloud@latest/code-security/reference/code-quality","title":"코드 품질"},{"href":"/ko/enterprise-cloud@latest/code-security/reference/code-quality/codeql-queries","title":"CodeQL 쿼리"},{"href":"/ko/enterprise-cloud@latest/code-security/reference/code-quality/codeql-queries/javascript-queries","title":"JavaScript 쿼리"}],"documentType":"article"},"body":"# 코드 품질에 대한 JavaScript CodeQL 쿼리\n\nCodeQL에서 JavaScript로 작성된 코드의 코드 품질을 분석하기 위해 사용하는 쿼리를 탐색합니다.\n\nJavaScript 코드를 분석하고 다음에 관한 코드 품질 문제를 감지하기 위한 Code Quality uses the following CodeQL.\n\n* 사용자의 **기본 분기** 및 리포지토리의 \"표준 결과\" 대시보드에 표시되는 결과\n* \n              **풀 요청** 및 `github-code-quality[bot]`가 주석으로 표시한 결과\n\n가능한 경우, 결과에 대해 Copilot Autofix 제안이 제공됩니다.\n\n<div class=\"ghd-tool rowheaders\">\n\n| 쿼리 이름 | 카테고리 | 심각도\n           |\n| --- | --- | --- |\n| \n              [eval과 유사한 DOM 함수 호출](https://codeql.github.com/codeql-query-help/javascript/js-eval-like-call/) | 유지 관리 | Recommendation |\n| \n              [중복 종속성](https://codeql.github.com/codeql-query-help/javascript/js-angular-duplicate-dependency/) | 유지 관리 | 경고 |\n| \n              [HTML 요소 특성 복제](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-html-attribute/) | 유지 관리 | 경고 |\n| \n              [중복 속성](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-property/) | 유지 관리 | 경고 |\n| \n              [중복 변수 선언](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-variable-declaration/) | 유지 관리 | Recommendation |\n| \n              [식이 효과가 없습니다](https://codeql.github.com/codeql-query-help/javascript/js-useless-expression/) | 유지 관리 | 경고 |\n| \n              [제어 문 뒤의 잘못된 들여쓰기](https://codeql.github.com/codeql-query-help/javascript/js-misleading-indentation-after-control-statement/) | 유지 관리 | 경고 |\n| \n              [누락된 'else'의 오해를 일으키는 들여쓰기](https://codeql.github.com/codeql-query-help/javascript/js-misleading-indentation-of-dangling-else/) | 유지 관리 | 경고 |\n| \n              [문자열 연결의 누락된 공간](https://codeql.github.com/codeql-query-help/javascript/js-missing-space-in-concatenation/) | 유지 관리 | 경고 |\n| \n              [반복된 종속성 주입](https://codeql.github.com/codeql-query-help/javascript/js-angular-repeated-dependency-injection/) | 유지 관리 | 경고 |\n| \n              [세미콜론 삽입](https://codeql.github.com/codeql-query-help/javascript/js-automatic-semicolon-insertion/) | 유지 관리 | Recommendation |\n| \n              [중첩 연산자의 명확하지 않은 우선 순위](https://codeql.github.com/codeql-query-help/javascript/js-unclear-operator-precedence/) | 유지 관리 | Recommendation |\n| \n              [불필요한 방어 코드](https://codeql.github.com/codeql-query-help/javascript/js-unneeded-defensive-code/) | 유지 관리 | Recommendation |\n| \n              [사용되지 않는 변수, 가져오기, 함수 또는 클래스](https://codeql.github.com/codeql-query-help/javascript/js-unused-local-variable/) | 유지 관리 | Recommendation |\n| \n              [For-In 이해 블록 사용](https://codeql.github.com/codeql-query-help/javascript/js-for-in-comprehension/) | 유지 관리 | 오류 |\n| \n              [플랫폼별 언어 기능 사용](https://codeql.github.com/codeql-query-help/javascript/js-non-standard-language-feature/) | 유지 관리 | 경고 |\n| \n              [지역 변수에 대한 쓸모 없는 할당](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-to-local/) | 유지 관리 | 경고 |\n| \n              [속성에 대한 쓸모 없는 할당](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-to-property/) | 유지 관리 | 경고 |\n| \n              [setter에서 쓸모없는 반환](https://codeql.github.com/codeql-query-help/javascript/js-setter-return/) | 유지 관리 | 경고 |\n| \n              [사용하기 전에 선언되지 않은 변수](https://codeql.github.com/codeql-query-help/javascript/js-use-before-declaration/) | 유지 관리 | 경고 |\n| \n              [With문](https://codeql.github.com/codeql-query-help/javascript/js-with-statement/) | 유지 관리 | 경고 |\n| \n              [시점 데드존에서 let으로 선언된 변수에 접근](https://codeql.github.com/codeql-query-help/javascript/js-variable-use-in-temporal-dead-zone/) | Reliability | 오류 |\n| \n              [다시 정의된 인수](https://codeql.github.com/codeql-query-help/javascript/js-arguments-redefinition/) | Reliability | Recommendation |\n| \n              [Vue 인스턴스의 화살표 메서드](https://codeql.github.com/codeql-query-help/javascript/js-vue-arrow-method-on-vue-instance/) | Reliability | 경고 |\n| \n              [상수에 할당](https://codeql.github.com/codeql-query-help/javascript/js-assignment-to-constant/) | Reliability | 오류 |\n| \n              [변수 내보내기 할당](https://codeql.github.com/codeql-query-help/javascript/js-node-assignment-to-exports-variable/) | Reliability | 경고 |\n| \n              [기본값의 속성에 할당](https://codeql.github.com/codeql-query-help/javascript/js-property-assignment-on-primitive/) | Reliability | 오류 |\n| \n              [부정적 lookahead 어설션 내의 역참조](https://codeql.github.com/codeql-query-help/javascript/js-regex-back-reference-to-negative-lookahead/) | Reliability | 오류 |\n| \n              [역참조가 캡처 그룹 앞에 위치합니다.](https://codeql.github.com/codeql-query-help/javascript/js-regex-back-reference-before-group/) | Reliability | 오류 |\n| \n              [변환할 수 없는 형식 간의 비교](https://codeql.github.com/codeql-query-help/javascript/js-comparison-between-incompatible-types/) | Reliability | 경고 |\n| \n              [NaN과 비교](https://codeql.github.com/codeql-query-help/javascript/js-comparison-with-nan/) | Reliability | 오류 |\n| \n              [조건부 주석](https://codeql.github.com/codeql-query-help/javascript/js-conditional-comment/) | Reliability | 경고 |\n| \n              [충돌하는 함수 선언](https://codeql.github.com/codeql-query-help/javascript/js-function-declaration-conflict/) | Reliability | 오류 |\n| \n              [충돌하는 변수 초기화](https://codeql.github.com/codeql-query-help/javascript/js-variable-initialization-conflict/) | Reliability | 오류 |\n| \n              [기본 매개 변수 참조 중첩 함수](https://codeql.github.com/codeql-query-help/javascript/js-nested-function-reference-in-default-parameter/) | Reliability | 오류 |\n| \n              [비속성 삭제](https://codeql.github.com/codeql-query-help/javascript/js-deletion-of-non-property/) | Reliability | 경고 |\n| \n              [종속성 불일치](https://codeql.github.com/codeql-query-help/javascript/js-angular-dependency-injection-mismatch/) | Reliability | 경고 |\n| \n              [직접 상태 돌연변이](https://codeql.github.com/codeql-query-help/javascript/js-react-direct-state-mutation/) | Reliability | 경고 |\n| \n              [중복 'if' 조건](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-condition/) | Reliability | 경고 |\n| \n              [문자 클래스의 중복 문자](https://codeql.github.com/codeql-query-help/javascript/js-regex-duplicate-in-character-class/) | Reliability | 경고 |\n| \n              [중복 매개 변수 이름](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-parameter-name/) | Reliability | 오류 |\n| \n              [중복 스위치 대/소문자](https://codeql.github.com/codeql-query-help/javascript/js-duplicate-switch-case/) | Reliability | 경고 |\n| \n              [빈 문자 클래스](https://codeql.github.com/codeql-query-help/javascript/js-regex-empty-character-class/) | Reliability | 경고 |\n| \n              [동일한 피연산자](https://codeql.github.com/codeql-query-help/javascript/js-redundant-operation/) | Reliability | 경고 |\n| \n              [순수 배열 메서드의 결과 무시](https://codeql.github.com/codeql-query-help/javascript/js-ignore-array-result/) | Reliability | 경고 |\n| \n              [잘못된 호출](https://codeql.github.com/codeql-query-help/javascript/js-illegal-invocation/) | Reliability | 오류 |\n| \n              [암시적 피연산자 변환](https://codeql.github.com/codeql-query-help/javascript/js-implicit-operand-conversion/) | Reliability | 경고 |\n| \n              [호환되지 않는 종속성 주입](https://codeql.github.com/codeql-query-help/javascript/js-angular-incompatible-service/) | Reliability | 오류 |\n| \n              [일관되지 않은 for 반복문의 순서](https://codeql.github.com/codeql-query-help/javascript/js-inconsistent-loop-direction/) | Reliability | 오류 |\n| \n              ['new'의 일관성 없는 사용](https://codeql.github.com/codeql-query-help/javascript/js-inconsistent-use-of-new/) | Reliability | 경고 |\n| \n              [비효율적인 매개 변수 형식](https://codeql.github.com/codeql-query-help/javascript/js-ineffective-parameter-type/) | Reliability | 경고 |\n| \n              [프로토타입 값이 잘못되었습니다.](https://codeql.github.com/codeql-query-help/javascript/js-invalid-prototype-value/) | Reliability | 오류 |\n| \n              [함수가 아닌 호출](https://codeql.github.com/codeql-query-help/javascript/js-call-to-non-callable/) | Reliability | 오류 |\n| \n              [이동으로 인해 루프 반복이 건너뛰어졌습니다](https://codeql.github.com/codeql-query-help/javascript/js-loop-iteration-skipped-due-to-shifting/) | Reliability | 경고 |\n| \n              [형식이 잘못된 식별자 속성](https://codeql.github.com/codeql-query-help/javascript/js-malformed-html-id/) | Reliability | 경고 |\n| \n              [비교에서 누락된 '.length'](https://codeql.github.com/codeql-query-help/javascript/js-missing-dot-length-in-comparison/) | Reliability | 경고 |\n| \n              ['this' 한정자 누락](https://codeql.github.com/codeql-query-help/javascript/js-missing-this-qualifier/) | Reliability | 오류 |\n| \n              [await 누락](https://codeql.github.com/codeql-query-help/javascript/js-missing-await/) | Reliability | 경고 |\n| \n              [명시적 종속성 주입 누락](https://codeql.github.com/codeql-query-help/javascript/js-angular-missing-explicit-injection/) | Reliability | 경고 |\n| \n              [내보내기 한정자 누락](https://codeql.github.com/codeql-query-help/javascript/js-node-missing-exports-qualifier/) | Reliability | 오류 |\n| \n              [변수 선언 누락](https://codeql.github.com/codeql-query-help/javascript/js-missing-variable-declaration/) | Reliability | 경고 |\n| \n              [철자가 잘못된 변수 이름](https://codeql.github.com/codeql-query-help/javascript/js-misspelled-variable-name/) | Reliability | 경고 |\n| \n              [switch 문의 case가 아닌 레이블](https://codeql.github.com/codeql-query-help/javascript/js-label-in-switch/) | Reliability | 경고 |\n| \n              [비선형 패턴](https://codeql.github.com/codeql-query-help/javascript/js-non-linear-pattern/) | Reliability | 오류 |\n| \n              [길이와 일대일 비교](https://codeql.github.com/codeql-query-help/javascript/js-index-out-of-bounds/) | Reliability | 경고 |\n| \n              [덮어쓰기 속성](https://codeql.github.com/codeql-query-help/javascript/js-overwritten-property/) | Reliability | 오류 |\n| \n              [잠재적으로 일관성이 없는 상태 업데이트](https://codeql.github.com/codeql-query-help/javascript/js-react-inconsistent-state-update/) | Reliability | 경고 |\n| \n              [null 또는 undefined에 대한 속성 액세스](https://codeql.github.com/codeql-query-help/javascript/js-property-access-on-non-object/) | Reliability | 오류 |\n| \n              [정규식은 항상 일치](https://codeql.github.com/codeql-query-help/javascript/js-regex-always-matches/) | Reliability | 경고 |\n| \n              [Return 문은 지역 변수를 할당합니다.](https://codeql.github.com/codeql-query-help/javascript/js-useless-assignment-in-return/) | Reliability | 경고 |\n| \n              [자체 할당](https://codeql.github.com/codeql-query-help/javascript/js-redundant-assignment/) | Reliability | 경고 |\n| \n              [범위를 벗어나기](https://codeql.github.com/codeql-query-help/javascript/js-shift-out-of-range/) | Reliability | 오류 |\n| \n              [정규식 대신 문자열](https://codeql.github.com/codeql-query-help/javascript/js-string-instead-of-regex/) | Reliability | 경고 |\n| \n              [불필요한 후행 인수](https://codeql.github.com/codeql-query-help/javascript/js-superfluous-trailing-arguments/) | Reliability | 경고 |\n| \n              [의심스러운 메서드 이름 선언](https://codeql.github.com/codeql-query-help/javascript/js-suspicious-method-name-declaration/) | Reliability | 경고 |\n| \n              [문자열 리터럴의 템플릿 구문](https://codeql.github.com/codeql-query-help/javascript/js-template-syntax-in-string-literal/) | Reliability | 경고 |\n| \n              [제한되지 않은 백 참조](https://codeql.github.com/codeql-query-help/javascript/js-regex-unbound-back-reference/) | Reliability | 경고 |\n| \n              [언바운드 이벤트 처리기 수신기](https://codeql.github.com/codeql-query-help/javascript/js-unbound-event-handler-receiver/) | Reliability | 오류 |\n| \n              [스트림 파이프라인에서 처리되지 않은 오류](https://codeql.github.com/codeql-query-help/javascript/js-unhandled-error-in-stream-pipeline/) | Reliability | 경고 |\n| \n              [알 수 없는 지시문](https://codeql.github.com/codeql-query-help/javascript/js-unknown-directive/) | Reliability | 경고 |\n| \n              [정규식에서 매치할 수 없는 캐럿](https://codeql.github.com/codeql-query-help/javascript/js-regex-unmatchable-caret/) | Reliability | 오류 |\n| \n              [정규식에서 타의 추종을 불허하는 달러](https://codeql.github.com/codeql-query-help/javascript/js-regex-unmatchable-dollar/) | Reliability | 오류 |\n| \n              [연결할 수 없는 메서드 오버로드](https://codeql.github.com/codeql-query-help/javascript/js-unreachable-method-overloads/) | Reliability | 경고 |\n| \n              [실행되지 않는 구문](https://codeql.github.com/codeql-query-help/javascript/js-unreachable-statement/) | Reliability | 경고 |\n| \n              [수명 주기 메서드에서 지원되지 않는 상태 업데이트](https://codeql.github.com/codeql-query-help/javascript/js-react-unsupported-state-update-in-lifecycle-method/) | Reliability | 경고 |\n| \n              [사용되지 않는 인덱스 변수](https://codeql.github.com/codeql-query-help/javascript/js-unused-index-variable/) | Reliability | 경고 |\n| \n              [사용되지 않는 루프 반복 변수](https://codeql.github.com/codeql-query-help/javascript/js-unused-loop-variable/) | Reliability | 오류 |\n| \n              [사용되지 않거나 정의되지 않은 상태 속성](https://codeql.github.com/codeql-query-help/javascript/js-react-unused-or-undefined-state-property/) | Reliability | 경고 |\n| \n              [URL 값 속성에서 AngularJS 마크업 사용](https://codeql.github.com/codeql-query-help/javascript/js-angular-expression-in-url-attribute/) | Reliability | 경고 |\n| \n              [strict 모드에서 호출 스택 검사 사용](https://codeql.github.com/codeql-query-help/javascript/js-strict-mode-call-stack-introspection/) | Reliability | 오류 |\n| \n              [불완전하게 초기화된 개체 사용](https://codeql.github.com/codeql-query-help/javascript/js-incomplete-object-initialization/) | Reliability | 오류 |\n| \n              [반환 없는 함수 사용](https://codeql.github.com/codeql-query-help/javascript/js-use-of-returnless-function/) | Reliability | 경고 |\n| \n              [쓸모없는 비교 테스트](https://codeql.github.com/codeql-query-help/javascript/js-useless-comparison-test/) | Reliability | 경고 |\n| \n              [쓸모없는 조건부](https://codeql.github.com/codeql-query-help/javascript/js-trivial-conditional/) | Reliability | 경고 |\n| \n              [쓸모 없는 형식 테스트](https://codeql.github.com/codeql-query-help/javascript/js-useless-type-test/) | Reliability | 오류 |\n| \n              [공백이 연산자 우선 순위와 모순됩니다.](https://codeql.github.com/codeql-query-help/javascript/js-whitespace-contradicts-precedence/) | Reliability | 경고 |\n| \n              [정적 메서드에 'this'를 잘못 사용했습니다.](https://codeql.github.com/codeql-query-help/javascript/js-mixed-static-instance-this-access/) | Reliability | 오류 |\n| \n              [비 생성기 함수의 수율](https://codeql.github.com/codeql-query-help/javascript/js-yield-outside-generator/) | Reliability | 오류 |\n\n</div>"}