insightsengineering / insightsengineering/teal.code
[Feature Request]: High cyclomatic complexity leds to bad readability
- Vorherrschende Sprache
- R
- Sterne
- 12
- Forks
- 11
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
### Feature description
There are some functions that are highly complex and hard to read:
```
name cyclocomp
13 extract_occurrence 30
12 extract_dependency 13
33 move_functions_after_arrow 10
30 lang2calls 7
5 c.qenv 6
17 fix_shifted_comments 6
```
It would be good to make it easier to read the `extract_dependency` and `extract_occurrence` so that it is easier to modify them and fix any error.
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct.
### Contribution Guidelines
- [x] I agree to follow this project's Contribution Guidelines.
### Security Policy
- [x] I agree to follow this project's Security Policy.
Beitragsleitfaden
Rechercherichtung
Finde die R-Implementierungen und Aufrufer von extract_dependency und extract_occurrence und lies anschließend alle vorhandenen Tests dazu. Überarbeite die Funktionen, um die Lesbarkeit zu verbessern und die zyklomatische Komplexität zu reduzieren, wobei ihr aktuelles Verhalten erhalten bleibt; überprüfe, dass die vorhandenen Checks des Repositorys erfolgreich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- tooling
- Issue-Typ
- Refactoring
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 45/100