2019-04-21 10:14:34 -04:00
|
|
|
{
|
|
|
|
"unsafeptr": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Unsafe third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"unreachable": {
|
|
|
|
"exclude_files": {
|
|
|
|
"shared/messagehandler/messagehandler_test.go": "Necessary panic before return for test",
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Unreachable third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
},
|
2019-04-21 15:49:57 -05:00
|
|
|
"lostcancel": {
|
|
|
|
"exclude_files": {
|
2020-07-02 12:50:05 -05:00
|
|
|
"validator/client/runner.go": "No need to cancel right when goroutines begin",
|
2020-06-03 12:22:48 -07:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 15:49:57 -05:00
|
|
|
}
|
|
|
|
},
|
2019-04-21 10:14:34 -04:00
|
|
|
"nilness": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
},
|
2020-06-02 06:03:33 +08:00
|
|
|
"pkgfact": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code"
|
|
|
|
}
|
|
|
|
},
|
2019-04-21 10:14:34 -04:00
|
|
|
"stdmethods": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
2020-06-26 17:58:47 +03:00
|
|
|
},
|
2019-04-21 10:14:34 -04:00
|
|
|
"copylocks": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"composites": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2020-06-03 12:22:48 -07:00
|
|
|
}
|
2020-06-26 17:58:47 +03:00
|
|
|
},
|
2019-04-21 10:14:34 -04:00
|
|
|
"cgocall": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2020-06-03 12:22:48 -07:00
|
|
|
}
|
2019-04-21 10:14:34 -04:00
|
|
|
},
|
|
|
|
"assign": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"structtag": {
|
|
|
|
"exclude_files": {
|
2019-07-22 10:39:37 -04:00
|
|
|
"external/.*": "Third party code"
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
2020-04-02 22:09:15 -07: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 16:35:42 -07:00
|
|
|
},
|
|
|
|
"roughtime": {
|
|
|
|
"only_files": {
|
2020-06-26 17:58:47 +03:00
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
2020-04-09 16:35:42 -07: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 18:23:22 +03:00
|
|
|
"shared/grpcutils/grpcutils\\.go": "Uses time.Now() for gRPC duration logging"
|
2020-04-09 16:35:42 -07:00
|
|
|
}
|
2020-04-12 21:11:09 -07: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-30 23:44:34 -07:00
|
|
|
".*/testmain\\.go": "Test runner generated code",
|
|
|
|
"proto/.*": "Generated protobuf related code"
|
2020-04-12 21:11:09 -07:00
|
|
|
}
|
2020-04-27 18:13:33 -07:00
|
|
|
},
|
|
|
|
"featureconfig": {
|
|
|
|
"only_files": {
|
2020-06-26 17:58:47 +03: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 16:15:47 -05:00
|
|
|
"shared/aggregation/testing/bitlistutils.go": "Test-only package"
|
2020-04-27 18:13:33 -07:00
|
|
|
}
|
2020-08-21 18:48:27 +02:00
|
|
|
},
|
|
|
|
"comparesame": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"tools/analyzers/comparesame/testdata/compare_len.go": "Analyzer testdata has to break rules"
|
|
|
|
}
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
}
|