Skip to content

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
@ldez ldez force-pushed the fix/revive-config branch from 919d5c3 to 76451b0 Compare February 18, 2021 18:38
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