Skip to content

Commit

Permalink
add notification of generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Jun 17, 2024
1 parent 848f7ad commit 494d58b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/exceptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func extractExceptionLicenseIDs() error {
// generate the GetExceptions() function in get_exceptions.go
getExceptionsContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/exceptions.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetExceptions returns a slice of exception license IDs.
func GetExceptions() []string {
return []string{
`)
Expand Down
8 changes: 8 additions & 0 deletions cmd/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func extractLicenseIDs() error {
// generate the GetLicenses() function in get_licenses.go
getLicensesContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetLicenses returns a slice of active license IDs.
func GetLicenses() []string {
return []string{
`)
Expand All @@ -76,6 +80,10 @@ func GetLicenses() []string {
// generate the GetDeprecated() function in get_deprecated.go
getDeprecatedContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetDeprecated returns a slice of deprecated license IDs.
func GetDeprecated() []string {
return []string{
`)
Expand Down
4 changes: 4 additions & 0 deletions spdxexp/spdxlicenses/get_deprecated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spdxexp/spdxlicenses/get_exceptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spdxexp/spdxlicenses/get_licenses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 494d58b

Please sign in to comment.