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
|
|
|
},
|
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/.*": "",
|
2020-10-02 16:32:21 +00:00
|
|
|
"slasher/.*": "",
|
2020-06-26 14:58:47 +00:00
|
|
|
"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
|
|
|
}
|
2020-08-21 16:48:27 +00: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"
|
|
|
|
}
|
2020-09-14 10:49:15 +00:00
|
|
|
},
|
|
|
|
"shadowpredecl": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"tools/analyzers/shadowpredecl/testdata/shadow.go": "Analyzer testdata has to break rules"
|
|
|
|
}
|
2020-09-17 16:18:19 +00:00
|
|
|
},
|
|
|
|
"nop": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"tools/analyzers/nop/testdata/no_op.go": "Analyzer testdata has to break rules"
|
|
|
|
}
|
2020-09-23 16:14:34 +00:00
|
|
|
},
|
|
|
|
"slicedirect": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"tools/analyzers/slicedirect/testdata/slice.go": "Analyzer testdata has to break rules"
|
|
|
|
}
|
2020-10-02 20:56:18 +00:00
|
|
|
},
|
|
|
|
"ineffassign": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
|
|
|
"slasher/.*": "",
|
|
|
|
"validator/.*": ""
|
|
|
|
},
|
|
|
|
"exclude_files": {
|
|
|
|
}
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
}
|