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

revive: fix types and default configuration. #1747

Merged
merged 1 commit into from Feb 19, 2021

Conversation

ldez
Copy link
Member

@ldez ldez commented Feb 18, 2021

Fixes #1745

The types are hardcoded, example: https://github.com/mgechev/revive/blob/389ba853b0b3587f0c3b71b5f0c61ea4e23928ec/rule/cognitive-complexity.go#L23

So to be able to get the expected types, the configuration will be marshaled to TOML and then the TOML will be unmarshaled to the expected configuration object.

@ldez ldez added the bug Something isn't working label Feb 18, 2021
@ldez ldez mentioned this pull request Feb 18, 2021
3 tasks
Copy link
Member

@bombsimon bombsimon 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 4b3fb4c into golangci:master Feb 19, 2021
@ldez ldez deleted the fix/revive-config branch February 19, 2021 00:40
ashanbrown pushed a commit to ashanbrown/golangci-lint that referenced this pull request Feb 20, 2021
@ldez ldez added this to the v1.37 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revive linter rules configuration
2 participants