Skip to content

Set language in JSON renderer (SARIF format) #743

@ericwb

Description

@ericwb

Describe the bug
The JSON renderer, renders in SARIF format which supports a language attribute to signal what locale the strings are translated into.

To Reproduce

  • Run a analysis with a non-English locale and --json arg.
  • Examine the SARIF output with regards to strings
  • Notice there is no indication of the language identifier

Expected behavior
Metadata to indicate the translated language should be included in the SARIF output.

Version
0.8.0

Additional context
https://docs.oasis-open.org/sarif/sarif/v2.0/csprd02/sarif-v2.0-csprd02.html#_Toc10127682

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions