General issue
- Lenguaje dominante
- CodeQL
- Estrellas
- 10.1k
- Forks
- 2.1k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 141
Descripción
I am looking at using CodeQL for my react app and am using the boiler plate to as much as n extent that I can.
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
However, when adding poor conditions in the code such as
var unused : any;
if (unused == 'start')
console.log("something");
else if (unused == 'start')
console.log("something");
else
throw new Error("Message not understood.");
example https://codeql.github.com/codeql-query-help/javascript/js-duplicate-condition/
expecting CodeQL to throw an issue, this sailed through with no issues. Can someone please help and let me know what I have done wrong.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.