Skip to content

Commit 1d761ea

Browse files
skip snippets in the main swift check
1 parent 20a3c90 commit 1d761ea

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Snippets/Parsing/test.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Sample document
22

33
This is a *sample document*.
4+
5+
<!-- Copyright (c) 2022 Apple Inc and the Swift Project authors. All Rights Reserved. -->

Sources/Markdown/Markdown.docc/Snippets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ a Markdown document to a consistent, preferred style.
4141
@Snippet(path: "swift-markdown/Snippets/Formatting/PreferredHeadingStyle")
4242
@Snippet(path: "swift-markdown/Snippets/Formatting/ThematicBreakCharacter")
4343
@Snippet(path: "swift-markdown/Snippets/Formatting/UseCodeFence")
44+
45+
<!-- Copyright (c) 2022 Apple Inc and the Swift Project authors. All Rights Reserved. -->

bin/check-source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for language in swift-or-c bash md-or-tutorial html docker; do
4949
reader=head
5050
case "$language" in
5151
swift-or-c)
52-
exceptions=( -name 'Package*.swift')
52+
exceptions=( -name 'Package*.swift' -o -path './Snippets/*')
5353
matching_files=( -name '*.swift' -o -name '*.c' -o -name '*.h' )
5454
cat > "$tmp" <<"EOF"
5555
/*

0 commit comments

Comments
 (0)