pre-commit-hooks
pre-commit-hooks copied to clipboard
Insert license and top-of-file whitespace
Unsure if this is intended behavior, but I had a C file with 2 lines of whitespace a the top:
[whitespace]
[whitespace]
/* Some comment */
int main() {
return 0;
}
The insert-license hook inserts the license after this whitespace:
[whitespace]
[whitespace]
// Licenced under FooBar
/* Some comment */
int main() {
return 0;
}
I would have expected it to be inserted after.