@@ -70,13 +70,12 @@ Support
70
70
=======
71
71
72
72
If you have a question, a suggestion or find a bug, enter a ticket at:
73
-
74
- https://github.com/nexB/scancode-toolkit/issues
73
+ https://github.com/nexB/scancode-toolkit/issues
75
74
76
75
Documentation
77
76
=============
78
77
79
- https://github.com/nexB/scancode-toolkit/wiki
78
+ https://github.com/nexB/scancode-toolkit/wiki
80
79
81
80
82
81
Basic Usage
@@ -105,8 +104,8 @@ Make sure Python 2.7 is installed first.
105
104
System Requirements
106
105
-------------------
107
106
108
- Hardware:
109
- ScanCode will run best with a modern X86 processor and at least 2GB or Ram and 250MB of disk.
107
+ Hardware:
108
+ ScanCode will run best with a modern X86 processor and at least 2GB or Ram and 250MB of disk.
110
109
111
110
Supported operating Systems. ScanCode should run:
112
111
@@ -116,36 +115,34 @@ Supported operating Systems. ScanCode should run:
116
115
117
116
On Linux:
118
117
119
- Use your package manager to install python2.7.
120
- If Python 2.7 is not available from your package manager, you must comile it from sources.
118
+ Use your package manager to install python2.7.
119
+ If Python 2.7 is not available from your package manager, you must compile it from sources.
121
120
122
- For instance, visit https://github.com/dejacode/about-code-tool/wiki/BuildingPython27OnCentos
123
- for instruction to compile Python from sources on Centos.
121
+ For instance, visit https://github.com/dejacode/about-code-tool/wiki/BuildingPython27OnCentos
122
+ for instruction to compile Python from sources on Centos.
124
123
125
124
On Windows:
126
125
127
- ScanCode requires the Python 2.7 (Windows x86 MSI installer)
128
- for X86 regardless of whether you run 32-bit or 64-bit Windows.
129
- DO NOT USE Python X86_64 even if you run 64 bit Windows.
130
- Download Python from this url:
131
-
132
- https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
126
+ ScanCode requires the Python 2.7 (Windows x86 MSI installer)
127
+ for X86 regardless of whether you run 32-bit or 64-bit Windows.
128
+ DO NOT USE Python X86_64 even if you run 64 bit Windows.
129
+ Download Python from this url:
130
+ https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
133
131
134
- Install Python on the c: drive and use all default installer options.
132
+ Install Python on the c: drive and use all default installer options.
133
+ See the Windows installation section for more installation details.
135
134
136
135
On Mac:
137
136
138
- Download Python from this url:
139
-
140
- https://www.python.org/ftp/python/2.7.10/python-2.7.10-macosx10.6.pkg
137
+ Download Python from this url:
138
+ https://www.python.org/ftp/python/2.7.10/python-2.7.10-macosx10.6.pkg
141
139
142
140
143
141
Installation on Linux and Mac
144
142
-----------------------------
145
143
146
- Download and extract the latest ScanCode release from::
147
-
148
- https://github.com/nexB/scancode-toolkit/releases/latest
144
+ Download and extract the latest ScanCode release from:
145
+ https://github.com/nexB/scancode-toolkit/releases/latest
149
146
150
147
151
148
Open a terminal in the extracted directory and run::
@@ -174,17 +171,20 @@ https://github.com/nexB/scancode-toolkit/releases/latest
174
171
* In the search box type::
175
172
176
173
cmd
174
+
177
175
* Select 'cmd.exe' listed in the search results.
178
176
* A new 'cmd.exe' window pops-up.
179
177
* In this window (aka. a command prompt), type this (this is 'cd' followed by a space)::
180
178
181
179
cd
180
+
182
181
* then right-click in this window and select Paste. This will paste the path where you extracted ScanCode.
183
182
* Press Enter.
184
183
* This will change the current location of your command prompt to the root directory where scancode is installed.
185
184
* Then type::
186
185
187
186
scancode -h
187
+
188
188
* Press enter. This will configure your ScanCode installation.
189
189
* Several messages are displayed which will be followed by the scancode command help.
190
190
@@ -226,7 +226,8 @@ For each scanned file, the result contains:
226
226
227
227
* its location in the codebase,
228
228
* the detected licenses and copyright statements, and
229
- * the start and end line numbers identifying where the license or copyright was found in the scanned file, and
229
+ * the start and end line numbers identifying where the license or copyright was found
230
+ in the scanned file, and
230
231
* reference information for the detected license.
231
232
232
233
For archive extraction, ScanCode uses a combination of Python modules, 7zip
@@ -250,11 +251,11 @@ You need to create a pair of files:
250
251
key: my-license
251
252
name: My License
252
253
253
- * the key name can contain only these symbols:
254
+ The key name can contain only these symbols:
254
255
255
- - lowercase letters from a to z,
256
- - numbers from 0 to 9,and
257
- - dash `- ` and `. ` period signs. No spaces.
256
+ * lowercase letters from a to z,
257
+ * numbers from 0 to 9,and
258
+ * dash `- ` and `. ` period signs. No spaces.
258
259
259
260
Save these two files in the src/licensedcode/data/licenses/ directory.
260
261
@@ -279,13 +280,13 @@ already a rule with this base name. Do not use spaces or special characters in t
279
280
Then create the rule file in the src/licensedcode/data/rules/ directory using this name replacing
280
281
`selected_base_name ` with the base name you selected::
281
282
282
- selected_base_name.RULE
283
+ selected_base_name.RULE
283
284
284
285
Save your rule text in this file.
285
286
286
287
Then create the YAML data file in the src/licensedcode/data/rules/ directory using this name::
287
288
288
- selected_base_name.yml
289
+ selected_base_name.yml
289
290
290
291
For a simple mit and gpl-2.0 detection license keys detection, the content of this file can be
291
292
this YAML snippet::
@@ -308,7 +309,7 @@ More (advanced) rules options:
308
309
You can mark a template region in your rule text using {{ double curly braces }} and up to five words can
309
310
vary and still match this rule. You must add this field to you .yml data file to mark this rule as a `template `::
310
311
311
- template: yes
312
+ template: yes
312
313
313
314
* By using a number after the opening braces, more than five words can be skipped. With `{{10 double curly braces }} `
314
315
ten words would be skipped.
0 commit comments