-
Notifications
You must be signed in to change notification settings - Fork 19
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
SonarQube integration #307
SonarQube integration #307
Conversation
@@ -162,15 +162,15 @@ format-ts-check: | |||
|
|||
.PHONY: lint-go-ops | |||
lint-go-ops: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use this opportunity to make these Makefile actions and CI workflows consistent across our projects (Solana, Cosmos, Starknet).
ce6aefb
to
8d99752
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, left a nit about name_is_regexp
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 | ||
with: | ||
name: golangci-lint-integration-tests-report | ||
path: ./integration-tests/golangci-lint-integration-tests-report.xml | ||
# Note: I could not figure out why the golangci-lint-action would not work even though it is technically running the same as above, error message is this: | ||
# Running [/home/runner/golangci-lint-1.50.1-linux-amd64/golangci-lint run --out-format=github-actions --path-prefix=integration-tests --exclude=dot-imports] in [/home/runner/work/chainlink-starknet/chainlink-starknet/integration-tests] ... | ||
# level=warning msg="[runner] Can't run linter goanalysis_metalinter: inspect: failed to load package client: could not load export data: no export data for \"github.com/smartcontractkit/chainlink-testing-framework/client\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The report is generated, take a look here
I believe the version of the linter, should be bumped to v1.51.1 # this version has an --out-format checkstyle necessary for Sonar
Ref: smartcontractkit/golangci-lint-action@54ab6c5
To test, you can try adding the unused variable to a go file analyzed by linter, eventually you should get a code smell in Sonar with label GOLANGCI-LINT
.
SonarQube Quality Gate |
No description provided.