Commit Graph

19 Commits

Author SHA1 Message Date
Laurent Monin
40a16cf147 fix-header: add alias for bob 2023-06-04 10:29:41 +02:00
Laurent Monin
9b87499999 fix-header: add support for nolicense to avoid adding our license
It also adds support for multiple words in fix-header: line
2023-06-04 10:29:15 +02:00
Laurent Monin
a45a4f0ee9 match -> matched 2023-06-04 10:26:52 +02:00
Laurent Monin
700cfb166e fix-header: improve aliases matching 2023-06-04 10:26:03 +02:00
Laurent Monin
9cddc64d71 fix-header: replace print() with logging.*() 2023-06-04 10:24:48 +02:00
Philipp Wolfer
f8f007e8a4 fix-header: Skip resource.py 2021-12-20 14:57:58 +01:00
Philipp Wolfer
af7d8d8c02 Support --encoding parameter in fix-header.py
The default encoding can be different based on the platform, but we expect UTF-8 for our source files. To stay flexible, make the default encoding UTF-8, but add a command line parameter to change it.
2021-12-20 14:57:58 +01:00
Laurent Monin
14ce07756e Update Copyright headers, with the help of fix-headers.py script 2021-11-10 21:38:54 +01:00
Philipp Wolfer
cb6973cf44 Use sets instead of lists in conditionals 2021-10-31 10:17:23 +01:00
Laurent Monin
339c5187d2 Add a bunch of aliases to fix-header script 2021-05-04 17:26:32 +02:00
Philipp Wolfer
fb83a8e76b Enable flake8 E265: Block comment should start with '# '
Most changes involve replacing non-breaking space with a simple space after the #.
2020-05-13 11:03:13 +02:00
Philipp Wolfer
fc87a788a9 fix-header.py: Update alias list 2020-02-24 15:44:26 +01:00
Laurent Monin
9093abdff7 fix-header.py: output progress message (to stderr) 2020-02-24 10:07:53 +01:00
Laurent Monin
2f8985a478 fix-header.py: Fix IndexError when file is empty 2020-02-24 10:07:05 +01:00
Laurent Monin
8dce9b1342 Add support for fix-header: skip, to ignore a file
Comment formats supported:
#
/* */
//
2020-02-22 13:52:36 +01:00
Philipp Wolfer
a319513410 fix-header.py: Preserve shebang
Preserve shebang at start of file. Also ran fix-header.py on itself.
2020-02-22 12:46:48 +01:00
Laurent Monin
5a0abcf156 Add few more entries to aliases 2020-02-22 12:46:48 +01:00
Laurent Monin
6f61574d5f fix-header.py: Fixed merging years from log and file 2020-02-22 12:46:48 +01:00
Philipp Wolfer
3e3713ea82 fix-header.py: Added shebang and moved to scripts/tools 2020-02-22 12:46:48 +01:00