-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SPDX license header #483
Comments
Is it intended inf/... are the only ones with the description to have a different offset than the copyrights? |
Merely an overlook. Fixed consistency, no idea whether 1 or two spaces are better. |
I think one space is more consistent with the rest. Two spaces for a prefix-less C comment and one space for those with a prefix is how it's done everywhere. |
I had a look on https://opensource.stackexchange.com/ and found this answer (which, while directly on topic, actually does not seem very helpful) and this answer (which seems both on topic and helpful). The reason I mention it because the second answer specifically recommends putting the newest copyright notice at the top. Having just tried it, that works quite well: it naturally looks as if the top line is the most recent contribution, built on top of the earlier contributions - as it is. Whereas putting the newer line lower actually makes it look less clear what the relative precedence of contributions is. I know that there's no clear (or just no) reason for this to logically be the case, but anyway, I just wondered, since there's a fairly clear recommendation from a fairly authoritative (seeming?) source, whether OC was certain about keeping most recent last? |
EDK II consistently does it otherwise to be honest, e.g.: /** @file
ACPI 5.1 definitions from the ACPI Specification Revision 5.1 Errata B January, 2016.
Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2020, ARM Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/ Not sure what to choose here, @mhaeuser? |
I wasn't taking that into account - given how uniformly OC tries to stick to EDK II style, I think I'd revise my preference, and agree that it makes sense to go newest last in OC too. |
Currently we use quite a lot of different formatting for license types and copyright holders, and while it is not really important for a hobby project, such as ours, I believe it is reasonable to update things for simplicity and to reduce the bureaucracy.
From there on I request us to use BSD-3-Clause everywhere as before with the following formatting for file headers.
Notes:
<BR>
between copyright holders, as in my opinion it reduces readability, but may be required by doxygen.C-like languages:
or
inf/python/perl:
or
nasm:
or
The text was updated successfully, but these errors were encountered: