mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
ecfdb354a7
* test defined * first working impl * register analyzer * cleanup * removes unused code * secure rand in slasher/detection/testing * Updates test * fixes ineffassign type checks * one more Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
137 lines
3.4 KiB
JSON
137 lines
3.4 KiB
JSON
{
|
|
"unsafeptr": {
|
|
"exclude_files": {
|
|
"external/.*": "Unsafe third party code",
|
|
"rules_go_work-.*": "Third party code"
|
|
}
|
|
},
|
|
"unreachable": {
|
|
"exclude_files": {
|
|
"shared/messagehandler/messagehandler_test.go": "Necessary panic before return for test",
|
|
"external/.*": "Unreachable third party code"
|
|
}
|
|
},
|
|
"lostcancel": {
|
|
"exclude_files": {
|
|
"validator/client/runner.go": "No need to cancel right when goroutines begin",
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"nilness": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code",
|
|
"rules_go_work-.*": "Third party code"
|
|
}
|
|
},
|
|
"pkgfact": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code",
|
|
"rules_go_work-.*": "Third party code"
|
|
}
|
|
},
|
|
"stdmethods": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"copylocks": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"composites": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"cgocall": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"assign": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"structtag": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"errcheck": {
|
|
"exclude_files": {
|
|
"external/.*": "Third party code",
|
|
"rules_go_work-.*": "Third party code",
|
|
"shared/mock/.*\\.go": "Mocks are OK",
|
|
".*/.*mock\\.go": "Mocks are OK",
|
|
".*/testmain\\.go": "Test runner generated code",
|
|
"proto/.*": "Generated protobuf related code"
|
|
}
|
|
},
|
|
"featureconfig": {
|
|
"only_files": {
|
|
".*_test\\.go": "Only tests"
|
|
}
|
|
},
|
|
"cryptorand": {
|
|
"only_files": {
|
|
"beacon-chain/.*": "",
|
|
"shared/.*": "",
|
|
"slasher/.*": "",
|
|
"validator/.*": ""
|
|
},
|
|
"exclude_files": {
|
|
".*/.*_test\\.go": "Tests are OK to use weak crypto",
|
|
"shared/rand/rand\\.go": "Abstracts CSPRNGs for common use",
|
|
"shared/aggregation/testing/bitlistutils.go": "Test-only package"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"ineffassign": {
|
|
"only_files": {
|
|
"beacon-chain/.*": "",
|
|
"shared/.*": "",
|
|
"slasher/.*": "",
|
|
"validator/.*": ""
|
|
},
|
|
"exclude_files": {
|
|
}
|
|
}
|
|
}
|