This repository was archived by the owner on Oct 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Support outputing raw 'clippy' output into a file #159
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Do the checklist before filing an issue:
- Is this related to the
actions-rsActions?
If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community - You've read the Contributing section about feature requests: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#feature-requests
- Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
Motivation
Basically what the title said, I think it's nice to add support so that the raw output of cargo clippy is stored in a file
Workflow example
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clippy check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
output: clippy.json # this new attributeAdditional context
Currently I'm trying to integrate some rust projects with SonarQube action. It needs the clippy output to be parsed & sent into the server
jobs:
build:
runs-on: ubuntu-latest
steps:
# ...
- name: Code Analysis
uses: sonarsource/sonarqube-scan-action@master
with:
args: -Dsonar.rust.clippy.reportPaths=clippy.json # this is the `cargo clippy` outputCurrently I'm only able to do that by basically re-running the cargo clippy command & storing the output
build:
runs-on: ubuntu-latest
steps:
# ...
- name: Clippy check (file)
run: cargo clippy --message-format=json > clippy.jsonIt would be nice if this action could store the raw output somewhere. For the implementation I could think that a simple tee command could do the trick, like:
$ cargo clippy --message-format=json | tee clippy.jsonWould basically produce the same output as usual into stdout & also into a file clippy.json
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request