Skip to content

[misc] Fail linter workflows on codespell failures #3913

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 3 commits into from
Jun 2, 2025

Conversation

mlsmaycon
Copy link
Collaborator

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings June 2, 2025 20:18
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the linter workflow configuration to fail on codespell errors and includes a minor documentation change.

  • Updated the comment in dns/dns.go to mention an additional condition.
  • Removed the "only_warn: 1" setting in the golangci-lint GitHub workflow to enforce failures on codespell errors.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
dns/dns.go Updated comment for DefaultClass
.github/workflows/golangci-lint.yml Removed only_warn flag to fail on codespell errors

dns/dns.go Outdated
@@ -17,7 +17,7 @@ const (
DefaultDNSPort = 53
// RootZone is a string representation of the root zone
RootZone = "."
// DefaultClass is the class supported by the system
// DefaultClass is the class supported by the system or by wether
Copy link
Preview

Copilot AI Jun 2, 2025

Choose a reason for hiding this comment

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

There appears to be a typo in the comment: 'wether' should likely be 'whether' for clarity.

Suggested change
// DefaultClass is the class supported by the system or by wether
// DefaultClass is the class supported by the system or by whether

Copilot uses AI. Check for mistakes.

Copy link

sonarqubecloud bot commented Jun 2, 2025

@mlsmaycon mlsmaycon merged commit 35287f8 into main Jun 2, 2025
32 checks passed
@mlsmaycon mlsmaycon deleted the fail-on-codespell-failures branch June 2, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants