Skip to content

Commit c121597

Browse files
Fix sarif (#1752)
* Fix SARIF * only check changed files * mask http/https * add newline at eof * Add dicts * fix http regex * fix http regex
1 parent 51bbd23 commit c121597

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/actions/spelling/patterns.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@
108108
# Localization keys
109109
#x:Key="[^"]+"
110110
#{DynamicResource [^"]+}
111+
112+
#http/https
113+
(?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]
114+

.github/workflows/spelling.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ jobs:
8282
post_comment: 0
8383
use_magic_file: 1
8484
experimental_apply_changes_via_bot: 1
85-
use_sarif: true # to show in pr page
85+
use_sarif: 0 # to show in pr page
8686
extra_dictionary_limit: 10
8787
check_commit_messages: commits title description
88-
only_check_changed_files: false
88+
only_check_changed_files: 1
8989
check_extra_dictionaries: ''
9090
quit_without_error: true
9191
extra_dictionaries:
@@ -96,6 +96,8 @@ jobs:
9696
cspell:csharp/csharp.txt
9797
cspell:dotnet/dotnet.txt
9898
cspell:python/src/python/python-lib.txt
99+
cspell:aws/aws.txt
100+
cspell:companies/src/companies.txt
99101
warnings:
100102
binary-file,deprecated-feature,large-file,limited-references,noisy-file,non-alpha-in-dictionary,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,unrecognized-spelling,no-newline-at-eof
101103

0 commit comments

Comments
 (0)