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

go/golangci_lint.vim: set package linting to 1 #4602

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

Conversation

extemporalgenome
Copy link

The present default of 0 causes excessive and unnecessary typecheck errors in all but the most trivial (single-file) packages. The standard Go unit of code is a directory, not a file, and optimizing for processing a single file provides negligible savings in processing time for a typical project, yet creates a lot of noise for the user.

Since those users that will specifically want single-file processing are less common, it's arguably reasonable for them to configure this back to zero in their vimrc.

The present default of 0 causes excessive and unnecessary typecheck errors in all but the most trivial (single-file) packages. The standard Go unit of code is a directory, not a file, and optimizing for processing a single file provides negligible savings in processing time for a typical project, yet creates a lot of noise for the user.
Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

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

I'm happy to change the default. We just need to update our tests and documentation to reflect the change.

Copy link

stale bot commented Mar 17, 2024

This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See :help ale-dev for information on writing tests.
If your pull request is good to merge, bother w0rp or another maintainer again, and get them to merge it.

@stale stale bot added the stale PRs/Issues no longer valid label Mar 17, 2024
@stale stale bot closed this Apr 22, 2024
@w0rp w0rp reopened this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PRs/Issues no longer valid
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants