Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b26e71

Browse files
committed
Correct readme filename regular expression
Missing parentheses resulted in the regular expression matching files that are not recognized as a readme by GitHub.
1 parent15c986b commit9b26e71

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

‎internal/rule/rulefunction/rulefunction.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Type func() (result ruleresult.Type, output string)
3535
// MissingReadme checks if the project has a readme that will be recognized by GitHub.
3636
funcMissingReadme() (result ruleresult.Type,outputstring) {
3737
// https://github.com/github/markup/blob/master/README.md
38-
readmeRegexp:=regexp.MustCompile(`(?i)^readme\.(markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt)$`)
38+
readmeRegexp:=regexp.MustCompile(`(?i)^readme\.((markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt))$`)
3939

4040
// https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes#about-readmes
4141
ifpathContainsRegexpMatch(projectdata.ProjectPath(),readmeRegexp)||

internal/rule/rulefunction/testdata/general/no-readme/.gitkeep renamed to internal/rule/rulefunction/testdata/general/no-readme/notreadme.md

File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp