Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/MarkdownSnippets/ContentValidation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ static class ContentValidation
"whereof"
}.ToFrozenSet();

static string invalidWordList = string.Join(", ", invalidWordSet.Order());

static FrozenDictionary<string, KeyValuePair<string, string>[]> phrasesByFirstWord =
phrases
.GroupBy(p =>
Expand Down Expand Up @@ -98,7 +100,7 @@ static class ContentValidation
{
if (invalidWordSet.Contains(word) && seenWords.Add(word))
{
yield return ($"Invalid word detected: '{word}'", start - 1);
yield return ($"Invalid word detected: '{word}'. The full list of invalid words is: {invalidWordList}", start - 1);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
Item2: 20
},
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
},
{
Item1: Invalid word detected: 'yourself',
Item1: Invalid word detected: 'yourself'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 27
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
Item2: 20
},
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
},
{
Item1: Invalid word detected: 'yourself',
Item1: Invalid word detected: 'yourself'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 27
},
{
Item1: Invalid word detected: 'us',
Item1: Invalid word detected: 'us'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 37
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
}
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{
Item1: Invalid word detected: 'you'
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 4
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
Item1: Invalid word detected: 'you',
Item1: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Item2: 1
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Type: ContentValidationException,
Errors: [
{
Error: Invalid word detected: 'you',
Error: Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Line: 1,
File: {CurrentDirectory}DirectoryMarkdownProcessor/ValidationErrors/one.source.md
},
{
Error: Invalid word detected: 'we',
Error: Invalid word detected: 'we'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself,
Line: 2,
Column: 1,
File: {CurrentDirectory}DirectoryMarkdownProcessor/ValidationErrors/one.source.md
Expand All @@ -21,11 +21,11 @@
],
Message:
Content validation errors:
Invalid word detected: 'you'
Invalid word detected: 'you'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself
File: {CurrentDirectory}DirectoryMarkdownProcessor/ValidationErrors/one.source.md
Line: 1
Column: 0
Invalid word detected: 'we'
Invalid word detected: 'we'. The full list of invalid words is: above-mentioned, aforementioned, easy, feel, foregoing, henceforth, hereafter, heretofore, herewith, just, our, please, simple, simply, thereafter, thereof, therewith, think, us, we, whatsoever, whereat, wherein, whereof, you, your, yourself
File: {CurrentDirectory}DirectoryMarkdownProcessor/ValidationErrors/one.source.md
Line: 2
Column: 1
Expand Down
Loading