Commit graph

7 commits

Author SHA1 Message Date
Michael Fabian 'Xaymar' Dirks
ace861c578 tools: Fix header generation for new files 2023-05-14 03:25:07 +02:00
Michael Fabian 'Xaymar' Dirks
c9ff7093d4 tools: Rate limit operation and fix strange buffer issues
Slightly relaxes the necessary amount of memory, as we are no longer loading everything all at once. Also for unknown reasons git interferes with other git processes running in the same repository only on Linux. This causes Linux runs of this tool to have strange issues detecting the authors, as git just quits with a success error code. Fun.
2023-04-05 18:59:07 +02:00
Michael Fabian 'Xaymar' Dirks
a091b08259 tools: Don't use resolved path unless necessary 2023-04-05 18:59:07 +02:00
Michael Fabian 'Xaymar' Dirks
d1ffa2c942 tools: Safely handle Ctrl-C and ignore some additional files
Don't want to scan files we don't own. Not the greatest solution, but it does work.
2023-04-05 18:59:07 +02:00
Michael Fabian 'Xaymar' Dirks
bd8a574e7a tools: Actually check ignored files 2023-04-05 18:59:07 +02:00
Michael Fabian 'Xaymar' Dirks
75e13996f1 tools: Only check for the section start/end signal, not the entire line 2023-04-05 18:59:06 +02:00
Michael Fabian 'Xaymar' Dirks
d1e3b6d0d1 tools: Add tool to generate and update copyright headers
This tool aids in the proper upkeep of copyright headers for changes contained within this repository. It will generate a new header, or replace the original one if one exists. As this task has often been forgotten by both developers and contributors, having a tool manage this will hopefully improve the situation.

The choice of Node.JS for this tool was deliberate, as many developers and CI solutions already have Node.JS in a reasonably up to date version installed. Additionally the versatility of Node.JS eliminates the need to create custom or platform specific solutions for tasks that are relatively simple. While the performance is not ideal, it still completes its task relatively quickly.
2023-04-05 18:59:06 +02:00