Ensure we detect Apache license notice

Open
#5,450 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@Verkan39 is already working on this.

Since Nov 6, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by examining how ScanCode detects Apache license notices and how its tests cover license text matching; the issue does not name files or tests. Reproduce the provided LICENSE example and determine why its two Apache sections should be recognized as one license. Done means the scanner reports a single Apache License 2.0 result for this example.

Written by the indexing model from the issue text.

Description

license detection accuracy

See https://github.com/NuGuardAI/nuguard/blob/develop/LICENSE
It has two apache parts. We should detect a single license.

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Copyright 2026 NuGuard AI

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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.

Dominant language
Python
Stars
2.7k
Forks
871
Avg merge
1d 10h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/scancode-toolkit

All issues in aboutcode-org/scancode-toolkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.