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

Request for a new release of ESLint.Formatter #2452

Closed
Yiwei-Ding opened this issue Feb 14, 2022 · 8 comments
Closed

Request for a new release of ESLint.Formatter #2452

Yiwei-Ding opened this issue Feb 14, 2022 · 8 comments

Comments

@Yiwei-Ding
Copy link
Contributor

Since #2435 had been merged in, could we have a new release of ESLint.Formatter so that we can leverage the new feature?

@eddynaka
Copy link
Collaborator

Hi @Yiwei-Ding , we are working on some improvements for the formatter as well:
#2444

Once we merge that, we will probably release it.

@EasyRhinoMSFT @yongyan-gh

@Yiwei-Ding
Copy link
Contributor Author

Still waiting for #2458

@yongyan-gh
Copy link
Collaborator

#2458 was merged today

@eddynaka
Copy link
Collaborator

eddynaka commented Mar 2, 2022

Hi @Yiwei-Ding ,

we just released:
https://www.npmjs.com/package/@microsoft/eslint-formatter-sarif

Let us know if you face any problems.
Thank you!

@eddynaka eddynaka closed this as completed Mar 2, 2022
@yongyan-gh
Copy link
Collaborator

I got below errors in the workflow using ESLint + latest SARIF formatter
The link to the failed workflow https://github.com/yongyan-gh/vscode-custom-data/actions/runs/1924302121
and sarif log file generated: https://github.com/yongyan-gh/vscode-custom-data/suites/5511324619/artifacts/176574998

Run github/codeql-action/upload-sarif@v1
  with:
    sarif_file: eslint.sarif
    checkout_path: /home/runner/work/vscode-custom-data/vscode-custom-data
    token: ***
    matrix: null
    wait-for-processing: false
Uploading results
  Processing sarif files: ["eslint.sarif"]
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[0] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[1] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[[2](https://github.com/yongyan-gh/vscode-custom-data/runs/5397308005?check_suite_focus=true#step:5:2)] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[[3](https://github.com/yongyan-gh/vscode-custom-data/runs/5397308005?check_suite_focus=true#step:5:3)] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[[4](https://github.com/yongyan-gh/vscode-custom-data/runs/5397308005?check_suite_focus=true#step:5:4)] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[[5](https://github.com/yongyan-gh/vscode-custom-data/runs/5397308005?check_suite_focus=true#step:5:5)] additionalProperty "suppressions" exists in instance when not allowed
Error details: instance.runs[0].invocations[0].toolConfigurationNotifications[[6](https://github.com/yongyan-gh/vscode-custom-data/runs/5397308005?check_suite_focus=true#step:5:6)] additionalProperty "suppressions" exists in instance when not allowed
Error: Unable to upload "eslint.sarif" as it is not valid SARIF:
- instance.runs[0].invocations[0].toolConfigurationNotifications[0] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[1] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[2] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[3] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[4] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[5] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[6] additionalProperty "suppressions" exists in instance when not allowed
Error: Unable to upload "eslint.sarif" as it is not valid SARIF:
- instance.runs[0].invocations[0].toolConfigurationNotifications[0] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[1] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[2] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[3] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[4] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[5] additionalProperty "suppressions" exists in instance when not allowed
- instance.runs[0].invocations[0].toolConfigurationNotifications[6] additionalProperty "suppressions" exists in instance when not allowed

@yongyan-gh yongyan-gh reopened this Mar 2, 2022
@yongyan-gh
Copy link
Collaborator

Looks like the issue is because the suppressions property added to invocations.toolConfigurationNotifications is not a valid property

      "invocations": [
        {
          "toolConfigurationNotifications": [
            {
              "level": "error",
              "message": {
                "text": "Parsing error: 'import' and 'export' may appear only with 'sourceType: module'"
              },
              "locations": [
                {
                  "physicalLocation": {
                    "artifactLocation": {
                      "uri": "file:///home/runner/work/vscode-custom-data/vscode-custom-data/samples/svg/build/index.ts",
                      "index": 1
                    },
                    "region": {
                      "startLine": 1,
                      "startColumn": 1
                    }
                  }
                }
              ],
              "descriptor": {
                "id": "ESL0999"
              },
              "suppressions": []
            },

@yongyan-gh
Copy link
Collaborator

Have a fix #2464 please review

@eddynaka
Copy link
Collaborator

eddynaka commented Mar 7, 2022

Hi @Yiwei-Ding ,

we just released:
https://www.npmjs.com/package/@microsoft/eslint-formatter-sarif

Let us know if you face any problems.
Thank you!

@eddynaka eddynaka closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants