Skip to content

Improve 'no such linter' error message #1244

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

Merged

Conversation

denis-tingaikin
Copy link
Member

@denis-tingaikin denis-tingaikin commented Jul 14, 2020

Signed-off-by: denis-tingajkin denis.tingajkin@xored.com

Steps to reproduce

  1. Use new golangci-linter config file
  2. Use old linter version (for example 1.26)

Actual: Printed err msg 'no such linter %v' for all new linters which was added since 1.26. The error message looks is not clear for new users. The message can confuse the user like 'Should I download missed linter?'.

I think we need to point that the user can run golangci-lint linters to see supported linter list of his golangci-linter tool.

Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin added the topic: cosmetic changes contain cosmetic improvements label Jul 14, 2020
@SVilgelm SVilgelm requested a review from a team July 14, 2020 19:47
Copy link
Contributor

@iwankgb iwankgb left a comment

Choose a reason for hiding this comment

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

Why have you decided to use pointer receivers for all these functions?

@denis-tingaikin
Copy link
Member Author

@iwankgb actually here is no difference at this moment. But if for Validator struct will be added some struct fields then pointer receivers will be better :)

@iwankgb
Copy link
Contributor

iwankgb commented Jul 16, 2020

We should not anticipate future code changes, I believe. Would you be OK with reverting to value receivers?

Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
@iwankgb iwankgb merged commit 21ee78c into golangci:master Jul 17, 2020
@ldez ldez added this to the v1.29 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cosmetic changes contain cosmetic improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants