-
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.
- Loading branch information
Showing
11 changed files
with
80 additions
and
46 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,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/er/sdk/c/*.h ./szconfig/ | ||
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szconfig/gohelpers | ||
mkdir --parents ./szconfigmanager/gohelpers | ||
cp /opt/senzing/er/sdk/c/*.h ./szconfigmanager/ | ||
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szconfigmanager/gohelpers | ||
mkdir --parents ./szdiagnostic/gohelpers | ||
cp /opt/senzing/er/sdk/c/*.h ./szdiagnostic/ | ||
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szdiagnostic/gohelpers | ||
mkdir --parents ./szengine/gohelpers | ||
cp /opt/senzing/er/sdk/c/*.h ./szengine/ | ||
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szengine/gohelpers | ||
mkdir --parents ./szproduct/gohelpers | ||
cp /opt/senzing/er/sdk/c/*.h ./szproduct/ | ||
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szproduct/gohelpers | ||
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Perform linting | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
args: --config=${{ github.workspace }}/.github/linters/.golangci.yaml | ||
only-new-issues: false | ||
version: latest |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
The cmd package is used for Cobra integration. | ||
Package cmd is used for Cobra and Viper integration. | ||
*/ | ||
package cmd |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
One or two sentence synopsys of the module. The Senzing XXXX module is... | ||
Module explain is the implementation of the "senzing-tools explain" command. | ||
*/ | ||
package main |
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 |
---|---|---|
@@ -1,40 +1,4 @@ | ||
/* | ||
One or two sentence synopsis of the package... | ||
# Overview | ||
One or two paragraph overview of the package... | ||
(This page describes the nature of the individual package.) | ||
More information at https://github.com/senzing-garage/explain | ||
# Another Header | ||
Details of the package... | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit... | ||
# Examples | ||
The examples given here should be specific to the package. | ||
Examples of use can be seen in the examplepackage_test.go files. | ||
package main | ||
import ( | ||
fmt | ||
"github.com/senzing-garage/explain/examplepackage" | ||
) | ||
func main() { | ||
ctx := context.TODO() | ||
testObject := &ExamplePackageImpl{ | ||
Something: "I'm here", | ||
} | ||
err := testObject.SaySomething(ctx) | ||
if err != nil { | ||
fmt.Println("whoops") | ||
} | ||
} | ||
Package explainer implements the "explainer" command. | ||
*/ | ||
package explainer |
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
Empty file.
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Return codes. | ||
|
||
OK=0 | ||
NOT_OK=1 | ||
|
||
# Tests. | ||
|
||
echo "Doing testing." | ||
|
||
exit ${OK} |
File renamed without changes.