diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-05 22:35:40 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-06 00:27:33 +0700 |
| commit | 2cda75bc9385da199b4db5f6cc2692bfd694fcf1 (patch) | |
| tree | 75841e8ab18c3838256461e3a8b8c66c5d844ad5 /scm.go | |
| download | spdxconv-2cda75bc9385da199b4db5f6cc2692bfd694fcf1.tar.xz | |
spdxconv: tool to convert license and copyright to SPDX format
This is the initial implementation, work in progress, with the following
functions,
* loading the spdxconv.cfg file
* scanning list of files to be converted
* detect .git repository and exclude files ignored by .gitignore
No conversion logic is implemented yet.
Diffstat (limited to 'scm.go')
| -rw-r--r-- | scm.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-3.0-only +// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> + +package spdxconv + +// sourceCodeManagement define the interface for SCM tools. +type sourceCodeManagement interface { + IsIgnored(path string) bool +} + +// dummySCM is a no scm. It always return false on IsIgnored. +type dummySCM struct{} + +func (scm *dummySCM) IsIgnored(path string) bool { + return false +} |
