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

adds filename-format rule #1092

Merged
merged 4 commits into from
Nov 2, 2024
Merged

adds filename-format rule #1092

merged 4 commits into from
Nov 2, 2024

Conversation

chavacava
Copy link
Collaborator

Closes #1090 by adding a new rule with a broad scope of enforcing filename format

rule/filename-format.go Outdated Show resolved Hide resolved
@chavacava chavacava merged commit eb18252 into master Nov 2, 2024
4 checks passed
@chavacava chavacava deleted the feature/filename-format branch November 2, 2024 17:23
}}
}

func (r *FilenameFormatRule) getMsgForNonAsciiChars(str string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func (r *FilenameFormatRule) getMsgForNonAsciiChars(str string) string {
func (r *FilenameFormatRule) getMsgForNonASCIIChars(str string) string {

Comment on lines +523 to +524
## filename-format
_Description_: enforces conventions on source file names. By default, the rule enforces filenames of the form `^[_A-Za-z0-9][_A-Za-z0-9-]*.go$`: Optionally, the rule can be configured to enforce other forms.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## filename-format
_Description_: enforces conventions on source file names. By default, the rule enforces filenames of the form `^[_A-Za-z0-9][_A-Za-z0-9-]*.go$`: Optionally, the rule can be configured to enforce other forms.
## filename-format
_Description_: enforces conventions on source file names. By default, the rule enforces filenames of the form `^[_A-Za-z0-9][_A-Za-z0-9-]*.go$`: Optionally, the rule can be configured to enforce other forms.

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.

Warn on filenames with non ASCII characters
3 participants