aboutsummaryrefslogtreecommitdiff
path: root/scm.go
diff options
context:
space:
mode:
Diffstat (limited to 'scm.go')
-rw-r--r--scm.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/scm.go b/scm.go
new file mode 100644
index 0000000..d94ee18
--- /dev/null
+++ b/scm.go
@@ -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
+}