Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,30 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.1.6
version: v2.4.0

- name: Build
run: go build ./...

- name: Test
run: make test

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: https://sonarqube.collibra.dev
with:
args: >
-Dsonar.pullrequest.github.repository=collibra/go-set

- name: SonarQube Quality Gate
uses: sonarsource/sonarqube-quality-gate-action@v1.1.0
timeout-minutes: 10
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: https://sonarqube.collibra.dev
# - name: SonarQube Scan
# uses: sonarsource/sonarqube-scan-action@v4
# env:
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
# SONAR_HOST_URL: https://sonarqube.collibra.dev
# with:
# args: >
# -Dsonar.pullrequest.github.repository=collibra/go-set
#
# - name: SonarQube Quality Gate
# uses: sonarsource/sonarqube-quality-gate-action@v1.1.0
# timeout-minutes: 10
# continue-on-error: true
# env:
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
# SONAR_HOST_URL: https://sonarqube.collibra.dev

- name: FOSSA Scan
uses: fossas/fossa-action@v1
Expand Down
12 changes: 8 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ linters:
- unparam
- unused
- whitespace
- wsl
- wsl_v5
settings:
cyclop:
max-complexity: 20
Expand Down Expand Up @@ -102,9 +102,13 @@ linters:
- .WithMessagef(
- .WithStack(
- go-multierror.Append(
wsl:
allow-assign-and-anything: true
allow-cuddle-declarations: true
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
disable:
- assign
- decl
exclusions:
generated: lax
presets:
Expand Down