Skip to content

Commit 7bf5c74

Browse files
authored
Merge branch 'develop' into test/settings-tests
2 parents 3a0b1a4 + 512e27d commit 7bf5c74

File tree

243 files changed

+3517
-5944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+3517
-5944
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ coverage.html
6363

6464
Session.vim
6565
.undodir/*
66-
/.idea/
66+
.idea/*
67+
!.idea/codeStyles/
6768
/.vscode/
6869
/cmd/*/.ethereum/
6970
*.iml

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ formatters:
6363
simplify: true
6464
goimports:
6565
local-prefixes:
66-
- github.com/ethereum/go-ethereum
6766
- github.com/status-im/status-go
68-
- github.com/waku-org/go-waku
6967
exclusions:
7068
generated: strict
7169
paths:

.idea/codeStyles/Project.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/settings.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
"go.formatFlags": [
3-
"-local",
4-
"github.com/ethereum/go-ethereum,github.com/status-im/status-go",
5-
"-w"
6-
],
72
"go.testTags": "gowaku_skip_migrations,gowaku_no_rln",
83
"cSpell.words": [
94
"unmarshalling"
105
],
6+
"gopls": {
7+
"formatting.local": "github.com/status-im/status-go"
8+
},
9+
// format all files on save if a formatter is available
10+
"editor.formatOnSave": true,
11+
// I use "goimports" instead of "gofmt"
12+
// because it does the same thing but also formats imports
13+
"go.formatTool": "goimports",
1114
}

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -309,19 +309,7 @@ clean-release:
309309
rm -rf $(RELEASE_DIR)
310310

311311
lint-fix:
312-
find . \
313-
-name '*.go' \
314-
-and -not -name '*.pb.go' \
315-
-and -not -name 'bindata*' \
316-
-and -not -name 'migrations.go' \
317-
-and -not -name 'messenger_handlers.go' \
318-
-and -not -name '*/mock/*' \
319-
-and -not -name 'mock.go' \
320-
-and -not -wholename '*/vendor/*' \
321-
-exec goimports \
322-
-local 'github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/status-im/markdown' \
323-
-w {} \;
324-
$(MAKE) vendor
312+
golangci-lint --build-tags '$(BUILD_TAGS)' run --fix ./...
325313

326314
docker-test: ##@tests Run tests in a docker container with golang.
327315
docker run --privileged --rm -it -v "$(PWD):$(DOCKER_TEST_WORKDIR)" -w "$(DOCKER_TEST_WORKDIR)" $(DOCKER_TEST_IMAGE) go test ${ARGS}

_assets/scripts/branch_version_generated.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
set -euo pipefail
44

55
# Get latest tag
6-
latest_tag=$(git describe --tags develop)
6+
latest_tag=$(git describe --tags)
7+
branch_name="generated/${latest_tag}"
78

89
# Create branch
9-
git checkout -b "generated/${latest_tag}"
10+
git checkout -b "${branch_name}"
1011

1112
# Un-gitignore generated files
1213
sed -i '' '/# generated files/,/^$/ s/^/#/' .gitignore
@@ -21,4 +22,4 @@ sed -i '' 's/-dirty$//' pkg/version/VERSION
2122
git add .gitignore
2223
git add .
2324
git commit -m "feat_: version ${latest_tag} with generated files included"
24-
git push origin
25+
git push origin "${branch_name}"

abi-spec/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"go.uber.org/zap"
1212

1313
"github.com/ethereum/go-ethereum/common"
14+
1415
gocommon "github.com/status-im/status-go/common"
1516
"github.com/status-im/status-go/crypto"
1617
"github.com/status-im/status-go/logutils"

accounts-management/keystore/adapter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/ethereum/go-ethereum/accounts"
1111
gethkeystore "github.com/ethereum/go-ethereum/accounts/keystore"
12+
1213
"github.com/status-im/status-go/accounts-management/keystore/internal/geth"
1314
"github.com/status-im/status-go/crypto"
1415
cryptotypes "github.com/status-im/status-go/crypto/types"

accounts-management/keystore/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
"github.com/ethereum/go-ethereum/accounts"
1010
"github.com/ethereum/go-ethereum/common"
11+
1112
"github.com/status-im/status-go/accounts-management/keystore/internal/geth"
1213
"github.com/status-im/status-go/accounts-management/types"
1314
cryptotypes "github.com/status-im/status-go/crypto/types"

0 commit comments

Comments
 (0)