Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add go support in SPDX checker #6

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ The intention is to be able to use it for checking files changed in a PR.

## How to use

Please see [check_license.yaml](https://github.com/eclipse/kuksa.val/blob/master/.github/workflows/check_license.yaml) for an example on how to use the action to verify
Please see [check_license.yml](https://github.com/eclipse-kuksa/kuksa-python-sdk/blob/main/.github/workflows/check_license.yml) for an example on how to use the action to verify
that files modified in a Pull Request has an SPDX license identifier.

It shall be possible to use this action from other repositories by referencing:

`- uses: eclipse-kuksa/kuksa-actions/spdx@master`
`- uses: eclipse-kuksa/kuksa-actions/spdx@2`

If you accept multiple licenses it can be specified like:

Expand Down
2 changes: 2 additions & 0 deletions spdx/verify-spdx-headers
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class Index:
'.hh': 'c++',
'.kt': 'c++',
'.java': 'c++',
'.go': 'golang',
}

def __init__(self):
Expand All @@ -73,6 +74,7 @@ class Index:
'ruby': Language('#+', shebang=True),
'c': Language('//+', '.*', ('/\\*', '\\*/')),
'c++': Language('//+', '.*', ('/\\*', '\\*/')),
'golang': Language('//+', '.*', ('/\\*', '\\*/')),
'rust': Language('//+', '.*', '//!', ('/\\*', '\\*/')),
'protobuf': Language('//+', '//!', '.*', ('/\\*', '\\*/')),
}
Expand Down