--validate should print JSON if files don't exist
Open
bug
small
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
```
$ elm-format --validate xxx
[There was a problem reading one or more of the specified input files:
xxx: File does not exist
Please check the given paths.
```
Should instead print:
```
$ elm-format --validate xxx
[{"path":"xxx","message":"File does not exist"}
]
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the elm-format --validate command entry point and how it handles a nonexistent path such as xxx. Run the command before and after the change, and confirm the result is JSON containing the path and the “File does not exist” message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elm, haskell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100