Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ensure that JSON errors are properly checked when required #468

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Feb 18, 2025

Relates to #274

@G-Rath G-Rath mentioned this pull request Feb 18, 2025
46 tasks
@G-Rath G-Rath requested a review from erikvarga February 26, 2025 18:17
@G-Rath G-Rath force-pushed the linting/enable-errchkjson branch from 1ab1082 to 1043a3e Compare February 27, 2025 19:13
@@ -174,6 +174,7 @@ func checkLogin(ctx context.Context, fileBrowserIP string, fileBrowserPort int)
client := &http.Client{Timeout: requestTimeout}
targetURL := fmt.Sprintf("http://%s:%d/api/login", fileBrowserIP, fileBrowserPort)

//nolint:errchkjson // this is a static struct, so it cannot fail
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cuixq just wanting to double check I've understood your comment here correctly - is this now allowed by the internal linters, or should I put it on a dedicated line?

@G-Rath G-Rath force-pushed the linting/enable-errchkjson branch 2 times, most recently from 5e71e30 to 17f3363 Compare March 5, 2025 18:45
@G-Rath G-Rath force-pushed the linting/enable-errchkjson branch from 17f3363 to 8a0daa4 Compare March 6, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants