github / github/codeql-cli-binaries

codeql database create ignore minified files

Offen
#75 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
CLI
Vorherrschende Sprache
Keine Sprachdaten
Sterne
1k
Forks
184
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Description

When ```codeql database create``` is used on a code-base containing files whose names contain multiple dots (.) the files are ignored by the extractors.

## Steps to reproduce
1. Create a directory called **test**
2. Create a file named **foo.js** inside the newly created directory
3. Navigate to the directory and run the following command: ```codeql database create ../foo-db --language=javascript```
4. Verify the **foo.js** is extracted
5. Rename the **foo.js** to **foo.min.js**
6. Run the following command: ```codeql database create ../foo-min-db --language=javascript```
7. Verify the **foo.js** is **NOT** extracted

## Expected behavior
When using codeql to assess production JavaScript code, minified files should be included in the database.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduce the issue with the listed codeql database create commands, comparing extraction of foo.js and foo.min.js. Trace the JavaScript extraction path responsible for filename handling and confirm the fix by verifying that files with multiple dots are included in the resulting database.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
cli, devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.