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",
|
2021-03-19 12:54:47 -05:00
|
|
|
"shared/featureconfig/config.go": "This config struct needs to be organized for now",
|
2020-04-02 22:09:15 -07:00
|
|
|
"proto/.*": "Excluding protobuf objects for now"
|
|
|
|
}
|
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",
|
2020-11-09 14:27:03 -06:00
|
|
|
"proto/.*": "Generated protobuf related code",
|
|
|
|
"tools/analyzers/properpermissions/testdata/.*": "Analyzer breaks rules"
|
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"
|
|
|
|
}
|
|
|
|
},
|
2021-05-24 12:55:42 +08: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 17:58:47 +03:00
|
|
|
"cryptorand": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
2020-10-02 19:32:21 +03:00
|
|
|
"slasher/.*": "",
|
2020-06-26 17:58:47 +03: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 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"
|
|
|
|
}
|
2020-09-14 12:49:15 +02: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 18:18:19 +02: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 18:14:34 +02: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 23:56:18 +03:00
|
|
|
},
|
|
|
|
"ineffassign": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"shared/.*": "",
|
|
|
|
"slasher/.*": "",
|
|
|
|
"validator/.*": ""
|
|
|
|
},
|
|
|
|
"exclude_files": {
|
|
|
|
}
|
2020-11-09 14:27:03 -06:00
|
|
|
},
|
|
|
|
"properpermissions": {
|
|
|
|
"only_files": {
|
|
|
|
"beacon-chain/.*": "",
|
|
|
|
"slasher/.*": "",
|
|
|
|
"shared/.*": "",
|
|
|
|
"validator/.*": ""
|
|
|
|
},
|
|
|
|
"exclude_files": {
|
|
|
|
".*_test\\.go": "Tests are ok",
|
|
|
|
"shared/fileutil/fileutil.go": "Package which defines the proper rules"
|
|
|
|
}
|
2019-04-21 10:14:34 -04:00
|
|
|
}
|
|
|
|
}
|