Skip to content

Commit 160349a

Browse files
committed
build(project): check forbidden punctuation
1 parent 6eeeb52 commit 160349a

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,22 @@ repos:
122122
- id: editorconfig-checker
123123
exclude: 'modules/libeye.org|modules/MD5.org|tools/htmlize.el|tools/.*.wad'
124124
args: [-disable-indent-size, -disable-max-line-length]
125+
126+
- repo: local
127+
hooks:
128+
- id: punctuation
129+
exclude: '.*\.gif|.*\.ogg|.*\.png|.*\.wad'
130+
name: punctuation
131+
language: pygrep
132+
# Forbidden characters:
133+
# - U+FFFD UTF-8 Unicode replacement character
134+
# - U+2018 LEFT SINGLE QUOTATION MARK
135+
# - U+2019 RIGHT SINGLE QUOTATION MARK
136+
# - U+201A SINGLE LOW-9 QUOTATION MARK
137+
# - U+201B SINGLE HIGH-REVERSED-9 QUOTATION MARK
138+
# - U+201C LEFT DOUBLE QUOTATION MARK
139+
# - U+201D RIGHT DOUBLE QUOTATION MARK
140+
# - U+201E DOUBLE LOW-9 QUOTATION MARK
141+
# - U+201F DOUBLE HIGH-REVERSED-9 QUOTATION MARK
142+
# - U+2E42 DOUBLE LOW-REVERSED-9 QUOTATION MARK
143+
entry: "\uFFFD|\u2018|\u2019|\u201A|\u201B|\u201C|\u201D|\u201E|\u201F|\u2E42"

modules/LispOnZscript.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ to be done to make LispOnZscript more usable.
2323
Key function is ~tl_Eval.eval~ function. It takes a parsed expression (from
2424
~tl_Parser.parse~) and an environment (normally from ~tl_Env.makeGlobalEnv~).
2525

26-
Adapted from [[https://www.michaelnielsen.org/ddi/lisp-as-the-maxwells-equations-of-software/][Lisp as the Maxwells equations of software]] by Michael Nielsen.
26+
Adapted from [[https://www.michaelnielsen.org/ddi/lisp-as-the-maxwells-equations-of-software/][Lisp as the Maxwell's equations of software]] by Michael Nielsen.
2727

2828
TODO: add loading LispOnZscript code from a lump.
2929

0 commit comments

Comments
 (0)