Skip to content

Commit

Permalink
Publish release v2.122.30
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii427 committed Apr 10, 2023
1 parent ea5d439 commit 5fca48d
Show file tree
Hide file tree
Showing 85 changed files with 2,722 additions and 2,939 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
*.dll
*.so
*.dylib
.idea
.idea/
bin/
datadir/
ssl/
logs/

# helper file for docker build process
.gittag

# Test binary, built with `go test -c`
*.test
Expand Down
76 changes: 76 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
service:
golangci-lint-version: 1.52.x

# full list: https://golangci-lint.run/usage/linters/
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- bodyclose
- containedctx
- contextcheck
- decorder
- dupl
- goconst
- gocritic
- gofmt
- goimports
- gosec
- noctx
- nolintlint
- prealloc
- revive
- stylecheck
- unconvert
- usestdlibvars

# full list: https://golangci-lint.run/usage/configuration/
linters-settings:
staticcheck:
checks: [ "all" ]
stylecheck:
# ignore package comment and naming recommendations
checks: [ "all", "-ST1000", "-ST1003", "-ST10016"]
errcheck:
check-blank: true
govet:
check-shadowing: true

issues:
new: true
new-from-rev: origin/develop

# Validates whole file instead of changed lines only, but produces many errors
# on large files. We might consider enabling this flag to start improving the
# source code file by file. Also, with `whole-files` turned off validators don't
# check unchanged lines, even if the change leaded to an issue in other place.
whole-files: false

exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
- govet
- gomnd
- bodyclose
- ineffassign

include:
- EXC0011
- EXC0012
- EXC0014

run:
go: "1.19"
skip-files:
- ".*\\.pb\\.go$" # skip protobuf generated code

output:
format: tab
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG GO_VERSION=alpine
ARG BASE=golang:1.18-alpine
ARG BASE=golang:1.19-alpine

FROM ${BASE} as builder

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
VERSION ?= $(shell git describe --tags --always --dirty --match=v2* 2> /dev/null || \
VERSION ?= $(shell git describe --tags --always --dirty --match='v2*' 2> /dev/null || \
cat .gittag || \
sed '5!d' $(CURDIR)/version/version.go | grep -o '".*"' | sed 's/"//g' 2> /dev/null || echo v2.1.1.2)
PKGS = $(or $(PKG),$(shell env GO111MODULE=on $(GO) list ./...))
Expand Down Expand Up @@ -79,7 +79,7 @@ test-coverage: fmt lint test-coverage-tools ; $(info $(M) running coverage tests
$Q $(GO) tool cover -html=$(COVERAGE_PROFILE) -o $(COVERAGE_HTML)
$Q $(GOCOV) convert $(COVERAGE_PROFILE) | $(GOCOVXML) > $(COVERAGE_XML)

GOLANGCI_VERSION=v1.49.0
GOLANGCI_VERSION=v1.52.2
GOLANGCI_REV=8cdecc968bf7b87ce85e09e42cabb3e3540e9344

.PHONY: lint
Expand Down
223 changes: 0 additions & 223 deletions blockchain/beacon/block.go

This file was deleted.

Loading

0 comments on commit 5fca48d

Please sign in to comment.