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

Fix sarif_output() format when linting produces no results #1837

Merged
merged 2 commits into from
Dec 12, 2022

Conversation

pdil
Copy link
Contributor

@pdil pdil commented Dec 11, 2022

  • Ensure all sarif_output() generated files include results array even if linting results in no issues
  • results is required to be present in a SARIF file to be successfully uploaded to GitHub

fixes #1836

@codecov-commenter
Copy link

Codecov Report

Merging #1837 (b514c5f) into main (d4c484b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1837   +/-   ##
=======================================
  Coverage   98.85%   98.85%           
=======================================
  Files         112      112           
  Lines        4814     4816    +2     
=======================================
+ Hits         4759     4761    +2     
  Misses         55       55           
Impacted Files Coverage Δ
R/lint.R 96.73% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pdil pdil changed the title Fix sarif_output format when no linting produces no results Fix sarif_output() format when no linting produces no results Dec 11, 2022
@MichaelChirico
Copy link
Collaborator

thanks!!!

@IndrajeetPatil IndrajeetPatil merged commit becdbac into r-lib:main Dec 12, 2022
@pdil pdil changed the title Fix sarif_output() format when no linting produces no results Fix sarif_output() format when linting produces no results Dec 12, 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

Successfully merging this pull request may close these issues.

Invalid SARIF file created when there are no results
4 participants