Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
312088d
Create sonarqube.yml
alessio Jul 19, 2024
bb4dcb3
fix imports
alessio Jul 22, 2024
4f9bf6b
fix imports (#26)
alessio Jul 22, 2024
a6eeed4
remove sonarqube config file
alessio Jul 22, 2024
68ac4ee
Update build.yaml
alessio Jul 22, 2024
c769a1d
Update build.yaml (#27)
alessio Jul 22, 2024
aaff7ce
update readme to use the new vanity name
alessio Oct 8, 2024
eee5f61
upgrade playground example's URL
alessio Oct 8, 2024
5ab9730
update ci
alessio Oct 8, 2024
99de0d7
update ci (#29)
alessio Oct 8, 2024
b806b6d
Fix ExampleQuoteCommand
alexandear Nov 8, 2024
8530651
README: fix typo
alexandear Nov 8, 2024
09834c4
Add automatic update of GitHub actions
ccoVeille Nov 12, 2024
8b9bd7a
Bring CI to 2024
ccoVeille Nov 12, 2024
3e232a2
fix enabled golangci-lint linters
ccoVeille Nov 12, 2024
8e8fb6e
Remove exclusion added years ago
ccoVeille Nov 12, 2024
deb6eba
enable golangci-lint on test files
ccoVeille Nov 12, 2024
8303ffc
Enable thelper linter via golangci-lint
ccoVeille Nov 12, 2024
075e7a7
Enable gci linter via golangci-lint
ccoVeille Nov 12, 2024
c50b029
Bump golangci/golangci-lint-action from 6.1.0 to 6.2.0
dependabot[bot] Jan 27, 2025
2a32434
Bump actions/dependency-review-action from 4.4.0 to 4.5.0
dependabot[bot] Jan 27, 2025
7aab5d1
Bump codecov/codecov-action from 4.6.0 to 5.3.1
dependabot[bot] Jan 27, 2025
76f60b2
Bump golangci/golangci-lint-action from 6.2.0 to 6.5.0
dependabot[bot] Feb 17, 2025
71d039a
Update codacy.yml (#39)
alessio Feb 24, 2025
fae07db
Update build.yaml (#40)
alessio Feb 24, 2025
0412734
Update golangci-lint.yml
alessio Feb 24, 2025
bcfa082
Update dependency-review.yml
alessio Feb 25, 2025
3ec9419
Update CODE_OF_CONDUCT.md (#44)
alessio Feb 25, 2025
f80079b
Update README.md (#45)
alessio Feb 25, 2025
7949e0b
Refresh Go toolchain (#46)
alessio Feb 25, 2025
9101d21
shellescape: new ScanTokens function (#47)
alessio Feb 25, 2025
0fa0bf8
add CODECOV_TOKEN
alessio Feb 25, 2025
26fa1b3
Update README.md
alessio Feb 25, 2025
5246baf
Bump golangci/golangci-lint-action from 6 to 7
dependabot[bot] Mar 31, 2025
6f839d7
Update README.md
alessio Apr 1, 2025
cf9b62c
Revert "Bump golangci/golangci-lint-action from 6 to 7"
alessio Apr 1, 2025
beefadb
run golangci-lint migrate
alessio Apr 2, 2025
fa391eb
Bump golangci/golangci-lint-action from 6 to 7
dependabot[bot] Mar 31, 2025
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
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"

# Maintain dependencies for GitHub Actions
# These would open PR, these PR would be tested with the CI
# They will have to be merged manually by a maintainer
- package-ecosystem: github-actions
directory: /
open-pull-requests-limit: 10 # avoid spam, if no one reacts
schedule:
interval: weekly
time: '11:00'
23 changes: 16 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,28 @@
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x, 1.24.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -cover -covermode=atomic -coverprofile=coverage.out ./...
- uses: codecov/codecov-action@v1
run: go test -race ./...

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Coverage
run: go test -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@v5
Comment thread Dismissed
with:
file: ./coverage.out
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
- name: Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@v4
Comment thread Dismissed
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
Expand All @@ -55,6 +55,6 @@

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
8 changes: 4 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
- name: Checkout
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v4
18 changes: 10 additions & 8 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: checkout-action
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
go-version: 'stable'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
uses: golangci/golangci-lint-action@v7

Check warning

Code scanning / Semgrep (reported by Codacy)

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Warning

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
# with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.55
# version: v1.62

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand All @@ -30,5 +32,5 @@
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: false
only-new-issues: false

6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v6
Comment thread Dismissed
with:
distribution: goreleaser
version: latest
Expand Down
93 changes: 51 additions & 42 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,68 @@
# run:
# # timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m

version: "2"
linters:
disable-all: true
default: none
enable:
- bodyclose
- copyloopvar
- dogsled
- goconst
- gocritic
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- prealloc
- exportloopref
- revive
- staticcheck
- stylecheck
- typecheck
- thelper
- unconvert
- unparam
- unused
- misspell
- wsl

issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "comment on exported var"
linters:
- golint
- text: "don't use an underscore in package name"
linters:
- golint
- text: "ST1003:"
linters:
- stylecheck
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
# https://github.com/dominikh/go-tools/issues/389
- text: "ST1016:"
linters:
- stylecheck

linters-settings:
dogsled:
max-blank-identifiers: 3
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true

run:
tests: false
settings:
dogsled:
max-blank-identifiers: 3
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
text: Use of weak random number generator
- linters:
- golint
text: comment on exported var
- linters:
- golint
text: don't use an underscore in package name
- linters:
- staticcheck
text: 'ST1003:'
- linters:
- wsl
path: _test.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- goimports
settings:
gci:
sections:
- standard
- default
- localmodule
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading
Loading