Skip to content

dev: jsonschema support for revive comment directives #5448

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
merged 4 commits into from
Feb 19, 2025

Conversation

urgas9
Copy link
Contributor

@urgas9 urgas9 commented Feb 19, 2025

After enabling config verify by default in golangci-lint-action v6.5.0 we noticed a discrepancy between a working configuration of revive linter, supporting comment directives, and JSON schema complaining that directives field is not allowed. This PR aims to update the JSON schema and adds an example of the directives setup.

Thanks, @ldez for enabling config verify by default which ensures us to keep jsonschema in sync with the actual config file. 🤟

Copy link

boring-cyborg bot commented Feb 19, 2025

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Feb 19, 2025

CLA assistant check
All committers have signed the CLA.

@ldez ldez self-requested a review February 19, 2025 17:20
@ldez ldez changed the title revive - jsonschema support for comment directives dev: jsonschema support for revive comment directives Feb 19, 2025
@ldez ldez added the bug Something isn't working label Feb 19, 2025
@ldez ldez added this to the unreleased milestone Feb 19, 2025
Add dot at the end of descriptions

Co-authored-by: Oleksandr Redko <[email protected]>
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, thank you 👍

@ldez ldez merged commit 6194858 into golangci:master Feb 19, 2025
18 checks passed
@urgas9 urgas9 deleted the revive-support-directives branch February 19, 2025 18:55
@ldez ldez modified the milestones: unreleased, v1.64 Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: JSON schema bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants