diff --git a/Tests/Variants/sample.swift b/Tests/Variants/sample.swift new file mode 100644 index 0000000..3e9dd05 --- /dev/null +++ b/Tests/Variants/sample.swift @@ -0,0 +1,13 @@ +#!/usr/local/bin/swift-sh +import AnyLint // @Flinesoft == wip/cg_template-system + +try Lint.reportResultsToFile(arguments: CommandLine.arguments) { + // MARK: PseudoCheck + try Lint.checkFilePaths( + checkInfo: "PseudoCheck: Checks if the file `Pseudo.md` exists.", + regex: #"^Pseudo\.md$"#, + matchingExamples: ["Pseudo.md"], + nonMatchingExamples: ["Pseudo.markdown", "PSEUDO.md"], + violateIfNoMatchesFound: true + ) +}