mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Add roughtime static code analysis and fix all violations (#5370)
* Add roughtime static code analysis and fix all violations * Merge branch 'master' into enforce-roughtime
This commit is contained in:
@@ -59,5 +59,21 @@
|
||||
"shared/params/config.go": "This config struct needs to be organized for now",
|
||||
"proto/.*": "Excluding protobuf objects for now"
|
||||
}
|
||||
},
|
||||
"roughtime": {
|
||||
"only_files": {
|
||||
"beacon-chain/.*": "",
|
||||
"shared/.*": "",
|
||||
"validator/.*": ""
|
||||
},
|
||||
"exclude_files": {
|
||||
".*/.*_test\\.go": "Tests are OK to use time.Now()",
|
||||
"shared/version/version\\.go": "Used for printing build time",
|
||||
"shared/roughtime/roughtime\\.go": "Required to bootstrap roughtime",
|
||||
"beacon-chain/blockchain/testing/*": "Test-only package",
|
||||
"beacon-chain/p2p/sender\\.go": "Libp2p uses time.Now and this file sets a time based deadline in such a way that roughtime cannot be used",
|
||||
"beacon-chain/sync/deadlines\\.go": "Libp2p uses time.Now and this file sets a time based deadline in such a way that roughtime cannot be used",
|
||||
"validator/client/grpc_interceptor\\.go": "Uses time.Now() for gRPC duration logging"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user