import-linter icon indicating copy to clipboard operation
import-linter copied to clipboard

Filename format

Open leontrolski opened this issue 3 months ago • 1 comments

Adds format=filenames configuration option to allow CMD-clicking importlinter output in iTerm.

WIP as:

  • I'm not sure this is the best way to pass in the configuration.
  • There is a test, but I'm not sure if it's at the correct level.
  • Maybe there's some value in refactoring some of the formatting so that this is a universal option - I think it's only applying to the layers configuration.
  • It should be nice to type format: Literal["default", "filenames"], but again I think this would require a refactor.
  • Needs docs adding.

leontrolski avatar Sep 30 '25 11:09 leontrolski

Related PR: https://github.com/seddonym/import-linter/pull/293 - which outputs everything in a json format.

We should consider both of these use cases, I'm still considering what the best design is but feel free to weigh in.

seddonym avatar Oct 15 '25 13:10 seddonym