RFR: 1357: Add Oracle copyright header format check to jcheck [v2]

Zhao Song zsong at openjdk.org
Mon Dec 9 22:51:23 UTC 2024


On Thu, 5 Dec 2024 23:34:43 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> Zhao Song has updated the pull request incrementally with four additional commits since the last revision:
>> 
>>  - add copyright header
>>  - version 2
>>  - update
>>  - review comment
>
> jcheck/src/main/java/org/openjdk/skara/jcheck/CopyrightConfiguration.java line 29:
> 
>> 27: public class CopyrightConfiguration {
>> 28:     static final CopyrightConfiguration DEFAULT =
>> 29:             new CopyrightConfiguration(".*\\.cpp|.*\\.hpp|.*\\.c|.*\\.h|.*\\.java");
> 
> I would like to see more filetypes included by default. At least `Makefile`, `*.gmk`, `configure`, `*.m4`, `*.md` and `*.properties`. Probably also `*.cc`, `*.hh` and `*.m`.
> 
> We could also consider not defining defaults here and have it all in .jcheck/conf for better visibility.

Ah, I didn't think about the default filetypes, just copied from the default of whitespaceConfiguration. I was thinking we can configure it in .jcheck/conf later like the configuration for  whitespace check https://github.com/openjdk/jdk/blob/41c8971cbcc1d281ffae907c952637ebff945ebb/.jcheck/conf#L19

-------------

PR Review Comment: https://git.openjdk.org/skara/pull/1702#discussion_r1872324768


More information about the skara-dev mailing list