| 1 | package spdxlicenses |
| 2 | |
| 3 | // Code generated by go-spdx cmd/exceptions.go. DO NOT EDIT. |
| 4 | // Source: https://github.com/spdx/license-list-data specifies official SPDX license list. |
| 5 | |
| 6 | import "strings" |
| 7 | |
| 8 | // IsException does a case-insensitive lookup for the exception id in the exceptions map. |
| 9 | // It returns true and the case-sensitive ID if found, otherwise false and the original id. |
| 10 | func IsException(id string) (bool, string) { |
| 11 | foundID, ok := exceptionsMap[strings.ToUpper(id)] |
| 12 | if ok { |
| 13 | return true, foundID |
| 14 | } |
| 15 | return false, id |
| 16 | } |
| 17 | |
| 18 | // GetExceptionsMap returns a map of exception license IDs keyed by uppercase ID. |
| 19 | func GetExceptionsMap() map[string]string { |
| 20 | copied := make(map[string]string, len(exceptionsMap)) |
| 21 | for k, v := range exceptionsMap { |
| 22 | copied[k] = v |
| 23 | } |
| 24 | return copied |
| 25 | } |
| 26 | |
| 27 | // GetExceptions returns a slice of exception license IDs. |
| 28 | func GetExceptions() []string { |
| 29 | return []string{ |
| 30 | "389-exception", |
| 31 | "Asterisk-exception", |
| 32 | "Asterisk-linking-protocols-exception", |
| 33 | "Autoconf-exception-2.0", |
| 34 | "Autoconf-exception-3.0", |
| 35 | "Autoconf-exception-generic", |
| 36 | "Autoconf-exception-generic-3.0", |
| 37 | "Autoconf-exception-macro", |
| 38 | "Bison-exception-1.24", |
| 39 | "Bison-exception-2.2", |
| 40 | "Bootloader-exception", |
| 41 | "CGAL-linking-exception", |
| 42 | "Classpath-exception-2.0", |
| 43 | "Classpath-exception-2.0-short", |
| 44 | "CLISP-exception-2.0", |
| 45 | "cryptsetup-OpenSSL-exception", |
| 46 | "Digia-Qt-LGPL-exception-1.1", |
| 47 | "DigiRule-FOSS-exception", |
| 48 | "eCos-exception-2.0", |
| 49 | "erlang-otp-linking-exception", |
| 50 | "Fawkes-Runtime-exception", |
| 51 | "FLTK-exception", |
| 52 | "fmt-exception", |
| 53 | "Font-exception-2.0", |
| 54 | "freertos-exception-2.0", |
| 55 | "GCC-exception-2.0", |
| 56 | "GCC-exception-2.0-note", |
| 57 | "GCC-exception-3.1", |
| 58 | "Gmsh-exception", |
| 59 | "GNAT-exception", |
| 60 | "GNOME-examples-exception", |
| 61 | "GNU-compiler-exception", |
| 62 | "gnu-javamail-exception", |
| 63 | "Google-Patent-WebM", |
| 64 | "GPL-3.0-389-ds-base-exception", |
| 65 | "GPL-3.0-interface-exception", |
| 66 | "GPL-3.0-linking-exception", |
| 67 | "GPL-3.0-linking-source-exception", |
| 68 | "GPL-CC-1.0", |
| 69 | "GStreamer-exception-2005", |
| 70 | "GStreamer-exception-2008", |
| 71 | "harbour-exception", |
| 72 | "i2p-gpl-java-exception", |
| 73 | "Independent-modules-exception", |
| 74 | "KiCad-libraries-exception", |
| 75 | "kvirc-openssl-exception", |
| 76 | "LGPL-3.0-linking-exception", |
| 77 | "libpri-OpenH323-exception", |
| 78 | "Libtool-exception", |
| 79 | "Linux-syscall-note", |
| 80 | "LLGPL", |
| 81 | "LLVM-exception", |
| 82 | "LZMA-exception", |
| 83 | "mif-exception", |
| 84 | "mxml-exception", |
| 85 | "OCaml-LGPL-linking-exception", |
| 86 | "OCCT-exception-1.0", |
| 87 | "OpenJDK-assembly-exception-1.0", |
| 88 | "openvpn-openssl-exception", |
| 89 | "PCRE2-exception", |
| 90 | "polyparse-exception", |
| 91 | "PS-or-PDF-font-exception-20170817", |
| 92 | "QPL-1.0-INRIA-2004-exception", |
| 93 | "Qt-GPL-exception-1.0", |
| 94 | "Qt-LGPL-exception-1.1", |
| 95 | "Qwt-exception-1.0", |
| 96 | "romic-exception", |
| 97 | "RRDtool-FLOSS-exception-2.0", |
| 98 | "rsync-linking-exception", |
| 99 | "SANE-exception", |
| 100 | "SHL-2.0", |
| 101 | "SHL-2.1", |
| 102 | "Simple-Library-Usage-exception", |
| 103 | "sqlitestudio-OpenSSL-exception", |
| 104 | "stunnel-exception", |
| 105 | "SWI-exception", |
| 106 | "Swift-exception", |
| 107 | "Texinfo-exception", |
| 108 | "u-boot-exception-2.0", |
| 109 | "UBDL-exception", |
| 110 | "Universal-FOSS-exception-1.0", |
| 111 | "vsftpd-openssl-exception", |
| 112 | "WxWindows-exception-3.1", |
| 113 | "x11vnc-openssl-exception", |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | var exceptionsMap = map[string]string{ |
| 118 | "389-EXCEPTION": "389-exception", |
| 119 | "ASTERISK-EXCEPTION": "Asterisk-exception", |
| 120 | "ASTERISK-LINKING-PROTOCOLS-EXCEPTION": "Asterisk-linking-protocols-exception", |
| 121 | "AUTOCONF-EXCEPTION-2.0": "Autoconf-exception-2.0", |
| 122 | "AUTOCONF-EXCEPTION-3.0": "Autoconf-exception-3.0", |
| 123 | "AUTOCONF-EXCEPTION-GENERIC": "Autoconf-exception-generic", |
| 124 | "AUTOCONF-EXCEPTION-GENERIC-3.0": "Autoconf-exception-generic-3.0", |
| 125 | "AUTOCONF-EXCEPTION-MACRO": "Autoconf-exception-macro", |
| 126 | "BISON-EXCEPTION-1.24": "Bison-exception-1.24", |
| 127 | "BISON-EXCEPTION-2.2": "Bison-exception-2.2", |
| 128 | "BOOTLOADER-EXCEPTION": "Bootloader-exception", |
| 129 | "CGAL-LINKING-EXCEPTION": "CGAL-linking-exception", |
| 130 | "CLASSPATH-EXCEPTION-2.0": "Classpath-exception-2.0", |
| 131 | "CLASSPATH-EXCEPTION-2.0-SHORT": "Classpath-exception-2.0-short", |
| 132 | "CLISP-EXCEPTION-2.0": "CLISP-exception-2.0", |
| 133 | "CRYPTSETUP-OPENSSL-EXCEPTION": "cryptsetup-OpenSSL-exception", |
| 134 | "DIGIA-QT-LGPL-EXCEPTION-1.1": "Digia-Qt-LGPL-exception-1.1", |
| 135 | "DIGIRULE-FOSS-EXCEPTION": "DigiRule-FOSS-exception", |
| 136 | "ECOS-EXCEPTION-2.0": "eCos-exception-2.0", |
| 137 | "ERLANG-OTP-LINKING-EXCEPTION": "erlang-otp-linking-exception", |
| 138 | "FAWKES-RUNTIME-EXCEPTION": "Fawkes-Runtime-exception", |
| 139 | "FLTK-EXCEPTION": "FLTK-exception", |
| 140 | "FMT-EXCEPTION": "fmt-exception", |
| 141 | "FONT-EXCEPTION-2.0": "Font-exception-2.0", |
| 142 | "FREERTOS-EXCEPTION-2.0": "freertos-exception-2.0", |
| 143 | "GCC-EXCEPTION-2.0": "GCC-exception-2.0", |
| 144 | "GCC-EXCEPTION-2.0-NOTE": "GCC-exception-2.0-note", |
| 145 | "GCC-EXCEPTION-3.1": "GCC-exception-3.1", |
| 146 | "GMSH-EXCEPTION": "Gmsh-exception", |
| 147 | "GNAT-EXCEPTION": "GNAT-exception", |
| 148 | "GNOME-EXAMPLES-EXCEPTION": "GNOME-examples-exception", |
| 149 | "GNU-COMPILER-EXCEPTION": "GNU-compiler-exception", |
| 150 | "GNU-JAVAMAIL-EXCEPTION": "gnu-javamail-exception", |
| 151 | "GOOGLE-PATENT-WEBM": "Google-Patent-WebM", |
| 152 | "GPL-3.0-389-DS-BASE-EXCEPTION": "GPL-3.0-389-ds-base-exception", |
| 153 | "GPL-3.0-INTERFACE-EXCEPTION": "GPL-3.0-interface-exception", |
| 154 | "GPL-3.0-LINKING-EXCEPTION": "GPL-3.0-linking-exception", |
| 155 | "GPL-3.0-LINKING-SOURCE-EXCEPTION": "GPL-3.0-linking-source-exception", |
| 156 | "GPL-CC-1.0": "GPL-CC-1.0", |
| 157 | "GSTREAMER-EXCEPTION-2005": "GStreamer-exception-2005", |
| 158 | "GSTREAMER-EXCEPTION-2008": "GStreamer-exception-2008", |
| 159 | "HARBOUR-EXCEPTION": "harbour-exception", |
| 160 | "I2P-GPL-JAVA-EXCEPTION": "i2p-gpl-java-exception", |
| 161 | "INDEPENDENT-MODULES-EXCEPTION": "Independent-modules-exception", |
| 162 | "KICAD-LIBRARIES-EXCEPTION": "KiCad-libraries-exception", |
| 163 | "KVIRC-OPENSSL-EXCEPTION": "kvirc-openssl-exception", |
| 164 | "LGPL-3.0-LINKING-EXCEPTION": "LGPL-3.0-linking-exception", |
| 165 | "LIBPRI-OPENH323-EXCEPTION": "libpri-OpenH323-exception", |
| 166 | "LIBTOOL-EXCEPTION": "Libtool-exception", |
| 167 | "LINUX-SYSCALL-NOTE": "Linux-syscall-note", |
| 168 | "LLGPL": "LLGPL", |
| 169 | "LLVM-EXCEPTION": "LLVM-exception", |
| 170 | "LZMA-EXCEPTION": "LZMA-exception", |
| 171 | "MIF-EXCEPTION": "mif-exception", |
| 172 | "MXML-EXCEPTION": "mxml-exception", |
| 173 | "OCAML-LGPL-LINKING-EXCEPTION": "OCaml-LGPL-linking-exception", |
| 174 | "OCCT-EXCEPTION-1.0": "OCCT-exception-1.0", |
| 175 | "OPENJDK-ASSEMBLY-EXCEPTION-1.0": "OpenJDK-assembly-exception-1.0", |
| 176 | "OPENVPN-OPENSSL-EXCEPTION": "openvpn-openssl-exception", |
| 177 | "PCRE2-EXCEPTION": "PCRE2-exception", |
| 178 | "POLYPARSE-EXCEPTION": "polyparse-exception", |
| 179 | "PS-OR-PDF-FONT-EXCEPTION-20170817": "PS-or-PDF-font-exception-20170817", |
| 180 | "QPL-1.0-INRIA-2004-EXCEPTION": "QPL-1.0-INRIA-2004-exception", |
| 181 | "QT-GPL-EXCEPTION-1.0": "Qt-GPL-exception-1.0", |
| 182 | "QT-LGPL-EXCEPTION-1.1": "Qt-LGPL-exception-1.1", |
| 183 | "QWT-EXCEPTION-1.0": "Qwt-exception-1.0", |
| 184 | "ROMIC-EXCEPTION": "romic-exception", |
| 185 | "RRDTOOL-FLOSS-EXCEPTION-2.0": "RRDtool-FLOSS-exception-2.0", |
| 186 | "RSYNC-LINKING-EXCEPTION": "rsync-linking-exception", |
| 187 | "SANE-EXCEPTION": "SANE-exception", |
| 188 | "SHL-2.0": "SHL-2.0", |
| 189 | "SHL-2.1": "SHL-2.1", |
| 190 | "SIMPLE-LIBRARY-USAGE-EXCEPTION": "Simple-Library-Usage-exception", |
| 191 | "SQLITESTUDIO-OPENSSL-EXCEPTION": "sqlitestudio-OpenSSL-exception", |
| 192 | "STUNNEL-EXCEPTION": "stunnel-exception", |
| 193 | "SWI-EXCEPTION": "SWI-exception", |
| 194 | "SWIFT-EXCEPTION": "Swift-exception", |
| 195 | "TEXINFO-EXCEPTION": "Texinfo-exception", |
| 196 | "U-BOOT-EXCEPTION-2.0": "u-boot-exception-2.0", |
| 197 | "UBDL-EXCEPTION": "UBDL-exception", |
| 198 | "UNIVERSAL-FOSS-EXCEPTION-1.0": "Universal-FOSS-exception-1.0", |
| 199 | "VSFTPD-OPENSSL-EXCEPTION": "vsftpd-openssl-exception", |
| 200 | "WXWINDOWS-EXCEPTION-3.1": "WxWindows-exception-3.1", |
| 201 | "X11VNC-OPENSSL-EXCEPTION": "x11vnc-openssl-exception", |
| 202 | } |