Allow extension skip only on core files c/cpp/h/m/swift, for the rest require ext.
Showing the changes to ci/lint-commit-msg.py (1 of 1 file). Show all
Unified · Split
| @@ -106,7 +106,7 @@ def line_too_long(body): · 105 unmodified lines | |||
| 106 | "Prefix should not include file extension (use `vo_gpu: ...` not `vo_gpu.c: ...`)", | 106 | "Prefix should not include file extension (use `vo_gpu: ...` not `vo_gpu.c: ...`)", |
| 107 | ) | 107 | ) |
| 108 | def no_file_exts(body): | 108 | def no_file_exts(body): |
| 109 | return not re.search(r"[a-z0-9]\.([chm]|cpp|swift|py): ", body[0]) | 109 | return not re.search(r"[a-z0-9]\.([chm]|cpp|swift): ", body[0]) |
| 110 | 110 | ||
| 111 | ################################################################################ | 111 | ################################################################################ |
| 112 | 112 | ||