bin.name = "typos"
args = "--format sarif --sort"
status.code = 2
stdout = '''
{
  "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0.json",
  "runs": [
    {
      "columnKind": "unicodeCodePoints",
      "results": [
        {
          "level": "error",
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "./bad"
                },
                "region": {
                  "endColumn": 14,
                  "endLine": 2,
                  "startColumn": 7,
                  "startLine": 2
                }
              }
            }
          ],
          "message": {
            "markdown": "`invalid` is disallowed"
          }
        },
        {
          "fixes": [
            {
              "artifactChanges": [
                {
                  "artifactLocation": {
                    "uri": "./bad"
                  },
                  "replacements": [
                    {
                      "deletedRegion": {
                        "endColumn": 16,
                        "endLine": 3,
                        "startColumn": 7,
                        "startLine": 3
                      },
                      "insertedContent": {
                        "text": "corrected"
                      }
                    }
                  ]
                }
              ],
              "description": {
                "markdown": "`incorrect` should be `corrected`"
              }
            }
          ],
          "level": "error",
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "./bad"
                },
                "region": {
                  "endColumn": 16,
                  "endLine": 3,
                  "startColumn": 7,
                  "startLine": 3
                }
              }
            }
          ],
          "message": {
            "markdown": "`incorrect` should be `corrected`"
          }
        },
        {
          "fixes": [
            {
              "artifactChanges": [
                {
                  "artifactLocation": {
                    "uri": "./bad"
                  },
                  "replacements": [
                    {
                      "deletedRegion": {
                        "endColumn": 16,
                        "endLine": 4,
                        "startColumn": 7,
                        "startLine": 4
                      },
                      "insertedContent": {
                        "text": "size"
                      }
                    }
                  ]
                }
              ],
              "description": {
                "markdown": "`different` should be `size`"
              }
            }
          ],
          "level": "error",
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "./bad"
                },
                "region": {
                  "endColumn": 16,
                  "endLine": 4,
                  "startColumn": 7,
                  "startLine": 4
                }
              }
            }
          ],
          "message": {
            "markdown": "`different` should be `size`"
          }
        },
        {
          "level": "error",
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "./some-incorrect-file"
                }
              }
            }
          ],
          "message": {
            "markdown": "`incorrect` should be `corrected`"
          }
        }
      ],
      "tool": {
        "driver": {
          "informationUri": "https://github.com/crate-ci/typos",
          "name": "typos"
        }
      }
    }
  ],
  "version": "2.1.0"
}'''
stderr = ""
