Skip to content

[Feature Request] Support --format=json option for querly test #72

@ybiquitous

Description

@ybiquitous

Hello,

I want to parse the output of the querly test command more easily and safely.
So, what do you think about the suggestion to add a new option --format=json to the querly test command?

The option is almost similar to the querly check command. Here is the current querly check usage:

$ querly help check
Usage:
  querly check [paths]

Options:
  [--config=CONFIG]  
                     # Default: querly.yml
  [--root=ROOT]      
  [--format=FORMAT]  
                     # Default: text
                     # Possible values: text, json
  [--rule=RULE]      
  [--threads=N]      
                     # Default: 8

Check paths based on configuration

On the other hand, the new options of querly test will be similar:

  • querly test (without --format, defaults to --format=text. The output is the current one)
  • querly test --format=text
  • querly test --format=json

I would be happy if you could consider this suggestion.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions