aboutsummaryrefslogtreecommitdiffstats
path: root/defererr.go
AgeCommit message (Expand)Author
2023-05-26Add license (GNU GPLv3+)v0.0.1Teddy Wing
2023-05-26Add package documentationTeddy Wing
2023-05-26functionState: Format fields after doc comment additionTeddy Wing
2023-05-25Add more detail to the explanation of how the analyser worksTeddy Wing
2023-05-25checkErrorAssignedInDefer: Remove obsolete TODOTeddy Wing
2023-05-25Report missing signature declaration with multiple return valuesTeddy Wing
2023-05-25Add identifier documentation commentsTeddy Wing
2023-05-25newFunctionState: Return value instead of pointerTeddy Wing
2023-05-25checkFunctions: Move function body `ast.Inspect` to named functionTeddy Wing
2023-05-25checkFunctions: Keep `continue` in return value loopTeddy Wing
2023-05-25Add note to check ident condition in return signature list loopTeddy Wing
2023-05-25checkFunctions: Start cleaning up this functionTeddy Wing
2023-05-24Change `isFirstErrorDeferEndPosSet()` to `deferAssignsError()`Teddy Wing
2023-05-24Fix name of `isfirstErrorDeferEndPosSet`Teddy Wing
2023-05-24Fix logic of `isfirstErrorDeferEndPosSet`Teddy Wing
2023-05-24Clean up `checkFunctionReturns()` functionTeddy Wing
2023-05-23Extract `return` handling to functionTeddy Wing
2023-05-22Clean up `checkErrorAssignedInDefer()` functionTeddy Wing
2023-05-21Report function signature declaration using variable name other than errTeddy Wing
2023-05-21Check whether `return` uses error variable set in `defer`Teddy Wing
2023-05-21Check whether returned name matches defer error nameTeddy Wing
2023-05-21Inspect return value looking at type and nameTeddy Wing
2023-05-21Get type information from `return` statement valuesTeddy Wing
2023-05-21Explore inspecting `return` statements for error valuesTeddy Wing
2023-05-21Add skeleton for checking `return` statements after `defer` closuresTeddy Wing
2023-05-21Correctly `setFirstErrorDeferEndPos` for `doesDeclareErrInSignature`Teddy Wing
2023-05-21Working out why doesDeclareErrInSignature doesn't get far in assign loopTeddy Wing
2023-05-21Print the current function for easier debuggingTeddy Wing
2023-05-21Try to store the end position of the first defer closure with errorTeddy Wing
2023-05-21Update `firstDeferEndPos` nameTeddy Wing
2023-05-21Add ideas for checking `return`sTeddy Wing
2023-05-21Idea for checking `return`sTeddy Wing
2023-05-21Next step to check usage of error variable in returnTeddy Wing
2023-05-21Move error variable GenDecl check to functionTeddy Wing
2023-05-21Ignore errors declared using GenDecl inside defer closureTeddy Wing
2023-05-21Idea to move defer func check to a separate functionTeddy Wing
2023-05-21Move function `ast.Inspect` to new functionTeddy Wing
2023-05-21Move defer closure `ast.Inspect` to a separate functionTeddy Wing
2023-05-21Add test to ensure error vars declared in defer closure are not reportedTeddy Wing
2023-05-20Report when error declaration in signature is neededTeddy Wing
2023-05-20Get error variable names from type loopTeddy Wing
2023-05-20Find function signature return value namesTeddy Wing
2023-05-19Check for error types in assignments in `defer`Teddy Wing
2023-05-19Work out how to get type name of assignments in `defer`Teddy Wing
2023-05-18Find assignments in defer closureTeddy Wing
2023-05-18Use `FuncDecl` instead of `FuncType`Teddy Wing
2023-05-18Ideas for walking functions first instead of `defer`s firstTeddy Wing
2023-05-18Ideas for an analyser for returning errors from deferTeddy Wing