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

add linters #361

Merged
merged 1 commit into from
Jan 24, 2025
Merged

add linters #361

merged 1 commit into from
Jan 24, 2025

Conversation

agbpatro
Copy link
Collaborator

Description

Adding a basic linter

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.

fmt.Fprintln(out, nonLocalhostWarning)
fmt.Fprintln(out, "")
fmt.Fprintln(out, "Options:")
_, _ = fmt.Fprintf(out, "Usage: %s [OPTION...]\n", os.Args[0])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any way to disable error checking on printf?

	// It is conventional not to worry about any
	// error returned by Printf.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

quick search didn't yield any result for me on how to do this

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed

Makefile Outdated
all: build

linters: install
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is install a prerequisite?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

issues:
exclude-dirs:
- temp

Copy link
Collaborator

Choose a reason for hiding this comment

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

issues:
  exclude-dirs:
    - temp
  exclude:
    - "Error return value of `fmt.Fprintln` is not checked"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed

@agbpatro agbpatro force-pushed the add_linters branch 3 times, most recently from d638a3a to 1bfa9ed Compare January 24, 2025 01:01
@agbpatro agbpatro force-pushed the add_linters branch 7 times, most recently from 3e1eafb to 2387952 Compare January 24, 2025 01:20
@agbpatro agbpatro merged commit 29fe990 into teslamotors:main Jan 24, 2025
1 check passed
@agbpatro agbpatro deleted the add_linters branch January 24, 2025 18:09
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.

2 participants