chore: Disable funlen linter

This commit is contained in:
James Houlahan
2023-02-03 16:18:25 +01:00
parent d82b71de89
commit 34cd611a8b
22 changed files with 22 additions and 45 deletions

View File

@ -325,7 +325,7 @@ func buildPGPMIMEFallbackRFC822(msg proton.Message, opts JobOptions, buf *bytes.
return nil
}
func writeMultipartSignedRFC822(header message.Header, body []byte, sig proton.Signature, buf *bytes.Buffer) error { //nolint:funlen
func writeMultipartSignedRFC822(header message.Header, body []byte, sig proton.Signature, buf *bytes.Buffer) error {
boundary := newBoundary("").gen()
header.SetContentType("multipart/signed", map[string]string{
@ -427,7 +427,7 @@ func addressEmpty(address *mail.Address) bool {
return false
}
func getMessageHeader(msg proton.Message, opts JobOptions) message.Header { //nolint:funlen
func getMessageHeader(msg proton.Message, opts JobOptions) message.Header {
hdr := toMessageHeader(msg.ParsedHeaders)
// SetText will RFC2047-encode.

View File

@ -433,7 +433,7 @@ func getPlainBody(part *parser.Part) []byte {
}
}
func parseMessageHeader(h message.Header) (Message, error) { //nolint:funlen
func parseMessageHeader(h message.Header) (Message, error) {
var m Message
for fields := h.Fields(); fields.Next(); {