Commit Graph

11 Commits (8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a)

Author SHA1 Message Date
Andrea Pappacoda cdb240f3d4
chore: make yuzu REUSE compliant
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.

Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.

The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.

Following REUSE has a few advantages over the current approach:

- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
  `.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
  files like binary assets / images is always accurate and up to date

To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.

[REUSE]: https://reuse.software

Follow-up to 01cf05bc75
2022-07-27 12:53:49 +07:00
N00byKing b326369704
pre-commit: Change comment from citra to yuzu 2018-03-26 21:34:19 +07:00
wwylele fa5bd0ab10 hook: remove clang-format check 2017-02-17 13:52:23 +07:00
Jan Beich 3925f4ff63 hooks: convert pre-commit to POSIX syntax 2016-10-27 23:28:29 +07:00
Ricardo de Almeida Gonzaga 13d46f6820 Fix typos 2016-10-20 12:26:59 +07:00
Emmanuel Gil Peyrot 362659f009 Git hook: Remove trailing semicolons wrecking vim’s syntax highlighting. 2016-09-18 09:36:57 +07:00
Emmanuel Gil Peyrot 491f5bab88 Git hook: Import Dolphin’s clang-format hook. 2016-09-18 09:36:57 +07:00
Yuri Kunde Schlesner 37319fb17f Only check src/ directory for whitespace errors in the pre-commit hook
This allows importing of external libraries into externals/ without
having to reformat them. Unfortunately it also allows whitespace to be
introduced in files like the root CMakeLists.txt, but that is a small
downside compared to the tradeoff.
2015-08-31 07:12:25 +07:00
JSFernandes 256eb24777 Fix permissions in pre-commit hook 2015-07-14 00:58:18 +07:00
Lectem 499171ca64 enforce config from hook 2015-06-14 00:29:56 +07:00
Lectem 85183a702a force no-tab/trailing spaces with git hook
Remove unneeded stuff from pre-commit script

The check against an empty commit was not needed (it is only a security for the 1st commit after git init).
It could also possibly pose problems because of the redirection to /dev/null on some windows systems.

newline at EOF & fixed indent
2015-06-09 19:59:39 +07:00