-
Notifications
You must be signed in to change notification settings - Fork 4
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
17 changed files
with
61,936 additions
and
676 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
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,58 @@ | ||
# This file contains all available configuration options | ||
# with their default values. | ||
|
||
# Options for analysis running | ||
run: | ||
concurrency: 4 | ||
timeout: 10m | ||
issues-exit-code: 1 | ||
# Include test files or not, default is true | ||
tests: true | ||
|
||
# Output configuration options | ||
output: | ||
format: line-number | ||
|
||
# All available settings of specific linters | ||
linters-settings: | ||
misspell: | ||
locale: US | ||
ignore-words: | ||
- mitre | ||
unused: | ||
# Treat code as a program (not a library) and report unused exported identifiers | ||
check-exported: false | ||
|
||
linters: | ||
enable: | ||
- asciicheck | ||
- deadcode | ||
- dogsled | ||
- errorlint | ||
- exportloopref | ||
- goconst | ||
- golint | ||
- gosimple | ||
- ineffassign | ||
- megacheck | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
- staticcheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- varcheck | ||
- whitespace | ||
disable: | ||
- errcheck | ||
- govet | ||
disable-all: false | ||
fast: false | ||
|
||
issues: | ||
# Maximum issues count per one linter (set to 0 to disable) | ||
max-issues-per-linter: 0 | ||
|
||
# Maximum count of issues with the same text (set to 0 to disable) | ||
max-same-issues: 0 |
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,23 @@ | ||
language: go | ||
|
||
arch: | ||
- amd64 | ||
- ppc64le | ||
|
||
go: | ||
- 1.13.x | ||
- 1.14.x | ||
- 1.x | ||
- master | ||
|
||
before_install: | ||
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.35.0/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.0 | ||
|
||
script: | ||
- golangci-lint run | ||
- go test -v | ||
|
||
matrix: | ||
allow_failures: | ||
- go: master | ||
fast_finish: true |
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,22 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch tests", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "test", | ||
"program": "${workspaceFolder}", | ||
"env": { | ||
"WAZUH_URL": "https://localhost:55000", | ||
"WAZUH_USER": "wazuh", | ||
"WAZUH_PASSWORD": "wazuh", | ||
"WAZUH_INSECURE": true | ||
}, | ||
"args": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.