Skip to content

Commit

Permalink
Merge pull request #9 from avarabyeu/agent
Browse files Browse the repository at this point in the history
Local Reporting Agent
  • Loading branch information
avarabyeu authored Apr 3, 2019
2 parents f8536a0 + 426fd76 commit 9aadc91
Show file tree
Hide file tree
Showing 25 changed files with 1,173 additions and 360 deletions.
55 changes: 55 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.8
gocyclo:
min-complexity: 10
max-complexity: 12
maligned:
suggest-new: true
dupl:
threshold: 150
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
lll:
line-length: 140
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc
- commentFormatting

linters:
enable-all: true
disable:
- maligned
- prealloc
- gochecknoglobals
- goimports

#run:
# skip-dirs:
# - test/testdata_etc

issues:
exclude-use-default: false
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.15.x # use the fixed version to not introduce new linters unexpectedly
# prepare:
# - echo "here I can run custom commands, but no preparation needed for this repo"
25 changes: 25 additions & 0 deletions .realize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
settings:
server:
status: true
open: false
host: localhost
port: 5001
schema:
- name: agent
path: agent
commands:
install:
status: false
build:
status: false
run:
status: true
# method: dlv debug -l=localhost:35173 --headless=true --api-version=2 --backend=default
watcher:
paths:
- /
ignore_paths:
- vendor
extensions:
- go

9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
sudo: false
language: go
go:
- "1.10"
- "1.12.x"

env:
- GO111MODULE=on

before_script:
- make init-deps vendor
- make init-deps

script:
- make build
- make checkstyle build

after_success:
- curl --request POST "https://goreportcard.com/checks" --data "repo=github.com/avarabyeu/goRP"
230 changes: 0 additions & 230 deletions Gopkg.lock

This file was deleted.

55 changes: 0 additions & 55 deletions Gopkg.toml

This file was deleted.

Loading

0 comments on commit 9aadc91

Please sign in to comment.