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

importas: add message if settings contain no aliases #1956

Merged
merged 1 commit into from May 6, 2021

Conversation

StephenBrown2
Copy link
Contributor

I wanted to use the strict feature of importas, but forgot to also move my aliases under the alias: key, and couldn't figure out why they weren't being applied. This message would have saved me a couple hours debugging the code to find out I should have just read the docs more closely.

Initially I had it as a warning so it would show when running normally, but the tests (with --no-config) still created a default config for ImportAs, and so the output was flagged. An info message will be shown with --verbose, and should be sufficient, as that was the first thing I did to try to figure out if importas was getting filtered out for some reason.

@boring-cyborg
Copy link

boring-cyborg bot commented May 5, 2021

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented May 5, 2021

CLA assistant check
All committers have signed the CLA.

@ldez ldez added the enhancement New feature or improvement label May 5, 2021
@ldez ldez changed the title Add message if importas settings contain no aliases importas: add message if settings contain no aliases May 5, 2021
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit 07a0568 into golangci:master May 6, 2021
@golangci-automator
Copy link

Hey, @StephenBrown2 — we just merged your PR to golangci-lint! 🔥🚀

golangci-lint is built by awesome people like you. Let us say “thanks”: we just invited you to join the GolangCI organization on GitHub.
This will add you to our team of maintainers. Accept the invite by visiting this link.

By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.
More information about contributing is here.

Thanks again!

@ldez ldez added this to the v1.40 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants