fastify / website

https://fastify.dev/
MIT License
60 stars 54 forks source link

chore(license): make detectable by GitHub #199

Closed 10xLaCroixDrinker closed 5 months ago

10xLaCroixDrinker commented 5 months ago

Description

Currently, GitHub cannot detect the license for this project. The note about the fastify team in the LICENSE file prevents GitHub from being able to detect the license. The GitHub documentation notes the following:

If your repository is using a license that is listed on the Choose a License website and it's not displaying clearly at the top of the repository page, it may contain multiple licenses or other complexity. To have your license detected, simplify your LICENSE file and note the complexity somewhere else, such as your repository's README file.

In order to keep the whole thing intact and allow the license to be detected, I combined the three lines.

GitHub uses the ruby gem licensee to detect the license. I used that to test the changes.

Before:

$ licensee detect fastify-website
License:        NOASSERTION
Matched files:  LICENSE
LICENSE:
  Content hash:  78fdd4cae4b531973a9bfe40c9bf196003f42687
  License:       NOASSERTION
  Closest non-matching licenses:
    MIT similarity:    84.55%
    MIT-0 similarity:  66.14%
    NCSA similarity:   60.69%

After:

$ licensee detect fastify-website
License:        MIT
Matched files:  LICENSE
LICENSE:
  Content hash:  4c2c763d64bbc7ef2e58b0ec6d06d90cee9755c9
  Attribution:   Copyright (c) 2016-2023 The Fastify Team, listed at https://github.com/fastify/fastify#team and in the README file.
  Confidence:    100.00%
  Matcher:       Licensee::Matchers::Exact
  License:       MIT

Check List