diff --git a/.drone.yml b/.drone.yml index 5fbabf0..045d1ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,14 +13,6 @@ steps: volumes: - name: gopath path: /go -- commands: - - make lint - image: golang:1.18 - name: lint - pull: always - volumes: - - name: gopath - path: /go - commands: - apk add git make curl perl bash build-base zlib-dev ucl-dev - make ssh-server diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index e4f9bec..0000000 --- a/.editorconfig +++ /dev/null @@ -1,42 +0,0 @@ -# unifying the coding style for different editors and IDEs => editorconfig.org - -; indicate this is the root of the project -root = true - -########################################################### -; common -########################################################### - -[*] -charset = utf-8 - -end_of_line = LF -insert_final_newline = true -trim_trailing_whitespace = true - -indent_style = space -indent_size = 2 - -########################################################### -; make -########################################################### - -[Makefile] -indent_style = tab - -[makefile] -indent_style = tab - -########################################################### -; markdown -########################################################### - -[*.md] -trim_trailing_whitespace = false - -########################################################### -; golang -########################################################### - -[*.go] -indent_style = tab \ No newline at end of file diff --git a/.revive.toml b/.revive.toml deleted file mode 100644 index 4294e25..0000000 --- a/.revive.toml +++ /dev/null @@ -1,30 +0,0 @@ -ignoreGeneratedHeader = false -severity = "warning" -confidence = 0.8 -errorCode = 1 -warningCode = 1 - -[rule.blank-imports] -[rule.context-as-argument] -[rule.context-keys-type] -[rule.dot-imports] -[rule.error-return] -[rule.error-strings] -[rule.error-naming] -[rule.exported] -[rule.if-return] -[rule.increment-decrement] -[rule.var-naming] -[rule.var-declaration] -[rule.package-comments] -[rule.range] -[rule.receiver-naming] -[rule.time-naming] -[rule.unexported-return] -[rule.indent-error-flow] -[rule.errorf] -[rule.empty-block] -[rule.superfluous-else] -[rule.unused-parameter] -[rule.unreachable-code] -[rule.redefines-builtin-id] diff --git a/Makefile b/Makefile index 1c29639..23e1a0d 100644 --- a/Makefile +++ b/Makefile @@ -36,12 +36,6 @@ fmt: vet: $(GO) vet ./... -lint: - @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) install github.com/mgechev/revive; \ - fi - revive -config .revive.toml ./... || exit 1 - .PHONY: fmt-check fmt-check: @hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ @@ -72,7 +66,7 @@ release-dirs: release-build: @which gox > /dev/null; if [ $$? -ne 0 ]; then \ - $(GO) install github.com/mitchellh/gox; \ + $(GO) install github.com/mitchellh/gox@master; \ fi gox -os="$(TARGETS)" -arch="$(ARCHS)" -tags="$(TAGS)" -ldflags="-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}" diff --git a/pipeline.libsonnet b/pipeline.libsonnet index 0d9a214..d584c3d 100644 --- a/pipeline.libsonnet +++ b/pipeline.libsonnet @@ -21,20 +21,6 @@ }, ], }, - { - name: 'lint', - image: 'golang:1.18', - pull: 'always', - commands: [ - 'make lint', - ], - volumes: [ - { - name: 'gopath', - path: '/go', - }, - ], - }, { name: 'test', image: 'golang:1.18-alpine',