github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/internal/licenses/list.go (about) 1 package licenses 2 3 // all of these taken from https://github.com/golang/pkgsite/blob/8996ff632abee854aef1b764ca0501f262f8f523/internal/licenses/licenses.go#L338 4 // which unfortunately is not exported. But fortunately is under BSD-style license. Take note that this list has 5 // been manually updated to include more license filenames (see https://github.com/anchore/syft/pull/2227). 6 7 func FileNames() []string { 8 return []string{ 9 "AL2.0", 10 "COPYING", 11 "COPYING.md", 12 "COPYING.markdown", 13 "COPYING.txt", 14 "LGPL2.1", 15 "LICENCE", 16 "LICENCE.md", 17 "LICENCE.markdown", 18 "licence.txt", 19 "LICENCE.txt", 20 "LICENSE", 21 "LICENSE.md", 22 "LICENSE.markdown", 23 "LICENSE.txt", 24 "LICENSE-2.0.txt", 25 "LICENCE-2.0.txt", 26 "LICENSE-APACHE", 27 "LICENCE-APACHE", 28 "LICENSE-APACHE-2.0.txt", 29 "LICENCE-APACHE-2.0.txt", 30 "LICENSE-MIT", 31 "LICENCE-MIT", 32 "LICENSE.MIT", 33 "LICENCE.MIT", 34 "LICENSE.code", 35 "LICENCE.code", 36 "LICENSE.docs", 37 "LICENCE.docs", 38 "LICENSE.rst", 39 "LICENCE.rst", 40 "MIT-LICENSE", 41 "MIT-LICENCE", 42 "MIT-LICENSE.md", 43 "MIT-LICENCE.md", 44 "MIT-LICENSE.markdown", 45 "MIT-LICENCE.markdown", 46 "MIT-LICENSE.txt", 47 "MIT-LICENCE.txt", 48 "MIT_LICENSE", 49 "MIT_LICENCE", 50 "UNLICENSE", 51 "UNLICENCE", 52 } 53 }