index
:
godefererr
master
Analyser that reports incorrectly returned errors from defer closures
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
defererr.go
Age
Commit message (
Expand
)
Author
2023-05-26
Add license (GNU GPLv3+)
v0.0.1
Teddy Wing
2023-05-26
Add package documentation
Teddy Wing
2023-05-26
functionState: Format fields after doc comment addition
Teddy Wing
2023-05-25
Add more detail to the explanation of how the analyser works
Teddy Wing
2023-05-25
checkErrorAssignedInDefer: Remove obsolete TODO
Teddy Wing
2023-05-25
Report missing signature declaration with multiple return values
Teddy Wing
2023-05-25
Add identifier documentation comments
Teddy Wing
2023-05-25
newFunctionState: Return value instead of pointer
Teddy Wing
2023-05-25
checkFunctions: Move function body `ast.Inspect` to named function
Teddy Wing
2023-05-25
checkFunctions: Keep `continue` in return value loop
Teddy Wing
2023-05-25
Add note to check ident condition in return signature list loop
Teddy Wing
2023-05-25
checkFunctions: Start cleaning up this function
Teddy Wing
2023-05-24
Change `isFirstErrorDeferEndPosSet()` to `deferAssignsError()`
Teddy Wing
2023-05-24
Fix name of `isfirstErrorDeferEndPosSet`
Teddy Wing
2023-05-24
Fix logic of `isfirstErrorDeferEndPosSet`
Teddy Wing
2023-05-24
Clean up `checkFunctionReturns()` function
Teddy Wing
2023-05-23
Extract `return` handling to function
Teddy Wing
2023-05-22
Clean up `checkErrorAssignedInDefer()` function
Teddy Wing
2023-05-21
Report function signature declaration using variable name other than err
Teddy Wing
2023-05-21
Check whether `return` uses error variable set in `defer`
Teddy Wing
2023-05-21
Check whether returned name matches defer error name
Teddy Wing
2023-05-21
Inspect return value looking at type and name
Teddy Wing
2023-05-21
Get type information from `return` statement values
Teddy Wing
2023-05-21
Explore inspecting `return` statements for error values
Teddy Wing
2023-05-21
Add skeleton for checking `return` statements after `defer` closures
Teddy Wing
2023-05-21
Correctly `setFirstErrorDeferEndPos` for `doesDeclareErrInSignature`
Teddy Wing
2023-05-21
Working out why doesDeclareErrInSignature doesn't get far in assign loop
Teddy Wing
2023-05-21
Print the current function for easier debugging
Teddy Wing
2023-05-21
Try to store the end position of the first defer closure with error
Teddy Wing
2023-05-21
Update `firstDeferEndPos` name
Teddy Wing
2023-05-21
Add ideas for checking `return`s
Teddy Wing
2023-05-21
Idea for checking `return`s
Teddy Wing
2023-05-21
Next step to check usage of error variable in return
Teddy Wing
2023-05-21
Move error variable GenDecl check to function
Teddy Wing
2023-05-21
Ignore errors declared using GenDecl inside defer closure
Teddy Wing
2023-05-21
Idea to move defer func check to a separate function
Teddy Wing
2023-05-21
Move function `ast.Inspect` to new function
Teddy Wing
2023-05-21
Move defer closure `ast.Inspect` to a separate function
Teddy Wing
2023-05-21
Add test to ensure error vars declared in defer closure are not reported
Teddy Wing
2023-05-20
Report when error declaration in signature is needed
Teddy Wing
2023-05-20
Get error variable names from type loop
Teddy Wing
2023-05-20
Find function signature return value names
Teddy Wing
2023-05-19
Check for error types in assignments in `defer`
Teddy Wing
2023-05-19
Work out how to get type name of assignments in `defer`
Teddy Wing
2023-05-18
Find assignments in defer closure
Teddy Wing
2023-05-18
Use `FuncDecl` instead of `FuncType`
Teddy Wing
2023-05-18
Ideas for walking functions first instead of `defer`s first
Teddy Wing
2023-05-18
Ideas for an analyser for returning errors from defer
Teddy Wing