Skip to content

Commit ebae8fa

Browse files
authored
Merge branch 'master' into tictactoe
2 parents 1e1f9ad + 956c0dd commit ebae8fa

File tree

4,726 files changed

+210243
-81317
lines changed

Some content is hidden

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

4,726 files changed

+210243
-81317
lines changed

.dockerignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
.dockerignore
2-
build/
32
Dockerfile
3+
docker-compose.yml
4+
build/
45
misc/*
56
!misc/loop/
67
!misc/autocounterd/
7-
docker-compose.yml
88
tests/docker-integration/
9+
docs/
10+
.github/
11+
*.md
912

1013
# Copied from .gitignore
1114

.github/ISSUE_TEMPLATE/BUG-REPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Describe your issue in as much detail as possible here
1313

1414
### Your environment
1515

16-
* Go version (example: go1.22.4)
16+
* Go version (example: go1.23.6)
1717
* OS and CPU architecture (example: linux/amd64)
1818
* Gno commit hash causing the issue (example: f24690e7ebf325bffcfaf9e328c3df8e6b21e50c)
1919

@@ -37,4 +37,4 @@ Please paste any logs here that demonstrate the issue, if they exist
3737

3838
### Proposed solution
3939

40-
If you have an idea of how to fix this issue, please write it down here, so we can begin discussing it
40+
If you have an idea of how to fix this issue, please write it down here, so we can begin discussing it

.github/codecov.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@ coverage:
1010
round: down
1111
precision: 2
1212
status:
13-
project:
13+
patch: # new lines
1414
default:
15-
target: auto
16-
threshold: 5 # Let's decrease this later.
17-
base: parent
18-
if_no_uploads: error
19-
if_not_found: success
20-
if_ci_failed: error
21-
only_pulls: false
22-
patch:
23-
default:
24-
target: auto
25-
threshold: 5 # Let's decrease this later.
15+
target: 80
16+
threshold: 10
2617
base: auto
2718
if_no_uploads: error
2819
if_not_found: success

.github/dependabot.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
version: 2
22
updates:
3-
43
# Maintain dependencies for GitHub Actions
54
- package-ecosystem: "github-actions"
65
directory: "/"
76
schedule:
87
interval: "daily"
98
labels:
10-
- "github_actions"
9+
- "dependencies"
1110
groups:
1211
actions:
1312
patterns:
@@ -31,5 +30,3 @@ updates:
3130
open-pull-requests-limit: 10
3231
pull-request-branch-name:
3332
separator: "-"
34-
reviewers:
35-
- "moul"

.github/golangci.yml

Lines changed: 74 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1+
version: "2"
2+
13
run:
24
concurrency: 8
3-
timeout: 10m
4-
issue-exit-code: 1
5-
tests: true
6-
skip-dirs-use-default: true
5+
go: ""
76
modules-download-mode: readonly
7+
issues-exit-code: 1
8+
tests: true
89
allow-parallel-runners: false
9-
go: ""
10-
1110
output:
12-
uniq-by-line: false
1311
path-prefix: ""
14-
sort-results: true
15-
1612
linters:
17-
fast: false
18-
disable-all: true
13+
default: none
1914
enable:
2015
- whitespace # Tool for detection of leading and trailing whitespace
2116
- unconvert # Unnecessary type conversions
2217
- tparallel # Detects inappropriate usage of t.Parallel() method in your Go test codes
2318
- thelper # Detects golang test helpers without t.Helper() call and checks the consistency of test helpers
24-
- stylecheck # Stylecheck is a replacement for golint
2519
- prealloc # Finds slice declarations that could potentially be pre-allocated
2620
- predeclared # Finds code that shadows one of Go's predeclared identifiers
2721
- nolintlint # Ill-formed or insufficient nolint directives
@@ -30,62 +24,82 @@ linters:
3024
- importas # Enforces consistent import aliases
3125
- govet # same as 'go vet'
3226
- gosec # Security problems
33-
- gofmt # Whether the code was gofmt-ed
34-
- goimports # Unused imports
35-
- goconst # Repeated strings that could be replaced by a constant
3627
- dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f())
3728
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
3829
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13
39-
- gofumpt # Stricter gofmt
4030
- unused # Checks Go code for unused constants, variables, functions and types
4131
- gomodguard # Enforces an allow and block list for direct Go module dependencies
4232
- forbidigo # Forbids some custom-set identifiers, like regexp.MatchString
43-
44-
linters-settings:
45-
gofmt:
46-
simplify: true
47-
48-
goconst:
49-
min-len: 3
50-
min-occurrences: 3
51-
52-
gosec:
53-
excludes:
54-
- G204 # Subprocess launched with a potential tainted input or cmd arguments
55-
- G306 # Expect WriteFile permissions to be 0600 or less
56-
- G115 # Integer overflow conversion, no solution to check the overflow in time of convert, so linter shouldn't check the overflow.
57-
stylecheck:
58-
checks: [ "all", "-ST1022", "-ST1003" ]
59-
errorlint:
60-
asserts: false
61-
62-
gocritic:
63-
enabled-tags:
64-
- diagnostic
65-
- experimental
66-
- opinionated
67-
- performance
68-
- style
69-
70-
forbidigo:
71-
forbid:
72-
- p: '^regexp\.(Match|MatchString)$'
73-
msg: it will re-compile the regexp for each execution; compile the regexp with regexp.Compile and store it as a singleton
74-
33+
- staticcheck # well-known all-round linter
34+
settings:
35+
errorlint:
36+
asserts: false
37+
forbidigo:
38+
forbid:
39+
- pattern: ^regexp\.(Match|MatchString)$
40+
msg: it will re-compile the regexp for each execution; compile the regexp with regexp.Compile and store it as a singleton
41+
goconst:
42+
min-len: 3
43+
min-occurrences: 3
44+
gocritic:
45+
enabled-tags:
46+
- diagnostic
47+
- experimental
48+
- opinionated
49+
- performance
50+
- style
51+
gosec:
52+
excludes:
53+
- G204 # Subprocess launched with a potential tainted input or cmd arguments
54+
- G306 # Expect WriteFile permissions to be 0600 or less
55+
- G115 # Integer overflow conversion, no solution to check the overflow in time of convert, so linter shouldn't check the overflow.
56+
staticcheck:
57+
checks:
58+
- all
59+
- -ST1003 # Poorly chosen identifier.
60+
- -ST1022 # The documentation of an exported variable or constant should start with variable's name
61+
- -QF1001 # could apply De Morgan's law
62+
- -QF1008 # could remove embedded field "..." from selector
63+
exclusions:
64+
generated: lax
65+
presets:
66+
- comments
67+
- common-false-positives
68+
- legacy
69+
- std-error-handling
70+
rules:
71+
- linters:
72+
- gosec # Disabled linting of weak number generators
73+
- makezero # Disabled linting of intentional slice appends
74+
- goconst # Disabled linting of common mnemonics and test case strings
75+
- unused # Disabled linting of unused mock methods
76+
path: _test\.go
77+
- linters:
78+
- errorlint
79+
path: _\.gno
80+
- path: gnovm/pkg/gnolang
81+
text: string `(realm|cross|.no realm.|crossing)` has (\d+) occurrences, make it a constant
82+
paths:
83+
- third_party$
84+
- builtin$
85+
- examples$
7586
issues:
76-
whole-files: true
7787
max-issues-per-linter: 0
7888
max-same-issues: 0
89+
uniq-by-line: false
90+
whole-files: true
7991
new: false
8092
fix: false
81-
82-
exclude-rules:
83-
- path: _test\.go
84-
linters:
85-
- gosec # Disabled linting of weak number generators
86-
- makezero # Disabled linting of intentional slice appends
87-
- goconst # Disabled linting of common mnemonics and test case strings
88-
- unused # Disabled linting of unused mock methods
89-
- path: _\.gno
90-
linters:
91-
- errorlint # Disabled linting of error comparisons, because of lacking std lib support
93+
formatters:
94+
enable:
95+
- gofmt
96+
- goimports
97+
settings:
98+
gofmt:
99+
simplify: true
100+
exclusions:
101+
generated: lax
102+
paths:
103+
- third_party$
104+
- builtin$
105+
- examples$

0 commit comments

Comments
 (0)