Skip to content

Commit

Permalink
iox-eclipse-iceoryx#483 put spdx identifier at the end
Browse files Browse the repository at this point in the history
Signed-off-by: Dietrich Krönke <dietrich.kroenke@apex.ai>
  • Loading branch information
dkroenke committed Feb 4, 2021
1 parent c45ae26 commit ac3c196
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ Each source file needs to have this header:

```cpp
// Copyright (c) [YEAR OF INITIAL CONTRIBUTION] - [YEAR LAST CONTRIBUTION] by [CONTRIBUTOR]. All rights reserved.
// SPDX-License-Identifier: Apache License 2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -230,6 +229,8 @@ Each source file needs to have this header:
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache License 2.0
```
Note: `DATE` is either a year or a range of years with the first and last years of the range separated by a dash. So for example: "2004" (initial and last contribution in the same year) or "2000 - 2004". The first year is when the contents of the file were first created and the last year is when the contents were last modified. The year of the last contribution needs to be updated the content was modified in a new year. An option is to add a year by a comma for the case that a contributor did not modify in one year.

Expand All @@ -238,7 +239,6 @@ Example:
```cpp
// Copyright (c) 2019 - 2020, 2022 by Contributor1. All rights reserved.
// Copyright (c) 2020 - 2022 by Contributor2. All rights reserved.
// SPDX-License-Identifier: Apache License 2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -251,6 +251,8 @@ Example:
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache License 2.0
```
**_NOTE:_** For scripts or CMake files you can use `#` instead of `//` for the header.
## Quality levels
Expand Down

0 comments on commit ac3c196

Please sign in to comment.