Skip to content

fix: lint issues#1358

Merged
andrinoff merged 7 commits into
floatpane:masterfrom
andrinoff:chore/lint-issues
May 23, 2026
Merged

fix: lint issues#1358
andrinoff merged 7 commits into
floatpane:masterfrom
andrinoff:chore/lint-issues

Conversation

@andrinoff
Copy link
Copy Markdown
Member

What?

Why?

Signed-off-by: drew <me@andrinoff.com>
@andrinoff andrinoff requested a review from a team as a code owner May 23, 2026 16:08
@floatpanebot floatpanebot added bug Something isn't working area/tui Terminal UI / view layer area/fetcher IMAP fetch / IDLE / search area/sender SMTP send path area/oauth OAuth / XOAUTH2 / auth flows size/XL Diff: 800+ lines area/calendar Calendar integration area/notify Notifications area/pgp PGP / encryption area/plugin Plugin system area/theme Theming / colors area/i18n Localization / translations area/config Configuration / settings area/cli CLI flags / commands area/daemon Daemon / RPC area/scard Smart card / PKCS#11 area/build Build system / Makefile / packaging labels May 23, 2026
Signed-off-by: drew <me@andrinoff.com>
Comment thread cli/config.go Fixed
Comment thread cli/install.go

dest := filepath.Join(pluginsDir, filename)
if err := os.WriteFile(dest, data, 0644); err != nil {
if err := os.WriteFile(dest, data, 0644); err != nil { //nolint:gosec
Comment thread config/encryption.go
continue // File may not be encrypted
}
if err := os.WriteFile(f, plain, 0600); err != nil {
if err := os.WriteFile(f, plain, 0600); err != nil { //nolint:gosec
Comment thread config/encryption.go
key := GetSessionKey()
if key == nil {
return os.WriteFile(path, data, perm)
return os.WriteFile(path, data, perm) //nolint:gosec
Comment thread config/encryption.go
return err
}
return os.WriteFile(path, encrypted, perm)
return os.WriteFile(path, encrypted, perm) //nolint:gosec
Comment thread main.go
defer in.Close()
out, err := os.OpenFile(tmpNew, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0755)
defer in.Close() //nolint:errcheck
out, err := os.OpenFile(tmpNew, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0755) //nolint:gosec
Comment thread view/html.go
if f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil {
if f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil { //nolint:gosec
_, _ = f.WriteString(msg)
_ = f.Close()
Comment thread view/html.go
if f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil {
if f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil { //nolint:gosec
_, _ = f.WriteString(msg)
_ = f.Close()
Comment thread view/html.go
debugImageProtocol("remote fetch failed url=%s err=%v", url, err)
return ""
}
defer resp.Body.Close()
Comment thread view/html.go
debugImageProtocol("remote fetch failed url=%s err=%v", url, err)
return ""
}
defer resp.Body.Close()
andrinoff added 2 commits May 23, 2026 20:12
Signed-off-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
Comment thread cli/config.go
}

cmd := exec.Command(editor, target)
cmd := exec.Command(editor, target) //nolint:gosec,noctx
Comment thread daemon/daemon.go

// Set socket permissions (owner only).
os.Chmod(sockPath, 0700)
os.Chmod(sockPath, 0700) //nolint:errcheck,gosec
Comment thread main.go
}
if _, err := io.Copy(out, tr); err != nil {
out.Close()
if _, err := io.Copy(out, tr); err != nil { //nolint:gosec
Comment thread main.go
if _, err := io.Copy(out, rc); err != nil {
out.Close()
rc.Close()
if _, err := io.Copy(out, rc); err != nil { //nolint:gosec
andrinoff added 2 commits May 23, 2026 20:29
Signed-off-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
@floatpanebot
Copy link
Copy Markdown
Member

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: drew <me@andrinoff.com>
@floatpanebot
Copy link
Copy Markdown
Member

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@andrinoff
Copy link
Copy Markdown
Member Author

/approve

Copy link
Copy Markdown
Member

@floatpanebot floatpanebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on behalf of @andrinoff via /approve command.

@andrinoff andrinoff merged commit 613bcc5 into floatpane:master May 23, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Build system / Makefile / packaging area/calendar Calendar integration area/cli CLI flags / commands area/config Configuration / settings area/daemon Daemon / RPC area/fetcher IMAP fetch / IDLE / search area/i18n Localization / translations area/notify Notifications area/oauth OAuth / XOAUTH2 / auth flows area/pgp PGP / encryption area/plugin Plugin system area/scard Smart card / PKCS#11 area/sender SMTP send path area/theme Theming / colors area/tui Terminal UI / view layer bug Something isn't working size/XL Diff: 800+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants