You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yml
+38-15Lines changed: 38 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -19,32 +19,55 @@ linters:
19
19
- govet
20
20
- ineffassign
21
21
- misspell
22
-
# - staticcheck
23
22
- unconvert
24
-
# - unused
25
23
- varcheck
24
+
- typecheck
25
+
- unused
26
+
- staticcheck
27
+
- bidichk
28
+
- durationcheck
29
+
- exportloopref
30
+
- gosec
31
+
- whitespace
32
+
33
+
# - structcheck # lots of false positives
34
+
# - errcheck #lot of false positives
35
+
# - contextcheck
36
+
# - errchkjson # lots of false positives
37
+
# - errorlint # this check crashes
38
+
# - exhaustive # silly check
39
+
# - makezero # false positives
40
+
# - nilerr # several intentional
26
41
27
42
linters-settings:
28
43
gofmt:
29
44
simplify: true
30
45
goconst:
31
46
min-len: 3# minimum length of string constant
32
47
min-occurrences: 6# minimum number of occurrences
48
+
gosec:
49
+
excludes:
50
+
- G404# Use of weak random number generator - lots of FP
51
+
- G107# Potential http request -- those are intentional
52
+
- G306# G306: Expect WriteFile permissions to be 0600 or less
33
53
34
54
issues:
35
55
exclude-rules:
36
-
- path: crypto/blake2b/
37
-
linters:
38
-
- deadcode
39
-
- path: crypto/bn256/cloudflare
40
-
linters:
41
-
- deadcode
42
-
- path: p2p/discv5/
43
-
linters:
44
-
- deadcode
45
-
- path: core/vm/instructions_test.go
46
-
linters:
47
-
- goconst
48
-
- path: cmd/faucet/
56
+
- path: crypto/bn256/cloudflare/optate.go
49
57
linters:
50
58
- deadcode
59
+
- staticcheck
60
+
- path: internal/build/pgp.go
61
+
text: 'SA1019: package golang.org/x/crypto/openpgp is deprecated'
62
+
- path: core/vm/contracts.go
63
+
text: 'SA1019: package golang.org/x/crypto/ripemd160 is deprecated'
64
+
- path: accounts/usbwallet/trezor.go
65
+
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
66
+
- path: accounts/usbwallet/trezor/
67
+
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
68
+
exclude:
69
+
- 'SA1019: event.TypeMux is deprecated: use Feed'
70
+
- 'SA1019: strings.Title is deprecated'
71
+
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
72
+
- 'SA1029: should not use built-in type string as key for value'
73
+
- 'G306: Expect WriteFile permissions to be 0600 or less'
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ directory.
42
42
|`abigen`| Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://docs.soliditylang.org/en/develop/abi-spec.html) with expanded functionality if the contract bytecode is also available. However, it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://geth.ethereum.org/docs/dapp/native-bindings) page for details. |
43
43
|`bootnode`| Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
44
44
|`evm`| Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow isolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug run`). |
45
-
|`rlpdump`| Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://eth.wiki/en/fundamentals/rlp)) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user-friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
45
+
|`rlpdump`| Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp)) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user-friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
46
46
|`puppeth`| a CLI wizard that aids in creating a new Ethereum network. |
47
47
48
48
## Running `geth`
@@ -188,7 +188,7 @@ accessible from the outside.
188
188
189
189
As a developer, sooner rather than later you'll want to start interacting with `geth` and the
190
190
Ethereum network via your own programs and not manually through the console. To aid
191
-
this, `geth` has built-in support for a JSON-RPC based APIs ([standard APIs](https://eth.wiki/json-rpc/API)
191
+
this, `geth` has built-in support for a JSON-RPC based APIs ([standard APIs](https://ethereum.github.io/execution-apis/api-documentation/)
192
192
and [`geth` specific APIs](https://geth.ethereum.org/docs/rpc/server)).
193
193
These can be exposed via HTTP, WebSockets and IPC (UNIX sockets on UNIX based
194
194
platforms, and named pipes on Windows).
@@ -211,7 +211,7 @@ HTTP based JSON-RPC API options:
211
211
*`--ws.api` API's offered over the WS-RPC interface (default: `eth,net,web3`)
212
212
*`--ws.origins` Origins from which to accept websockets requests
213
213
*`--ipcdisable` Disable the IPC-RPC server
214
-
*`--ipcapi` API's offered over the IPC-RPC interface (default: `admin,debug,eth,miner,net,personal,shh,txpool,web3`)
214
+
*`--ipcapi` API's offered over the IPC-RPC interface (default: `admin,debug,eth,miner,net,personal,txpool,web3`)
215
215
*`--ipcpath` Filename for IPC socket/pipe within the datadir (explicit paths escape it)
216
216
217
217
You'll need to use your own programming environments' capabilities (libraries, tools, etc) to
@@ -297,7 +297,7 @@ $ bootnode --genkey=boot.key
297
297
$ bootnode --nodekey=boot.key
298
298
```
299
299
300
-
With the bootnode online, it will display an [`enode` URL](https://eth.wiki/en/fundamentals/enode-url-format)
300
+
With the bootnode online, it will display an [`enode` URL](https://ethereum.org/en/developers/docs/networking-layer/network-addresses/#enode)
301
301
that other nodes can use to connect to it and exchange peer information. Make sure to
302
302
replace the displayed IP address information (most probably `[::]`) with your externally
0 commit comments