Skip to content

Commit 510467c

Browse files
committed
Add check for missing readme in sketch
1 parent 8d0139d commit 510467c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

check/checkconfigurations/checkconfigurations.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,4 +1136,19 @@ var configurations = []Type{
11361136
ErrorModes: []checkmode.Type{checkmode.Strict},
11371137
CheckFunction: checkfunctions.PdeSketchExtension,
11381138
},
1139+
{
1140+
ProjectType: projecttype.Sketch,
1141+
Category: "structure",
1142+
Subcategory: "",
1143+
ID: "",
1144+
Brief: "no readme",
1145+
Description: "",
1146+
MessageTemplate: "No readme found. Please document your sketch. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes",
1147+
DisableModes: nil,
1148+
EnableModes: []checkmode.Type{checkmode.Default},
1149+
InfoModes: nil,
1150+
WarningModes: []checkmode.Type{checkmode.Default},
1151+
ErrorModes: []checkmode.Type{checkmode.Strict},
1152+
CheckFunction: checkfunctions.MissingReadme,
1153+
},
11391154
}

0 commit comments

Comments
 (0)