Skip to content

Create folder for reporting output file #402

@profhenry

Description

@profhenry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions