Forbid construction of incorrect absolute paths
Offen
enhancement
good first issue
help wanted
- Vorherrschende Sprache
- C#
- Sterne
- 104
- Forks
- 15
- Ø Merge
- 9 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Absolute paths such as `/..` (Unix) or `X:\..` (Windows) should be forbidden. Let's add the corresponding validation into the `AbsolutePath` constructor.
Also check the behavior of `new AbsolutePath("smth") / new RelativePath("..")` — it should be the same w.r.t. the exceptions thrown.
Beitragsleitfaden
Rechercherichtung
Beginne beim Konstruktor von AbsolutePath und untersuche, wie die Kombination von AbsolutePath mit RelativePath behandelt wird. Prüfe die Fälle `/..`, `X:\..` und `new AbsolutePath("smth") / new RelativePath("..")`; fertig ist die Aufgabe, wenn ungültige absolute Pfade mit den erwarteten Ausnahmen abgewiesen werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100