aerc/lib
Moritz Poldrack 978d35d356 lint: homogenize operations and minor fixes (gocritic)
Apply GoDoc comment policy (comments for humans should have a space
after the //; machine-readable comments shouldn't)

Use strings.ReplaceAll instead of strings.Replace when appropriate

Remove if/else chains by replacing them with switches

Use short assignment/increment notation

Replace single case switches with if statements

Combine else and if when appropriate

Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-08-04 21:58:01 +02:00
..
auth lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
calendar lint: ensure errors are at least logged (errcheck) 2022-08-04 21:57:57 +02:00
crypto lint: ensure errors are at least logged (errcheck) 2022-08-04 21:57:57 +02:00
format lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
parse lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
sort go.mod: change base git url 2021-11-05 10:21:45 +01:00
statusline lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
templates lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
ui lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
uidstore Create UIDStore package 2019-07-12 11:09:47 -04:00
attachment.go compose: refactor attachment handling 2022-07-02 17:52:49 +02:00
dirstore.go Move msgstore map to dirstore 2019-07-26 14:15:27 -04:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
keepalive_dummy.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
keepalive_linux.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
messageview.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
msgstore.go lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
oauthbearer.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
open.go lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
socket.go lint: ensure errors are at least logged (errcheck) 2022-08-04 21:57:57 +02:00
structure_helpers.go lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
structure_helpers_test.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
threadbuilder.go lint: ensure errors are at least logged (errcheck) 2022-08-04 21:57:57 +02:00