Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create folder for reporting output file #402

Open
profhenry opened this issue May 30, 2024 · 0 comments
Open

Create folder for reporting output file #402

profhenry opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@profhenry
Copy link
Contributor

When specifying -output_file for writing the reporting output to a file the directory for the output file must exist and will not be created by protolint. It would be nice if protolint could try to create the directory

Example:
protolint lint -reporter plain -output_file=./protolint/report.plain . fails with open ./protolint/report.txt: no such file or directory if the ./protolint directory does not exist :-/.

Possible relevant source code might be
https://github.com/yoheimuta/protolint/blob/master/internal/linter/report/reporter.go#L29

@yoheimuta yoheimuta added the enhancement New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants