Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
Next release
--------------

- Fix outdated ScanCode license data base URL in api.py and templates.
https://github.com/aboutcode-org/scancode-toolkit/issues/4642

- Enable License References table for HTML Output without requiring
`--license-references` by implementing a fallback license reference
collection based on the behavior of v32.0.0.
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Contributing
Contributions are welcome and appreciated!
Every little bit helps, and a credit will always be given.

.. _issues : https://github.com/nexB/scancode-toolkit/issues
.. _issues : https://github.com/aboutcode-org/scancode-toolkit/issues
__ issues_

If you are new to ScanCode and want to find easy tickets to work on,
check `easy issues <https://github.com/nexB/scancode-toolkit/labels/easy>`_
check `easy issues <https://github.com/aboutcode-org/scancode-toolkit/labels/easy>`_

When contributing to ScanCode (such as code, bugs, documentation, etc.) you
agree to the Developer `Certificate of Origin <http://developercertificate.org/>`_
and the ScanCode license (see the `NOTICE <https://github.com/nexB/scancode-toolkit/blob/develop/NOTICE>`_ file).
and the ScanCode license (see the `NOTICE <https://github.com/aboutcode-org/scancode-toolkit/blob/develop/NOTICE>`_ file).
The same approach is used by Linux Kernel developers and several other projects.

For commits, it is best to simply add a line like this to your commit message,
Expand Down Expand Up @@ -92,7 +92,7 @@ Development

To set up ScanCode for local development:

1. Fork the scancode-toolkit on GitHub, click `fork <https://github.com/nexb/scancode-toolkit/fork>`_ button
1. Fork the scancode-toolkit on GitHub, click `fork <https://github.com/aboutcode-org/scancode-toolkit/fork>`_ button

2. Clone your fork locally:

Expand Down Expand Up @@ -192,7 +192,7 @@ To set up ScanCode for local development:
cd <resulting libbz2.so directory>
sudo ln -s <your version of libbz2.so> libbz2.so.1.0

See `this issue <https://github.com/nexB/scancode-toolkit/issues/443>`_ for more information.
See `this issue <https://github.com/aboutcode-org/scancode-toolkit/issues/443>`_ for more information.

10. Check the status of your local repository before committing, regarding files changed::

Expand Down
4 changes: 2 additions & 2 deletions scancode-toolkit.ABOUT
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: scancode-toolkit
license_expression: apache-2.0 AND cc-by-4.0 AND other-permissive AND other-copyleft
copyright: Copyright (c) nexB Inc. and others.
homepage_url: https://www.aboutcode.org/
vcs_url: git+https://github.com/nexB/scancode-toolkit
bug_tracking_url: https://github.com/nexB/scancode-toolkit/issues
vcs_url: git+https://github.com/aboutcode-org/scancode-toolkit
bug_tracking_url: https://github.com/aboutcode-org/scancode-toolkit/issues
notice_file: NOTICE
package_url: pkg:pypi/scancode-toolkit
2 changes: 1 addition & 1 deletion src/licensedcode/templates/license_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a href="{{ license.key }}.yml">yml</a> -
<a href="{{ license.key }}.json">json</a> -
<a href="{{ license.key }}.LICENSE">text</a> -
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/{{ license.key }}.LICENSE" target="_blank">edit License</a>
<a href="https://github.com/aboutcode-org/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/{{ license.key }}.LICENSE" target="_blank">edit License</a>
<hr>
<dl>
{% for label, value in license_data.items() %}
Expand Down
4 changes: 2 additions & 2 deletions src/scancode/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#
from itertools import islice
Expand Down Expand Up @@ -142,7 +142,7 @@ def get_urls(location, threshold=50, **kwargs):
SPDX_LICENSE_URL = 'https://spdx.org/licenses/{}'
DEJACODE_LICENSE_URL = 'https://enterprise.dejacode.com/urn/urn:dje:license:{}'
SCANCODE_LICENSEDB_URL = 'https://scancode-licensedb.aboutcode.org/{}'
SCANCODE_DATA_BASE_URL = 'https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data'
SCANCODE_DATA_BASE_URL = 'https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data'
SCANCODE_LICENSE_URL = f'{SCANCODE_DATA_BASE_URL}/licenses/{{}}.LICENSE'
SCANCODE_RULE_URL = f'{SCANCODE_DATA_BASE_URL}/rules/{{}}'

Expand Down
Loading