@casomoltd/tooling 0.21.0 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commitlint/index.cjs +6 -2
- package/package.json +1 -1
package/commitlint/index.cjs
CHANGED
|
@@ -7,8 +7,12 @@ module.exports = {
|
|
|
7
7
|
plugins: [
|
|
8
8
|
{
|
|
9
9
|
rules: {
|
|
10
|
-
'no-ai-attribution': ({ header, body }) => {
|
|
11
|
-
|
|
10
|
+
'no-ai-attribution': ({ header, body, footer }) => {
|
|
11
|
+
// `footer` matters: the parser files trailers like
|
|
12
|
+
// `Co-Authored-By: …` there, not under `body`, so a header+body
|
|
13
|
+
// check misses exactly the line this rule exists to catch. (Not
|
|
14
|
+
// `raw`: under `git commit -v` that can carry the whole diff.)
|
|
15
|
+
const fullMessage = `${header}\n${body || ''}\n${footer || ''}`.toLowerCase();
|
|
12
16
|
const forbidden = ['anthropic', 'claude', 'co-authored-by'];
|
|
13
17
|
const found = forbidden.filter((term) => fullMessage.includes(term));
|
|
14
18
|
return [
|
package/package.json
CHANGED