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

SonarQube integration #307

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

davidcauchi
Copy link
Contributor

No description provided.

@davidcauchi davidcauchi temporarily deployed to integration June 23, 2023 10:09 — with GitHub Actions Inactive
@davidcauchi davidcauchi temporarily deployed to integration June 23, 2023 11:34 — with GitHub Actions Inactive
@davidcauchi davidcauchi temporarily deployed to integration June 23, 2023 11:57 — with GitHub Actions Inactive
@davidcauchi davidcauchi temporarily deployed to integration June 23, 2023 12:11 — with GitHub Actions Inactive
@davidcauchi davidcauchi marked this pull request as ready for review June 23, 2023 14:27
jmank88
jmank88 previously approved these changes Jun 23, 2023
.github/workflows/relayer.yml Show resolved Hide resolved
.github/workflows/golangci-lint.yml Show resolved Hide resolved
.github/workflows/golangci-lint.yml Show resolved Hide resolved
.github/workflows/golangci-lint.yml Show resolved Hide resolved
.github/workflows/sonar-scan.yml Show resolved Hide resolved
@@ -162,15 +162,15 @@ format-ts-check:

.PHONY: lint-go-ops
lint-go-ops:
Copy link
Collaborator

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).

.github/workflows/sonar-scan.yml Show resolved Hide resolved
@smickovskid smickovskid force-pushed the chore/QA-1205-Add-chainlink-starknet-to-Sonar branch from ce6aefb to 8d99752 Compare September 5, 2023 09:50
@smickovskid smickovskid temporarily deployed to integration September 5, 2023 09:51 — with GitHub Actions Inactive
@smickovskid smickovskid temporarily deployed to integration September 5, 2023 09:51 — with GitHub Actions Inactive
@smickovskid smickovskid temporarily deployed to integration September 5, 2023 09:51 — with GitHub Actions Inactive
cfal
cfal previously approved these changes Sep 6, 2023
Copy link
Contributor

@cfal cfal left a 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

.github/workflows/sonar-scan.yml Show resolved Hide resolved
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\""
Copy link

@chudilka1 chudilka1 Sep 6, 2023

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. ⚠️ Better to test whether all the separately analyzed parts of the code produce the corresponding results in Sonar

image

@smickovskid smickovskid dismissed stale reviews from cfal and jmank88 via def262b September 11, 2023 13:26
@smickovskid smickovskid temporarily deployed to integration September 11, 2023 13:26 — with GitHub Actions Inactive
@smickovskid smickovskid temporarily deployed to integration September 11, 2023 13:26 — with GitHub Actions Inactive
@smickovskid smickovskid temporarily deployed to integration September 11, 2023 13:26 — with GitHub Actions Inactive
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@smickovskid smickovskid merged commit b8ec6b3 into develop Sep 11, 2023
15 of 19 checks passed
@smickovskid smickovskid deleted the chore/QA-1205-Add-chainlink-starknet-to-Sonar branch September 11, 2023 13:57
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.

6 participants