You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: THIRD-PARTY.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,3 +73,14 @@ Copyright (c) 2012 Martin Blech and individual contributors.
73
73
74
74
*xmltodict* is distributed under the terms and conditions of the [MIT License](https://opensource.org/license/MIT).
75
75
You may download the source code on the [following website](https://github.com/martinblech/xmltodict).
76
+
77
+
## For "reuse" bucket
78
+
79
+
### reuse-tool
80
+
81
+
Version 3.0.1
82
+
83
+
Copyright (c) Free Software Foundation Europe
84
+
85
+
*reuse-tool* is distributed under the terms and conditions of the [GNU General Public License version 3 or later](https://opensource.org/license/gpl-3-0).
86
+
You may download the source code on the [following website](https://github.com/fsfe/reuse-tool).
### Check if headers exist in sources using templates
219
+
220
+
_Keywords: #headers #sources #SPDX_
221
+
222
+
It is possible to run a scan in a project to check wether or not the source files contain (in fact start by) some header text.
223
+
For example it is a good practice or mandatory to have headers in sources files with legal mentions, and sometimes some headers can be missing.
224
+
The *check-sources-headers.rb* script will take a raw text file (without useless new lines or whitespaces), and generate some templates using comments symbols. If will look for source files in the project, and check if files start by the decorated version of the text, i.e. the template.
225
+
226
+
```shell
227
+
# Run the script to scan the given folder and using the given raw text template
The *check_source_headers.rb* script will generate as much templates as managed programming languages rules.
244
+
For example, if there are rules about CSS, it will create a template for the specific rules for CSS. But if there are several rules for CSS, the template will be overriden each time.
245
+
The generated template is named using the basic file name, e.g. if you give to the script a "template.txt" file, for CSS the script will build a "template.txt.CSS" file. For Swift, it will be "template.txt.SWIFT" (always extension uppercased).
246
+
Thus, supposing some previous file with that name exist, the script will ask you if you want to keep it or not.
247
+
You may want to get rid of it because it was for a previous run. But you may want to keep it because you saw some rules for a specific programming language are not really fulfilled (specially with whitespaces), so you would like to use your own custom template file.
248
+
249
+
**In a nutshell, if it failed the first time, use your custom template file (--keep) instead of using rules with comment symbols defined in the script.**
250
+
251
+
For example, for a template file name *template-ods_ios.txt* with the content bellow:
252
+
```text
253
+
Software Name: Orange Design System
254
+
SPDX-FileCopyrightText: Copyright (c) Orange SA
255
+
SPDX-License-Identifier: MIT
256
+
257
+
This software is distributed under the MIT license,
258
+
the text of which is available at https://opensource.org/license/MIT/
259
+
or see the "LICENSE" file for more details.
260
+
261
+
Authors: See CONTRIBUTORS.txt
262
+
Software description: A SwiftUI components library with code examples for Orange Design System
263
+
```
264
+
265
+
And in the Ruby script the following rule for Ruby programming language:
In the example above, we can see that the Renovate bot commit has been processed (maybe a line to remove), *BarryAllen* failed to configure his Git environment (because he types to fast on his keyboard we can suppose), the commit from GitHub Web UI of *Lex Luthor* has been picked and *Bruce WAYNE* used two addresses.
347
+
348
+
Maybe a better file after fixes could be (after manual cleaning):
349
+
350
+
```text
351
+
# This is the official list of people have contributed code to
352
+
# this repository.
353
+
#
354
+
# Names should be added to this file like so:
355
+
# Individual's name <submission email address>
356
+
# Individual's name <submission email address> <email2> <emailN>
357
+
#
358
+
# An entry with multiple email addresses specifies that the
359
+
# first address should be used in the submit logs and
360
+
# that the other addresses should be recognized as the
361
+
# same person.
362
+
363
+
# Please keep the list sorted.
364
+
Barry ALLEN <barry.allen@star.labs>
365
+
Lex LUTHOR <lex.luthor@lex.corp>
366
+
Bruce WAYNE <bruce.wayne@wayneenterprise.com> <batman@gmail.com>
0 commit comments