-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #186 Working tests * #186 Savepoint * #186 Savepoint * 186 Working test and lint * #186 Working test, lint, and coverage * #186 Working test, lint, and coverage * #186 Working test, lint, and coverage * #186 Prepare for versioned release * #186 Prepare for versioned release * #186 Prepare for versioned release * #186 Prepare for versioned release
- Loading branch information
Showing
49 changed files
with
4,483 additions
and
1,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
quiet: true | ||
skip-check: | ||
- CKV_DOCKER_7 | ||
- CKV_OPENAPI_4 | ||
- CKV_OPENAPI_5 | ||
- CKV_OPENAPI_21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
run: | ||
modules-download-mode: readonly | ||
show-stats: true | ||
|
||
output: | ||
print-linter-name: false | ||
sort-results: true | ||
|
||
linters: | ||
enable: | ||
# List generated from: https://golangci-lint.run/usage/linters/ | ||
# We are enabling all defaults as well as any bug/security related | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- contextcheck | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errorlint | ||
- exhaustive | ||
- exportloopref | ||
- gocheckcompilerdirectives | ||
- gochecksumtype | ||
- gocritic | ||
- gofmt | ||
- gosec | ||
- gosimple | ||
- gosmopolitan | ||
- govet | ||
- ineffassign | ||
- loggercheck | ||
- makezero | ||
- musttag | ||
- nilerr | ||
- noctx | ||
- protogetter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- spancheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- testifylint | ||
- unused | ||
- zerologlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ignore": [ | ||
"**/*.go,**/go-test*.yaml" | ||
], | ||
"threshold": 20 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
branches-ignore: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
# Required: allow read access to the content for analysis. | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Senzing API | ||
uses: senzing-factory/github-action-install-senzing-api@v3 | ||
with: | ||
senzingapi-runtime-version: staging-v4 | ||
|
||
- name: Copy Senzing headers | ||
run: | | ||
mkdir --parents ./szconfig/gohelpers | ||
cp /opt/senzing/g2/sdk/c/*.h ./szconfig/ | ||
cp /opt/senzing/g2/sdk/c/gohelpers/*.h ./szconfig/gohelpers | ||
mkdir --parents ./szconfigmanager/gohelpers | ||
cp /opt/senzing/g2/sdk/c/*.h ./szconfigmanager/ | ||
cp /opt/senzing/g2/sdk/c/gohelpers/*.h ./szconfigmanager/gohelpers | ||
mkdir --parents ./szdiagnostic/gohelpers | ||
cp /opt/senzing/g2/sdk/c/*.h ./szdiagnostic/ | ||
cp /opt/senzing/g2/sdk/c/gohelpers/*.h ./szdiagnostic/gohelpers | ||
mkdir --parents ./szengine/gohelpers | ||
cp /opt/senzing/g2/sdk/c/*.h ./szengine/ | ||
cp /opt/senzing/g2/sdk/c/gohelpers/*.h ./szengine/gohelpers | ||
mkdir --parents ./szproduct/gohelpers | ||
cp /opt/senzing/g2/sdk/c/*.h ./szproduct/ | ||
cp /opt/senzing/g2/sdk/c/gohelpers/*.h ./szproduct/gohelpers | ||
- name: setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
args: --config=${{ github.workspace }}/.github/linters/.golangci.yml | ||
only-new-issues: false | ||
version: latest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ go.work | |
# Makefile | ||
target/ | ||
.coverage | ||
coverage.html |
Oops, something went wrong.