sharkdp/fd

Design and refactoring / general code quality

Open

#382 geöffnet am 4. Jan. 2019

Auf GitHub ansehen
 (15 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (1.059 Forks)batch import
good first issuehelp wanted

Repository-Metriken

Stars
 (42.984 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 15T 23h) (16 gemergte PRs in 30 T)

Beschreibung

This is intended as a tracking issue for general code quality and design discussions. @sharkdp feel free to close this when you think quality has reached an overall satisfactory level.

To start, I'll quote a recent comment by @sharkdp from a discussion on a PR thread:

There are many things I have in mind that would hopefully help to improve the code quality:

  • Group related functions into impl blocks of appropriate structs such that we don't have to pass around so many parameters.
  • Think about a unified interface for filters (file type, file size, modification data, file extension, ..). Maybe a trait-based interface where the filters would be stored in a Vec<Box<dyn Filter>>.
  • Extract some of the functionality like the OsStr-based path handling into separate libraries / crates.

Contributor Guide