diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d8ced04..d1a63db 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -81,3 +81,10 @@ jobs: - name: Run Tests run: go test -v ./... + + check-license-lines: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check License Lines + uses: kt3k/license_checker@v1.0.6 diff --git a/.licenserc.json b/.licenserc.json new file mode 100644 index 0000000..7b827d6 --- /dev/null +++ b/.licenserc.json @@ -0,0 +1,12 @@ +{ + "**/*.go": [ + "// Copyright 2024 Blindspot Software", + "// Use of this source code is governed by a BSD-style", + "// license that can be found in the LICENSE file." + ], + + "ignore": [ + "protobuf/gen/", + "vendor/" + ] +} \ No newline at end of file diff --git a/cmds/dutagent/common.go b/cmds/dutagent/common.go index 77d5f88..d1b81d1 100644 --- a/cmds/dutagent/common.go +++ b/cmds/dutagent/common.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmds/dutagent/dutagent.go b/cmds/dutagent/dutagent.go index f395507..95a576b 100644 --- a/cmds/dutagent/dutagent.go +++ b/cmds/dutagent/dutagent.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // dutagent is the server of the DUT Control system. // The service ist designed to run on a single board computer, // which can handle the wiring to the devices under test (DUTs). diff --git a/cmds/dutagent/rpc.go b/cmds/dutagent/rpc.go index 2500b24..f6903b1 100644 --- a/cmds/dutagent/rpc.go +++ b/cmds/dutagent/rpc.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package main import ( diff --git a/cmds/dutagent/runRPC.go b/cmds/dutagent/runRPC.go index de8ce06..a2236ad 100644 --- a/cmds/dutagent/runRPC.go +++ b/cmds/dutagent/runRPC.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package main import ( diff --git a/cmds/dutctl/dutctl.go b/cmds/dutctl/dutctl.go index 33ff634..423df5b 100644 --- a/cmds/dutctl/dutctl.go +++ b/cmds/dutctl/dutctl.go @@ -1,6 +1,9 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // dutctl is the client application of the DUT Control system. // It provides a command line interface to issue task on remote devices (DUTs). - package main import ( diff --git a/cmds/dutctl/rpc.go b/cmds/dutctl/rpc.go index 81dbb48..ad657da 100644 --- a/cmds/dutctl/rpc.go +++ b/cmds/dutctl/rpc.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package main import ( diff --git a/internal/chanio/chanio.go b/internal/chanio/chanio.go index b026bd6..958fa3b 100644 --- a/internal/chanio/chanio.go +++ b/internal/chanio/chanio.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package chanio provides a way to use channels as io.Reader and io.Writer. package chanio diff --git a/internal/chanio/chanio_test.go b/internal/chanio/chanio_test.go index 6ddb827..0a1fb0b 100644 --- a/internal/chanio/chanio_test.go +++ b/internal/chanio/chanio_test.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package chanio import ( diff --git a/internal/dutagent/broker.go b/internal/dutagent/broker.go index 9a833cb..2655d08 100644 --- a/internal/dutagent/broker.go +++ b/internal/dutagent/broker.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package broker provides utilities for a dutagent service to handel the RPC requests. package dutagent diff --git a/internal/dutagent/init.go b/internal/dutagent/init.go index f3b7369..578a4ab 100644 --- a/internal/dutagent/init.go +++ b/internal/dutagent/init.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package dutagent import ( diff --git a/internal/dutagent/session.go b/internal/dutagent/session.go index 4b6f63e..7fcbd8d 100644 --- a/internal/dutagent/session.go +++ b/internal/dutagent/session.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package dutagent import ( diff --git a/internal/dutagent/worker.go b/internal/dutagent/worker.go index 95472f3..70b8c4e 100644 --- a/internal/dutagent/worker.go +++ b/internal/dutagent/worker.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package dutagent import ( diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go index e574ce4..af7d236 100644 --- a/internal/fsm/fsm.go +++ b/internal/fsm/fsm.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package fsm provides a simple but powerful finite state machine implementation. // // The design is inspired by Rob Pike's talk "Lexical Scanning in Go". diff --git a/internal/fsm/fsm_test.go b/internal/fsm/fsm_test.go index fadb2a5..9823054 100644 --- a/internal/fsm/fsm_test.go +++ b/internal/fsm/fsm_test.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package fsm import ( diff --git a/pkg/dut/dut.go b/pkg/dut/dut.go index 4daa497..b57ee83 100644 --- a/pkg/dut/dut.go +++ b/pkg/dut/dut.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package dut provides representation of the device-under-test (DUT). package dut diff --git a/pkg/module/dummy/dummy_file_transfer.go b/pkg/module/dummy/dummy_file_transfer.go index 0b6faec..d086649 100644 --- a/pkg/module/dummy/dummy_file_transfer.go +++ b/pkg/module/dummy/dummy_file_transfer.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package dummy import ( diff --git a/pkg/module/dummy/dummy_repeat.go b/pkg/module/dummy/dummy_repeat.go index 4011b66..c3b8846 100644 --- a/pkg/module/dummy/dummy_repeat.go +++ b/pkg/module/dummy/dummy_repeat.go @@ -1,3 +1,6 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package dummy import ( diff --git a/pkg/module/dummy/dummy_status.go b/pkg/module/dummy/dummy_status.go index 642f6c7..c480ea4 100644 --- a/pkg/module/dummy/dummy_status.go +++ b/pkg/module/dummy/dummy_status.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Dummy module implementation. package dummy diff --git a/pkg/module/module.go b/pkg/module/module.go index 6468755..a8d1a09 100644 --- a/pkg/module/module.go +++ b/pkg/module/module.go @@ -1,3 +1,7 @@ +// Copyright 2024 Blindspot Software +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package module provides a plugin system for the DUT package. // Modules are the building blocks of a command and host the actual implementation // of the steps that are executed on a device-under-test (DUT).