tree: 33dda31b410b36fc1f849d290cd9b10d3ada2764 [path history] [tgz]
  1. allowlists/
  2. patterns/
  3. _config.json
  4. BUILD.gn
  5. config.go
  6. init.go
  7. metrics.go
  8. pattern.go
  9. README.md
  10. search.go
tools/check-licenses/license/README.md

The “license” package handles reading the license patterns, and applying those patterns to a given license text to detect what type of license it is.

patterns: Holds all of the license pattern files. They are simple text files with a “lic” file extension. The contents of each file are regex strings.

allowlists: JSON files that define which projects are allowed to have license texts that match patterns in the restricted categories.