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": {
|
2021-09-17 19:20:50 +00:00
|
|
|
"runtime/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",
|
2021-09-21 19:59:25 +00:00
|
|
|
"config/params/config.go": "This config struct needs to be organized for now",
|
2021-03-19 17:54:47 +00:00
|
|
|
"shared/featureconfig/config.go": "This config struct needs to be organized for now",
|
2020-04-03 05:09:15 +00:00
|
|
|
"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",
|
2020-11-09 20:27:03 +00:00
|
|
|
"proto/.*": "Generated protobuf related code",
|
|
|
|
"tools/analyzers/properpermissions/testdata/.*": "Analyzer breaks rules"
|
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"
|
|
|
|
}
|
|
|
|
},
|
2021-05-24 04:55:42 +00:00
|
|
|
"interfacechecker": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
".*/.*_test\\.go": "Tests are OK to ignore this check for"
|
|
|
|
}
|
|
|
|
},
|
2020-06-26 14:58:47 +00:00
|
|
|
"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",
|
2021-09-15 22:55:11 +00:00
|
|
|
"crypto/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
|
|
|
},
|
2022-01-14 09:12:21 +00:00
|
|
|
"recursivelock": {
|
|
|
|
"exclude_files": {
|
|
|
|
"external/.*": "Third party code",
|
|
|
|
"rules_go_work-.*": "Third party code",
|
|
|
|
"tools/analyzers/recursivelock/testdata/.*": "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": {
|
2022-01-27 08:42:32 +00:00
|
|
|
"beacon-chain/state/state-native/v1/generated.ssz.go": "Exclude generated SSZ file",
|
2022-02-01 00:32:39 +00:00
|
|
|
"beacon-chain/state/state-native/v2/generated.ssz.go": "Exclude generated SSZ file",
|
|
|
|
"beacon-chain/state/state-native/v3/generated.ssz.go": "Exclude generated SSZ file"
|
2020-10-02 20:56:18 +00:00
|
|
|
}
|
2020-11-09 20:27:03 +00:00
|
|
|
},
|
|
|
|
"properpermissions": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"slasher/.*": "",
|
|
|
|
"shared/.*": "",
|
|
|
|
"validator/.*": ""
|
|
|
|
},
|
|
|
|
"exclude_files": {
|
|
|
|
".*_test\\.go": "Tests are ok",
|
2021-09-17 21:55:24 +00:00
|
|
|
"io/file/fileutil.go": "Package which defines the proper rules"
|
2020-11-09 20:27:03 +00:00
|
|
|
}
|
2019-04-21 14:14:34 +00:00
|
|
|
}
|
|
|
|
}
|