Skip to content

Insert license and top-of-file whitespace #107

@Wheest

Description

@Wheest

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions