GDQuest / GDQuest/GDScript-formatter
Linter: Make it possible to configure linter rules in the config file on per folder basis
- Vorherrschende Sprache
- Rust
- Sterne
- 455
- Forks
- 39
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Our project has a unit testing directory, where tests are calling private functions (they start with `_`). For tests code the linter reports errors, that the private functions are called, but for our project we want to ignore them.
There only way to configure the linter I found from the docs is with [comments](https://github.com/GDQuest/GDScript-formatter#ignoring-lines) and [cli args](https://github.com/GDQuest/GDScript-formatter#disabling-specific-rules), which is not scalable for the team or the whole bunch of unit tests files with hundreds of calls.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Lies zunächst die verlinkte Dokumentation zum Ignorieren von Zeilen und Deaktivieren bestimmter Regeln und untersuche anschließend, wie der Linter derzeit Kommentare und CLI-Argumente verarbeitet. Lege fest, wie Regeln für das Verzeichnis der Unit-Tests überschrieben werden sollen, und überprüfe, dass Aufrufe privater Funktionen in den Tests ohne Kommentare pro Zeile keine Fehler mehr erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- godot, rust
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100