Skip to content

Commit

Permalink
initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
czeumer committed Jan 15, 2021
1 parent e448db6 commit da8686a
Show file tree
Hide file tree
Showing 17 changed files with 61,936 additions and 676 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
58 changes: 58 additions & 0 deletions .golangci.yml
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
23 changes: 23 additions & 0 deletions .travis.yml
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
22 changes: 22 additions & 0 deletions .vscode/launch.json
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": []
}
]
}
Loading

0 comments on commit da8686a

Please sign in to comment.