`--commit-range` doesn't restrict the recommendations to changed files in that range
- Lingua principale
- Java
- Stelle
- 23
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Issue
When I run the cli command to get a security scan for a given commit range, it includes recommendations across the entire package rather than just the specified commit range.
### Steps to reproduce
1. Run `aws-codeguru-cli --root-dir . --profile --mode security --commit-range HEAD^:HEAD`
2. Observe the the file at `code-guru/recommendations.json` includes recommendations across your entire package.
### Expected Result
Only include recommendations that are part of the diff within the commit range.
### Notes
I tried removing the commit range and noticed that the output is identical which makes me think that the flag is ignored.
This seems related to #9 but I wasn't able to validate the output of the jobs mentioned in that query.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esegui il comando aws-codeguru-cli segnalato con e senza --commit-range, quindi confronta code-guru/recommendations.json. Traccia il punto di ingresso di --commit-range e analizza l’issue #9 correlata; il lavoro è completato quando recommendations.json contiene solo raccomandazioni per i file modificati nell’intervallo di commit specificato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100