Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
9c671a71
Commit
9c671a71
authored
5 months ago
by
Bert Wesarg
Browse files
Options
Downloads
Patches
Plain Diff
check: Use Git attributes to exclude files from the spell checker
parent
f243568b
No related branches found
No related tags found
2 merge requests
!1164
Automated merge from preview to main
,
!1156
Improve `git-diff` usage and fix monikers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+4
-0
4 additions, 0 deletions
.gitattributes
doc.zih.tu-dresden.de/util/check-spelling.sh
+2
-7
2 additions, 7 deletions
doc.zih.tu-dresden.de/util/check-spelling.sh
with
6 additions
and
7 deletions
.gitattributes
+
4
−
0
View file @
9c671a71
*.webm filter=lfs diff=lfs merge=lfs -text
*.webm filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
/doc.zih.tu-dresden.de/docs/accessibility.md -check-spelling
/doc.zih.tu-dresden.de/docs/data_protection_declaration.md -check-spelling
/doc.zih.tu-dresden.de/docs/legal_notice.md -check-spelling
/doc.zih.tu-dresden.de/docs/access/key_fingerprints.md -check-spelling
This diff is collapsed.
Click to expand it.
doc.zih.tu-dresden.de/util/check-spelling.sh
+
2
−
7
View file @
9c671a71
...
@@ -7,12 +7,6 @@ basedir=`dirname "${scriptpath}"`
...
@@ -7,12 +7,6 @@ basedir=`dirname "${scriptpath}"`
basedir
=
`
dirname
"
${
basedir
}
"
`
basedir
=
`
dirname
"
${
basedir
}
"
`
wordlistfile
=
$(
realpath
${
basedir
}
/wordlist.aspell
)
wordlistfile
=
$(
realpath
${
basedir
}
/wordlist.aspell
)
branch
=
"origin/
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
:-
preview
}
"
branch
=
"origin/
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
:-
preview
}
"
files_to_skip
=(
doc.zih.tu-dresden.de/docs/accessibility.md
doc.zih.tu-dresden.de/docs/data_protection_declaration.md
doc.zih.tu-dresden.de/docs/legal_notice.md
doc.zih.tu-dresden.de/docs/access/key_fingerprints.md
)
aspellmode
=
aspellmode
=
if
aspell dump modes |
grep
-q
markdown
;
then
if
aspell dump modes |
grep
-q
markdown
;
then
aspellmode
=
"--mode=markdown"
aspellmode
=
"--mode=markdown"
...
@@ -46,7 +40,8 @@ function is_wordlist_sorted(){
...
@@ -46,7 +40,8 @@ function is_wordlist_sorted(){
}
}
function
should_skip_file
(){
function
should_skip_file
(){
printf
'%s\n'
"
${
files_to_skip
[@]
}
"
|
grep
-xq
$1
local
result
=
"
$(
git check-attr check-spelling
--
"
$1
"
)
"
test
"
${
result
#*
:
check-spelling
:
}
"
=
"unset"
}
}
function
check_all_files
(){
function
check_all_files
(){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment