2019-04-21 14:14:34 +00:00
|
|
|
{
|
|
|
|
"unsafeptr": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Unsafe third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"unreachable": {
|
|
|
|
"exclude_files": {
|
|
|
|
"shared/messagehandler/messagehandler_test.go": "Necessary panic before return for test",
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Unreachable third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
},
|
2019-04-21 20:49:57 +00:00
|
|
|
"lostcancel": {
|
|
|
|
"exclude_files": {
|
2020-07-02 17:50:05 +00:00
|
|
|
"validator/client/runner.go": "No need to cancel right when goroutines begin",
|
2020-06-03 19:22:48 +00:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 20:49:57 +00:00
|
|
|
}
|
|
|
|
},
|
2019-04-21 14:14:34 +00:00
|
|
|
"nilness": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
},
|
2020-06-01 22:03:33 +00:00
|
|
|
"pkgfact": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
|
|
|
}
|
|
|
|
},
|
2019-04-21 14:14:34 +00:00
|
|
|
"stdmethods": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
2020-06-26 14:58:47 +00:00
|
|
|
},
|
2019-04-21 14:14:34 +00:00
|
|
|
"copylocks": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"composites": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2020-06-03 19:22:48 +00:00
|
|
|
}
|
2020-06-26 14:58:47 +00:00
|
|
|
},
|
2019-04-21 14:14:34 +00:00
|
|
|
"cgocall": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2020-06-03 19:22:48 +00:00
|
|
|
}
|
2019-04-21 14:14:34 +00:00
|
|
|
},
|
|
|
|
"assign": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"structtag": {
|
|
|
|
"exclude_files": {
|
2019-07-22 14:39:37 +00:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
2020-04-03 05:09:15 +00:00
|
|
|
},
|
|
|
|
"maligned": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"shared/params/config.go": "This config struct needs to be organized for now",
|
|
|
|
"proto/.*": "Excluding protobuf objects for now"
|
|
|
|
}
|
2020-04-09 23:35:42 +00:00
|
|
|
},
|
|
|
|
"roughtime": {
|
|
|
|
"only_files": {
|
2020-06-26 14:58:47 +00:00
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
2020-04-09 23:35:42 +00:00
|
|
|
"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",
|
2020-05-20 15:23:22 +00:00
|
|
|
"shared/grpcutils/grpcutils\\.go": "Uses time.Now() for gRPC duration logging"
|
2020-04-09 23:35:42 +00:00
|
|
|
}
|
2020-04-13 04:11:09 +00:00
|
|
|
},
|
|
|
|
"errcheck": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"shared/mock/.*\\.go": "Mocks are OK",
|
|
|
|
".*/.*mock\\.go": "Mocks are OK",
|
2020-05-31 06:44:34 +00:00
|
|
|
".*/testmain\\.go": "Test runner generated code",
|
|
|
|
"proto/.*": "Generated protobuf related code"
|
2020-04-13 04:11:09 +00:00
|
|
|
}
|
2020-04-28 01:13:33 +00:00
|
|
|
},
|
|
|
|
"featureconfig": {
|
|
|
|
"only_files": {
|
2020-06-26 14:58:47 +00:00
|
|
|
".*_test\\.go": "Only tests"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"cryptorand": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
|
|
|
"validator/.*": ""
|
|
|
|
},
|
|
|
|
"exclude_files": {
|
|
|
|
".*/.*_test\\.go": "Tests are OK to use weak crypto",
|
|
|
|
"shared/rand/rand\\.go": "Abstracts CSPRNGs for common use",
|
2020-07-21 21:15:47 +00:00
|
|
|
"shared/aggregation/testing/bitlistutils.go": "Test-only package"
|
2020-04-28 01:13:33 +00:00
|
|
|
}
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
}
|