Skip to content

Commit e4237cc

Browse files
authored
Merge branch 'develop' into rename-first-column-in-csv
2 parents 391eeba + 794c7f1 commit e4237cc

4,969 files changed

Lines changed: 65532 additions & 27818 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,24 @@ matrix:
8484
script:
8585
- source bin/activate
8686
- cd docs
87-
# This script tests the Sphinx Documentation build
88-
# Also checks for broken links in the documentation
89-
- ./scripts/sphinx_build_link_check.sh
90-
# This script checks for documentation style errors
87+
# Check that the Sphinx Documentation build minimally
88+
- sphinx-build -E source build
89+
# Check for documentation style errors
9190
- ./scripts/doc8_style_check.sh
9291
language: python
9392
python: "3.6"
9493
dist: bionic
9594

95+
- os: linux
96+
sudo: required
97+
script:
98+
# This checks .ABOUT file links using `about check`
99+
- source bin/activate
100+
- ./bin/about check thirdparty/
101+
language: python
102+
python: "3.6"
103+
dist: bionic
104+
96105
# Refer https://github.com/dkhamsing/awesome_bot#command-line for more info.
97106
- os: linux
98107
sudo: required
@@ -107,7 +116,7 @@ matrix:
107116
# This checks for broken links inside README.md files of plugins/plugins-builtin folders.
108117
- awesome_bot */**/*.md --allow-redirect --allow-dupe --skip-save-results
109118
# This checks for broken links inside Thirdparty .ABOUT files
110-
- awesome_bot */*.ABOUT --allow-redirect --allow-dupe --skip-save-results
119+
- awesome_bot thirdparty/*.ABOUT --allow-redirect --allow-dupe --skip-save-results
111120

112121
addons:
113122
homebrew:

AUTHORS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ The following organizations or individuals have contributed to ScanCode:
1616
- Tushar Mittal @techytushar
1717
- Martin Petkov @MartinPetkov
1818
- Mrinal Paliwal @mriiinal
19+
- Mankaran Singh @MankaranSingh
20+
- Ravi Jain @JRavi2
21+
- Tushar Goel @TG1999

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
Outputs:
5+
- The "headers" attribute in JSON outputs now contains a 'duration' field. #1942
6+
7+
OS support:
8+
- Add 10.15 macOS tests to azure-pipelines
9+
410
v3.0.2 (2019-02-15)
511
-------------------
612

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ License
162162
=======
163163

164164
* Apache-2.0 with an acknowledgement required to accompany the scan output.
165-
* Public domain CC-0 for reference datasets.
165+
* Public domain CC0-1.0 for reference datasets.
166166
* Multiple licenses (GPL2/3, LGPL, MIT, BSD, etc.) for third-party components.
167167

168168
See the NOTICE file and the .ABOUT files that document the origin and license of

azure-pipelines.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ jobs:
8383

8484
- template: etc/ci/azure-mac.yml
8585
parameters:
86-
job_name: macos1013_py27
87-
image_name: macos-10.13
86+
job_name: macos1014_py27
87+
image_name: macos-10.14
8888
python_versions: ['2.7']
8989
test_suites:
9090
all: bin/py.test -n 2 -vvs --reruns=3 --ignore=tests/scancode
9191
scancode: bin/py.test -vvs --reruns=3 tests/scancode
9292

9393
- template: etc/ci/azure-mac.yml
9494
parameters:
95-
job_name: macos1014_py27
96-
image_name: macos-10.14
95+
job_name: macos1015_py27
96+
image_name: macos-10.15
9797
python_versions: ['2.7']
9898
test_suites:
9999
all: bin/py.test -n 2 -vvs --reruns=3 --ignore=tests/scancode
100-
scancode: bin/py.test -vvs --reruns=3 tests/scancode
100+
scancode: bin/py.test -vvs --reruns=3 tests/scancode
101101

102102

103103
################################################################################
@@ -236,19 +236,19 @@ jobs:
236236

237237
- template: etc/ci/azure-mac.yml
238238
parameters:
239-
job_name: macos_1013_py36
240-
image_name: macos-10.13
239+
job_name: macos1014_py36
240+
image_name: macos-10.14
241241
python_versions: ['3.6']
242242
test_suites:
243243
all: bin/py.test -n 2 -vvs --reruns=3
244244

245245
- template: etc/ci/azure-mac.yml
246246
parameters:
247-
job_name: macos1014_py36
248-
image_name: macos-10.14
247+
job_name: macos1015_py36
248+
image_name: macos-10.15
249249
python_versions: ['3.6']
250250
test_suites:
251-
all: bin/py.test -n 2 -vvs --reruns=3
251+
all: bin/py.test -n 2 -vvs --reruns=3
252252

253253
- template: etc/ci/azure-win.yml
254254
parameters:

docs/source/getting-started/home.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ScanCode tries to address this issue by offering:
2020
- Your choice of JSON or other output formats (SPDX, HTML, CSV) for integration with other tools
2121
- ScanCode workbench for Visualization
2222
- Well-tested, easy to hack, and well-documented code
23-
- Release of the code and reference data under attribution licenses (Apache 2.0 and CC-BY-1.0)
23+
- Release of the code and reference data under attribution licenses (Apache 2.0 and CC0-1.0)
2424
- Plugin System for easily adding new Functionality to Scans.
2525
- Python 3 Unicode Capabilities for better supporting users from 100+ languages.
2626
- Extensive Documentation Support.

docs/source/getting-started/whats-new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ deprecated hereafter. The new documentation has improved support in terms of:
4949
#. Consistent with the Latest Version
5050
#. Command Line Interface Reference
5151
#. Getting Started Support for Newcomers
52-
#. Restructured to fit into the recommended `4 Category Doc Format <https://www.divio.com/blog/documentation/>`_
52+
#. Restructured to fit into the recommended `4 Category Doc Format <https://docs.divio.com/en/latest/>`_
5353
#. Updated Tutorials/How To's
5454
#. Updated Plugin Support
5555

docs/source/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ License
33

44
ScanCode Toolkit includes documents that are dedicated to the Public Domain using the
55
Creative Commons CC0 1.0 Universal (CC0 1.0) Public Domain Dedication:
6-
http://creativecommons.org/publicdomain/zero/1.0/
6+
https://creativecommons.org/publicdomain/zero/1.0/

docs/source/misc/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ crafted regex):
3737
a grammar; it has a few thousand tests.
3838
- licenses and copyrights are detected in texts and binaries
3939

40-
Licensecheck (available here for reference: /https://metacpan.org/release/App-Licensecheck )
40+
Licensecheck (available here for reference: /https://metacpan.org/pod/App::Licensecheck )
4141
is a Perl script using hand-crafted regex patterns to find typical copyright statements and
4242
about 50 common licenses. There are about 50 license detection tests.
4343

etc/scripts/buildrules.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,23 @@ def cli(licenses_file):
184184

185185
print()
186186
for rule in rules_data:
187+
is_negative = rule.data.get('is_negative')
188+
is_false_positive = rule.data.get('is_false_positive')
187189
existing = rule_exists(rule.text)
188-
if existing:
189-
print('Skipping existing rule:', existing, 'with text:\n', rule.text[:50].strip(), '...')
190+
if existing and not is_negative:
191+
print('Skipping existing non-negative rule:', existing, 'with text:\n', rule.text[:50].strip(), '...')
190192
continue
191-
192-
if rule.data.get('is_negative'):
193+
194+
if is_negative:
193195
base_name = 'not-a-license'
194196
else:
195197
license_expression = rule.data.get('license_expression')
196198
if not license_expression:
197199
raise Exception('Missing license_expression for text:', rule)
198200
licensing.parse(license_expression, validate=True, simple=True)
199201
base_name = license_expression
202+
if is_false_positive:
203+
base_name = 'false-positive_' + base_name
200204

201205
base_loc = find_rule_base_loc(base_name)
202206

@@ -218,8 +222,8 @@ def cli(licenses_file):
218222
else:
219223
rules_tokens.add(rule_tokens)
220224
rulerec.dump()
221-
models.update_ignorables(rulerec, verbose=True)
222-
print('Rule added:', rulerec.identifier)
225+
models.update_ignorables(rulerec, verbose=False)
226+
print('Rule added:', 'file://' + rulerec.data_file, '\n', 'file://' + rulerec.text_file,)
223227

224228

225229
if __name__ == '__main__':

0 commit comments

Comments
 (0)