You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! grep -rnE "(:contentReference|\[oaicite:\?\?\d*\]|As an AI language model|I am an AI developed by|This response was generated by|\(Author, [0-9]{4}\)|\(Source: [^)]+\)|In conclusion,|To summarize,|It is important to note that|Remember that|Keep in mind that)" \
76
-
--exclude-dir=.git \
77
-
--exclude-dir=node_modules \
78
-
--exclude-dir=.venv \
79
-
--exclude-dir=dist \
80
-
--exclude-dir=build \
81
-
--exclude-dir=__pycache__ \
82
-
--exclude=.pre-commit-config.yaml \
83
-
"$@"
84
-
'
85
-
language: system
86
-
pass_filenames: true
70
+
- id: forbid-content-reference
71
+
name: ❌ Forbid :contentReference
72
+
description: Prevents :contentReference patterns from being committed.
73
+
entry: ':contentReference'
74
+
language: pygrep
87
75
types: [text]
88
-
description: Prevents committing LLM artefacts like :contentReference, [oaicite], and common AI-generated phrases.
description: Prevents common AI-generated phrases from being committed.
91
+
entry: '(?i)(as an ai language model|i am an ai developed by|this response was generated by|i don''t have real-time information|i don''t have access to real-time|i can''t browse the internet|i cannot browse the internet|my knowledge cutoff|my training data|i''m not able to access|i don''t have the ability to)'
0 commit comments