diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ed919d93..847612ed 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + blank_issues_enabled: false contact_links: - name: Provider-related Feedback and Questions diff --git a/.github/gobenchdata-checks.yml b/.github/gobenchdata-checks.yml index 85133cf6..12f08849 100644 --- a/.github/gobenchdata-checks.yml +++ b/.github/gobenchdata-checks.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + checks: - package: ./internal/langserver/handlers name: local-single-module-no-provider diff --git a/.release/ci.hcl b/.release/ci.hcl index 532c67d4..c7253cc1 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + schema = "1" project "terraform-ls" { diff --git a/.release/release-metadata.hcl b/.release/release-metadata.hcl index 5d043eae..6e30af41 100644 --- a/.release/release-metadata.hcl +++ b/.release/release-metadata.hcl @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + url_source_repository = "https://github.com/hashicorp/terraform-ls" url_license = "https://github.com/hashicorp/terraform-ls/blob/main/LICENSE" diff --git a/.release/security-scan.hcl b/.release/security-scan.hcl index 8835cf4b..8e81ac9f 100644 --- a/.release/security-scan.hcl +++ b/.release/security-scan.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + binary { go_modules = true # Scan the Go modules found in the binary osv = true # Use the Open Source Vulnerabilities (OSV) database diff --git a/algolia.go b/algolia.go index 25fd860a..18af714c 100644 --- a/algolia.go +++ b/algolia.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main // Algolia application ID which should be used for searching Terraform registry modules diff --git a/internal/algolia/algolia.go b/internal/algolia/algolia.go index fff4b913..57841eda 100644 --- a/internal/algolia/algolia.go +++ b/internal/algolia/algolia.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package algolia import "context" diff --git a/internal/cmd/commands.go b/internal/cmd/commands.go index aa02956f..bd9f96ea 100644 --- a/internal/cmd/commands.go +++ b/internal/cmd/commands.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/cmd/inspect_module_command.go b/internal/cmd/inspect_module_command.go index 86264816..066b2ee7 100644 --- a/internal/cmd/inspect_module_command.go +++ b/internal/cmd/inspect_module_command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/cmd/serve_command.go b/internal/cmd/serve_command.go index 7563778b..2f601b01 100644 --- a/internal/cmd/serve_command.go +++ b/internal/cmd/serve_command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/cmd/version_command.go b/internal/cmd/version_command.go index 0ccc304a..a28f159a 100644 --- a/internal/cmd/version_command.go +++ b/internal/cmd/version_command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/codelens/reference_count.go b/internal/codelens/reference_count.go index b4c6f035..843c054b 100644 --- a/internal/codelens/reference_count.go +++ b/internal/codelens/reference_count.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package codelens import ( diff --git a/internal/context/context.go b/internal/context/context.go index b3e7e31b..95f52908 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package context import ( diff --git a/internal/context/errors.go b/internal/context/errors.go index 58965f65..0e5f6b61 100644 --- a/internal/context/errors.go +++ b/internal/context/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package context import "fmt" diff --git a/internal/context/signal_cancel.go b/internal/context/signal_cancel.go index f8b30f1c..896017c7 100644 --- a/internal/context/signal_cancel.go +++ b/internal/context/signal_cancel.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package context import ( diff --git a/internal/decoder/context.go b/internal/decoder/context.go index 52a3bc81..538c3dd4 100644 --- a/internal/decoder/context.go +++ b/internal/decoder/context.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder import ( diff --git a/internal/decoder/decoder.go b/internal/decoder/decoder.go index 365c6362..e951e7cf 100644 --- a/internal/decoder/decoder.go +++ b/internal/decoder/decoder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder import ( diff --git a/internal/decoder/decoder_test.go b/internal/decoder/decoder_test.go index f4a2d935..261e1a68 100644 --- a/internal/decoder/decoder_test.go +++ b/internal/decoder/decoder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder_test import ( diff --git a/internal/decoder/functions.go b/internal/decoder/functions.go index 67215e85..7ef784a7 100644 --- a/internal/decoder/functions.go +++ b/internal/decoder/functions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder import ( diff --git a/internal/decoder/module_schema.go b/internal/decoder/module_schema.go index 8bd37acb..c4286630 100644 --- a/internal/decoder/module_schema.go +++ b/internal/decoder/module_schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder import ( diff --git a/internal/decoder/path_reader.go b/internal/decoder/path_reader.go index bff7c021..865b4b9c 100644 --- a/internal/decoder/path_reader.go +++ b/internal/decoder/path_reader.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package decoder import ( diff --git a/internal/document/change.go b/internal/document/change.go index 235ddf0b..c055e61c 100644 --- a/internal/document/change.go +++ b/internal/document/change.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/change_test.go b/internal/document/change_test.go index f85df887..b38fb25d 100644 --- a/internal/document/change_test.go +++ b/internal/document/change_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/dir_handle.go b/internal/document/dir_handle.go index 46c738df..327e1912 100644 --- a/internal/document/dir_handle.go +++ b/internal/document/dir_handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/dir_handle_test.go b/internal/document/dir_handle_test.go index 77480193..49906db5 100644 --- a/internal/document/dir_handle_test.go +++ b/internal/document/dir_handle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/document.go b/internal/document/document.go index d5f5c9b7..b8a53f90 100644 --- a/internal/document/document.go +++ b/internal/document/document.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/errors.go b/internal/document/errors.go index b2e72bf0..47b6ce8a 100644 --- a/internal/document/errors.go +++ b/internal/document/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/handle.go b/internal/document/handle.go index 5623b533..3dffbc38 100644 --- a/internal/document/handle.go +++ b/internal/document/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/handle_test.go b/internal/document/handle_test.go index 0115c39a..e3b0a97d 100644 --- a/internal/document/handle_test.go +++ b/internal/document/handle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/position.go b/internal/document/position.go index e1fa9444..7f9e7b18 100644 --- a/internal/document/position.go +++ b/internal/document/position.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import ( diff --git a/internal/document/range.go b/internal/document/range.go index 1e938858..fc211048 100644 --- a/internal/document/range.go +++ b/internal/document/range.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package document import "fmt" diff --git a/internal/filesystem/document.go b/internal/filesystem/document.go index a336dc78..e1bbc378 100644 --- a/internal/filesystem/document.go +++ b/internal/filesystem/document.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package filesystem import ( diff --git a/internal/filesystem/filesystem.go b/internal/filesystem/filesystem.go index a8810c5f..6218ca26 100644 --- a/internal/filesystem/filesystem.go +++ b/internal/filesystem/filesystem.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package filesystem import ( diff --git a/internal/filesystem/filesystem_test.go b/internal/filesystem/filesystem_test.go index 5e49aff2..61856a13 100644 --- a/internal/filesystem/filesystem_test.go +++ b/internal/filesystem/filesystem_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package filesystem import ( diff --git a/internal/filesystem/inmem.go b/internal/filesystem/inmem.go index baa010c8..780fb575 100644 --- a/internal/filesystem/inmem.go +++ b/internal/filesystem/inmem.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package filesystem import ( diff --git a/internal/filesystem/os_fs.go b/internal/filesystem/os_fs.go index b6fb5709..796f9abf 100644 --- a/internal/filesystem/os_fs.go +++ b/internal/filesystem/os_fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package filesystem import ( diff --git a/internal/hcl/diff.go b/internal/hcl/diff.go index 2788f60e..0a7f0ab0 100644 --- a/internal/hcl/diff.go +++ b/internal/hcl/diff.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcl import ( diff --git a/internal/hcl/diff_test.go b/internal/hcl/diff_test.go index 247366f2..b5a49178 100644 --- a/internal/hcl/diff_test.go +++ b/internal/hcl/diff_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcl import ( diff --git a/internal/hcl/errors.go b/internal/hcl/errors.go index 7cba4631..5cbde258 100644 --- a/internal/hcl/errors.go +++ b/internal/hcl/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcl import ( diff --git a/internal/hooks/hooks.go b/internal/hooks/hooks.go index 0bc30d7a..5fc64ac2 100644 --- a/internal/hooks/hooks.go +++ b/internal/hooks/hooks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package hooks enables the implementation of hooks for dynamic // autocompletion. Hooks should be added to this package and // registered via AppendCompletionHooks in completion_hooks.go. diff --git a/internal/hooks/module_source_local.go b/internal/hooks/module_source_local.go index 172106d6..fdc9de39 100644 --- a/internal/hooks/module_source_local.go +++ b/internal/hooks/module_source_local.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/hooks/module_source_local_test.go b/internal/hooks/module_source_local_test.go index 6453f28a..fab8dede 100644 --- a/internal/hooks/module_source_local_test.go +++ b/internal/hooks/module_source_local_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/hooks/module_source_registry.go b/internal/hooks/module_source_registry.go index d3e9d458..bd39b9ae 100644 --- a/internal/hooks/module_source_registry.go +++ b/internal/hooks/module_source_registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/hooks/module_source_registry_test.go b/internal/hooks/module_source_registry_test.go index 5197a20b..5608fb22 100644 --- a/internal/hooks/module_source_registry_test.go +++ b/internal/hooks/module_source_registry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/hooks/module_version.go b/internal/hooks/module_version.go index 91962012..b5df5bb7 100644 --- a/internal/hooks/module_version.go +++ b/internal/hooks/module_version.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/hooks/module_version_test.go b/internal/hooks/module_version_test.go index 93ab204b..7802a76b 100644 --- a/internal/hooks/module_version_test.go +++ b/internal/hooks/module_version_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hooks import ( diff --git a/internal/indexer/document_change.go b/internal/indexer/document_change.go index 46030dd4..e5adaef2 100644 --- a/internal/indexer/document_change.go +++ b/internal/indexer/document_change.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/indexer/document_open.go b/internal/indexer/document_open.go index bcd3902c..ec6a9550 100644 --- a/internal/indexer/document_open.go +++ b/internal/indexer/document_open.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/indexer/fs.go b/internal/indexer/fs.go index 4349bb28..5f7a6b5c 100644 --- a/internal/indexer/fs.go +++ b/internal/indexer/fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import "io/fs" diff --git a/internal/indexer/indexer.go b/internal/indexer/indexer.go index 337e197b..d269af19 100644 --- a/internal/indexer/indexer.go +++ b/internal/indexer/indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/indexer/module_calls.go b/internal/indexer/module_calls.go index aff8507b..5c15987f 100644 --- a/internal/indexer/module_calls.go +++ b/internal/indexer/module_calls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/indexer/walker.go b/internal/indexer/walker.go index 2332e21f..bbf42ae5 100644 --- a/internal/indexer/walker.go +++ b/internal/indexer/walker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/indexer/watcher.go b/internal/indexer/watcher.go index 9142c257..f9f86c55 100644 --- a/internal/indexer/watcher.go +++ b/internal/indexer/watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/internal/job/ignore_state.go b/internal/job/ignore_state.go index 3bc946a9..a46085bd 100644 --- a/internal/job/ignore_state.go +++ b/internal/job/ignore_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package job import ( diff --git a/internal/job/job.go b/internal/job/job.go index a504e752..d96dc0e9 100644 --- a/internal/job/job.go +++ b/internal/job/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package job import ( diff --git a/internal/job/job_id.go b/internal/job/job_id.go index 1f6e0724..fca8c64a 100644 --- a/internal/job/job_id.go +++ b/internal/job/job_id.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package job type ID string diff --git a/internal/job/job_store.go b/internal/job/job_store.go index 8073d0e2..0fc02e38 100644 --- a/internal/job/job_store.go +++ b/internal/job/job_store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package job import ( diff --git a/internal/langserver/cmd/cmd.go b/internal/langserver/cmd/cmd.go index bbf589e0..a5c4788a 100644 --- a/internal/langserver/cmd/cmd.go +++ b/internal/langserver/cmd/cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/langserver/cmd/cmd_args.go b/internal/langserver/cmd/cmd_args.go index 1fdfa054..2500f776 100644 --- a/internal/langserver/cmd/cmd_args.go +++ b/internal/langserver/cmd/cmd_args.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/internal/langserver/diagnostics/diagnostics.go b/internal/langserver/diagnostics/diagnostics.go index 7c2eef35..163f6214 100644 --- a/internal/langserver/diagnostics/diagnostics.go +++ b/internal/langserver/diagnostics/diagnostics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package diagnostics import ( diff --git a/internal/langserver/diagnostics/diagnostics_test.go b/internal/langserver/diagnostics/diagnostics_test.go index 33dfb46f..4a91f5a7 100644 --- a/internal/langserver/diagnostics/diagnostics_test.go +++ b/internal/langserver/diagnostics/diagnostics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package diagnostics import ( diff --git a/internal/langserver/diagnostics/validate_diags.go b/internal/langserver/diagnostics/validate_diags.go index df481239..5cfdbcc5 100644 --- a/internal/langserver/diagnostics/validate_diags.go +++ b/internal/langserver/diagnostics/validate_diags.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package diagnostics import ( diff --git a/internal/langserver/errors/errors.go b/internal/langserver/errors/errors.go index 45ed08bf..034b1fc1 100644 --- a/internal/langserver/errors/errors.go +++ b/internal/langserver/errors/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package errors import ( diff --git a/internal/langserver/handlers/cancel_request.go b/internal/langserver/handlers/cancel_request.go index b470054e..e5364925 100644 --- a/internal/langserver/handlers/cancel_request.go +++ b/internal/langserver/handlers/cancel_request.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/cancel_request_test.go b/internal/langserver/handlers/cancel_request_test.go index 289844d5..80fcaffe 100644 --- a/internal/langserver/handlers/cancel_request_test.go +++ b/internal/langserver/handlers/cancel_request_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/code_action.go b/internal/langserver/handlers/code_action.go index bfadc54f..e062eec7 100644 --- a/internal/langserver/handlers/code_action.go +++ b/internal/langserver/handlers/code_action.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/code_action_test.go b/internal/langserver/handlers/code_action_test.go index 345a5a88..bc7f0adb 100644 --- a/internal/langserver/handlers/code_action_test.go +++ b/internal/langserver/handlers/code_action_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/code_lens.go b/internal/langserver/handlers/code_lens.go index 03bc1deb..bfcdd3c1 100644 --- a/internal/langserver/handlers/code_lens.go +++ b/internal/langserver/handlers/code_lens.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/code_lens_test.go b/internal/langserver/handlers/code_lens_test.go index 9004ee1a..0794ba00 100644 --- a/internal/langserver/handlers/code_lens_test.go +++ b/internal/langserver/handlers/code_lens_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/command/docs_url.go b/internal/langserver/handlers/command/docs_url.go index 9d5dd396..3245d4d6 100644 --- a/internal/langserver/handlers/command/docs_url.go +++ b/internal/langserver/handlers/command/docs_url.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/handler.go b/internal/langserver/handlers/command/handler.go index f101da1f..0c413094 100644 --- a/internal/langserver/handlers/command/handler.go +++ b/internal/langserver/handlers/command/handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/init.go b/internal/langserver/handlers/command/init.go index f6d6d120..a522968e 100644 --- a/internal/langserver/handlers/command/init.go +++ b/internal/langserver/handlers/command/init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/module_callers.go b/internal/langserver/handlers/command/module_callers.go index 0f0e37af..cdf5932a 100644 --- a/internal/langserver/handlers/command/module_callers.go +++ b/internal/langserver/handlers/command/module_callers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/module_calls.go b/internal/langserver/handlers/command/module_calls.go index 3cf18b17..28eaef5c 100644 --- a/internal/langserver/handlers/command/module_calls.go +++ b/internal/langserver/handlers/command/module_calls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/module_calls_test.go b/internal/langserver/handlers/command/module_calls_test.go index a3a3abf7..4215a752 100644 --- a/internal/langserver/handlers/command/module_calls_test.go +++ b/internal/langserver/handlers/command/module_calls_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/module_providers.go b/internal/langserver/handlers/command/module_providers.go index c35013c2..1d7f9716 100644 --- a/internal/langserver/handlers/command/module_providers.go +++ b/internal/langserver/handlers/command/module_providers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/terraform.go b/internal/langserver/handlers/command/terraform.go index 698090ee..23cab406 100644 --- a/internal/langserver/handlers/command/terraform.go +++ b/internal/langserver/handlers/command/terraform.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/command/validate.go b/internal/langserver/handlers/command/validate.go index f2631d94..450e7a2b 100644 --- a/internal/langserver/handlers/command/validate.go +++ b/internal/langserver/handlers/command/validate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/internal/langserver/handlers/complete.go b/internal/langserver/handlers/complete.go index 61a286d8..8e85724e 100644 --- a/internal/langserver/handlers/complete.go +++ b/internal/langserver/handlers/complete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/complete_test.go b/internal/langserver/handlers/complete_test.go index 5dd2edf0..124e81a4 100644 --- a/internal/langserver/handlers/complete_test.go +++ b/internal/langserver/handlers/complete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/completion_hooks.go b/internal/langserver/handlers/completion_hooks.go index 96f2110a..1548818c 100644 --- a/internal/langserver/handlers/completion_hooks.go +++ b/internal/langserver/handlers/completion_hooks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/completion_resolve.go b/internal/langserver/handlers/completion_resolve.go index 30fcbf6b..19dd9b33 100644 --- a/internal/langserver/handlers/completion_resolve.go +++ b/internal/langserver/handlers/completion_resolve.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/completion_resolve_test.go b/internal/langserver/handlers/completion_resolve_test.go index 39c7c2ad..5ec200f2 100644 --- a/internal/langserver/handlers/completion_resolve_test.go +++ b/internal/langserver/handlers/completion_resolve_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change.go b/internal/langserver/handlers/did_change.go index 81004c2f..d3c628b2 100644 --- a/internal/langserver/handlers/did_change.go +++ b/internal/langserver/handlers/did_change.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change_test.go b/internal/langserver/handlers/did_change_test.go index 1d1a3f1d..696616a7 100644 --- a/internal/langserver/handlers/did_change_test.go +++ b/internal/langserver/handlers/did_change_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change_watched_files.go b/internal/langserver/handlers/did_change_watched_files.go index 972ef6ed..6758f060 100644 --- a/internal/langserver/handlers/did_change_watched_files.go +++ b/internal/langserver/handlers/did_change_watched_files.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change_watched_files_test.go b/internal/langserver/handlers/did_change_watched_files_test.go index be8a4116..e012dd7e 100644 --- a/internal/langserver/handlers/did_change_watched_files_test.go +++ b/internal/langserver/handlers/did_change_watched_files_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change_workspace_folders.go b/internal/langserver/handlers/did_change_workspace_folders.go index e39f273d..4d8902af 100644 --- a/internal/langserver/handlers/did_change_workspace_folders.go +++ b/internal/langserver/handlers/did_change_workspace_folders.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_change_workspace_folders_test.go b/internal/langserver/handlers/did_change_workspace_folders_test.go index 0f205767..d6c2f157 100644 --- a/internal/langserver/handlers/did_change_workspace_folders_test.go +++ b/internal/langserver/handlers/did_change_workspace_folders_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_close.go b/internal/langserver/handlers/did_close.go index 6a0d55dc..76694f45 100644 --- a/internal/langserver/handlers/did_close.go +++ b/internal/langserver/handlers/did_close.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_open.go b/internal/langserver/handlers/did_open.go index 60c0531d..4997a89c 100644 --- a/internal/langserver/handlers/did_open.go +++ b/internal/langserver/handlers/did_open.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_open_test.go b/internal/langserver/handlers/did_open_test.go index fee30403..5bc62193 100644 --- a/internal/langserver/handlers/did_open_test.go +++ b/internal/langserver/handlers/did_open_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/did_save.go b/internal/langserver/handlers/did_save.go index d245323b..1780b582 100644 --- a/internal/langserver/handlers/did_save.go +++ b/internal/langserver/handlers/did_save.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/document_link.go b/internal/langserver/handlers/document_link.go index 43bcedb9..47360cc8 100644 --- a/internal/langserver/handlers/document_link.go +++ b/internal/langserver/handlers/document_link.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/document_link_test.go b/internal/langserver/handlers/document_link_test.go index a66cf88b..e3f3fff1 100644 --- a/internal/langserver/handlers/document_link_test.go +++ b/internal/langserver/handlers/document_link_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command.go b/internal/langserver/handlers/execute_command.go index 18d2cd19..fcce8b93 100644 --- a/internal/langserver/handlers/execute_command.go +++ b/internal/langserver/handlers/execute_command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_init_test.go b/internal/langserver/handlers/execute_command_init_test.go index 014354c9..44ac1d97 100644 --- a/internal/langserver/handlers/execute_command_init_test.go +++ b/internal/langserver/handlers/execute_command_init_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_module_callers_test.go b/internal/langserver/handlers/execute_command_module_callers_test.go index 6a7ef72b..2721714e 100644 --- a/internal/langserver/handlers/execute_command_module_callers_test.go +++ b/internal/langserver/handlers/execute_command_module_callers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_module_providers_test.go b/internal/langserver/handlers/execute_command_module_providers_test.go index b29b921d..c1478175 100644 --- a/internal/langserver/handlers/execute_command_module_providers_test.go +++ b/internal/langserver/handlers/execute_command_module_providers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_modules_test.go b/internal/langserver/handlers/execute_command_modules_test.go index 56a67da4..0e1a5654 100644 --- a/internal/langserver/handlers/execute_command_modules_test.go +++ b/internal/langserver/handlers/execute_command_modules_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_terraform_version_test.go b/internal/langserver/handlers/execute_command_terraform_version_test.go index 41d02eea..b5e8aa0f 100644 --- a/internal/langserver/handlers/execute_command_terraform_version_test.go +++ b/internal/langserver/handlers/execute_command_terraform_version_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_test.go b/internal/langserver/handlers/execute_command_test.go index b84d877f..e7c03fc1 100644 --- a/internal/langserver/handlers/execute_command_test.go +++ b/internal/langserver/handlers/execute_command_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/execute_command_validate_test.go b/internal/langserver/handlers/execute_command_validate_test.go index fd65a4d6..9f244e08 100644 --- a/internal/langserver/handlers/execute_command_validate_test.go +++ b/internal/langserver/handlers/execute_command_validate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/exit_test.go b/internal/langserver/handlers/exit_test.go index bfae8b13..2cfd30e4 100644 --- a/internal/langserver/handlers/exit_test.go +++ b/internal/langserver/handlers/exit_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/formatting.go b/internal/langserver/handlers/formatting.go index 7d05c9eb..b917f68a 100644 --- a/internal/langserver/handlers/formatting.go +++ b/internal/langserver/handlers/formatting.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/formatting_test.go b/internal/langserver/handlers/formatting_test.go index 4f5d88a9..f96e5ae2 100644 --- a/internal/langserver/handlers/formatting_test.go +++ b/internal/langserver/handlers/formatting_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/go_to_ref_target.go b/internal/langserver/handlers/go_to_ref_target.go index e71f7b7b..75466f3c 100644 --- a/internal/langserver/handlers/go_to_ref_target.go +++ b/internal/langserver/handlers/go_to_ref_target.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/go_to_ref_target_test.go b/internal/langserver/handlers/go_to_ref_target_test.go index 9e217586..9dae3ab7 100644 --- a/internal/langserver/handlers/go_to_ref_target_test.go +++ b/internal/langserver/handlers/go_to_ref_target_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/handlers_test.go b/internal/langserver/handlers/handlers_test.go index 791db0d1..ee0573eb 100644 --- a/internal/langserver/handlers/handlers_test.go +++ b/internal/langserver/handlers/handlers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/hooks_module.go b/internal/langserver/handlers/hooks_module.go index 125a934b..f3669312 100644 --- a/internal/langserver/handlers/hooks_module.go +++ b/internal/langserver/handlers/hooks_module.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/hover.go b/internal/langserver/handlers/hover.go index a53c914a..bd6d98cb 100644 --- a/internal/langserver/handlers/hover.go +++ b/internal/langserver/handlers/hover.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/hover_test.go b/internal/langserver/handlers/hover_test.go index d9358c94..6694e051 100644 --- a/internal/langserver/handlers/hover_test.go +++ b/internal/langserver/handlers/hover_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/initialize.go b/internal/langserver/handlers/initialize.go index c89a3364..187d1319 100644 --- a/internal/langserver/handlers/initialize.go +++ b/internal/langserver/handlers/initialize.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/initialize_benchmarks_test.go b/internal/langserver/handlers/initialize_benchmarks_test.go index 71fcf8e8..ab6be47b 100644 --- a/internal/langserver/handlers/initialize_benchmarks_test.go +++ b/internal/langserver/handlers/initialize_benchmarks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/initialize_test.go b/internal/langserver/handlers/initialize_test.go index d19f547a..717d8760 100644 --- a/internal/langserver/handlers/initialize_test.go +++ b/internal/langserver/handlers/initialize_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/initialized.go b/internal/langserver/handlers/initialized.go index 3061d6ae..2f4219c3 100644 --- a/internal/langserver/handlers/initialized.go +++ b/internal/langserver/handlers/initialized.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/references.go b/internal/langserver/handlers/references.go index 2a081420..dbd14f2f 100644 --- a/internal/langserver/handlers/references.go +++ b/internal/langserver/handlers/references.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/references_test.go b/internal/langserver/handlers/references_test.go index d7eb4177..beadab80 100644 --- a/internal/langserver/handlers/references_test.go +++ b/internal/langserver/handlers/references_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/semantic_tokens.go b/internal/langserver/handlers/semantic_tokens.go index d3dc0490..6fb2c5fc 100644 --- a/internal/langserver/handlers/semantic_tokens.go +++ b/internal/langserver/handlers/semantic_tokens.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/semantic_tokens_test.go b/internal/langserver/handlers/semantic_tokens_test.go index 9c56d9b6..0bd22394 100644 --- a/internal/langserver/handlers/semantic_tokens_test.go +++ b/internal/langserver/handlers/semantic_tokens_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/service.go b/internal/langserver/handlers/service.go index 5768b17a..606617d8 100644 --- a/internal/langserver/handlers/service.go +++ b/internal/langserver/handlers/service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/session_mock_test.go b/internal/langserver/handlers/session_mock_test.go index 12052953..25be355c 100644 --- a/internal/langserver/handlers/session_mock_test.go +++ b/internal/langserver/handlers/session_mock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/shutdown.go b/internal/langserver/handlers/shutdown.go index af9fbc34..68126038 100644 --- a/internal/langserver/handlers/shutdown.go +++ b/internal/langserver/handlers/shutdown.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/shutdown_test.go b/internal/langserver/handlers/shutdown_test.go index 8b8dd68c..5ce5b428 100644 --- a/internal/langserver/handlers/shutdown_test.go +++ b/internal/langserver/handlers/shutdown_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/signature_help.go b/internal/langserver/handlers/signature_help.go index 9a6144dd..7f01edb2 100644 --- a/internal/langserver/handlers/signature_help.go +++ b/internal/langserver/handlers/signature_help.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/signature_help_test.go b/internal/langserver/handlers/signature_help_test.go index 8a2e6895..0a09c36c 100644 --- a/internal/langserver/handlers/signature_help_test.go +++ b/internal/langserver/handlers/signature_help_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/symbols.go b/internal/langserver/handlers/symbols.go index cc7c106d..209fcf5d 100644 --- a/internal/langserver/handlers/symbols.go +++ b/internal/langserver/handlers/symbols.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/symbols_test.go b/internal/langserver/handlers/symbols_test.go index d45fdb82..fde85735 100644 --- a/internal/langserver/handlers/symbols_test.go +++ b/internal/langserver/handlers/symbols_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/workspace_symbol.go b/internal/langserver/handlers/workspace_symbol.go index 0e4e3366..02cd15a4 100644 --- a/internal/langserver/handlers/workspace_symbol.go +++ b/internal/langserver/handlers/workspace_symbol.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/handlers/workspace_symbol_test.go b/internal/langserver/handlers/workspace_symbol_test.go index 20fe92c1..8dad2e64 100644 --- a/internal/langserver/handlers/workspace_symbol_test.go +++ b/internal/langserver/handlers/workspace_symbol_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package handlers import ( diff --git a/internal/langserver/langserver.go b/internal/langserver/langserver.go index 79e0451a..79c26f53 100644 --- a/internal/langserver/langserver.go +++ b/internal/langserver/langserver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package langserver import ( diff --git a/internal/langserver/langserver_mock.go b/internal/langserver/langserver_mock.go index 71d8e088..47cbd941 100644 --- a/internal/langserver/langserver_mock.go +++ b/internal/langserver/langserver_mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package langserver import ( diff --git a/internal/langserver/notifier/notifier.go b/internal/langserver/notifier/notifier.go index 51d54522..31ce8c1e 100644 --- a/internal/langserver/notifier/notifier.go +++ b/internal/langserver/notifier/notifier.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package notifier import ( diff --git a/internal/langserver/notifier/notifier_test.go b/internal/langserver/notifier/notifier_test.go index 75eb83ea..64a481db 100644 --- a/internal/langserver/notifier/notifier_test.go +++ b/internal/langserver/notifier/notifier_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package notifier import ( diff --git a/internal/langserver/progress/progress.go b/internal/langserver/progress/progress.go index d461ea63..c078c017 100644 --- a/internal/langserver/progress/progress.go +++ b/internal/langserver/progress/progress.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package progress import ( diff --git a/internal/langserver/rpc_logger.go b/internal/langserver/rpc_logger.go index 983d93ed..7f928149 100644 --- a/internal/langserver/rpc_logger.go +++ b/internal/langserver/rpc_logger.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package langserver import ( diff --git a/internal/langserver/session/errors.go b/internal/langserver/session/errors.go index 1f19ae39..0cff3e2e 100644 --- a/internal/langserver/session/errors.go +++ b/internal/langserver/session/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package session import ( diff --git a/internal/langserver/session/session.go b/internal/langserver/session/session.go index 30eead40..5ecc03ce 100644 --- a/internal/langserver/session/session.go +++ b/internal/langserver/session/session.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package session import ( diff --git a/internal/langserver/session/session_state.go b/internal/langserver/session/session_state.go index 1d41a123..ec467827 100644 --- a/internal/langserver/session/session_state.go +++ b/internal/langserver/session/session_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package session // sessionState represents state of the language server diff --git a/internal/langserver/session/types.go b/internal/langserver/session/types.go index 6d129ea7..019b0ffc 100644 --- a/internal/langserver/session/types.go +++ b/internal/langserver/session/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package session import ( diff --git a/internal/logging/logging.go b/internal/logging/logging.go index de444efe..0034c72d 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/internal/lsp/client_capabilities.go b/internal/lsp/client_capabilities.go index efea7e95..3edab664 100644 --- a/internal/lsp/client_capabilities.go +++ b/internal/lsp/client_capabilities.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/client_name.go b/internal/lsp/client_name.go index ac6a54c8..5b286cc0 100644 --- a/internal/lsp/client_name.go +++ b/internal/lsp/client_name.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/code_actions.go b/internal/lsp/code_actions.go index 93d781b6..b4dc6bf6 100644 --- a/internal/lsp/code_actions.go +++ b/internal/lsp/code_actions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/command.go b/internal/lsp/command.go index bc3391d6..a94ed5ef 100644 --- a/internal/lsp/command.go +++ b/internal/lsp/command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/completion.go b/internal/lsp/completion.go index 8eee6834..90399192 100644 --- a/internal/lsp/completion.go +++ b/internal/lsp/completion.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/diagnostics.go b/internal/lsp/diagnostics.go index 1b1bbbc7..656652ea 100644 --- a/internal/lsp/diagnostics.go +++ b/internal/lsp/diagnostics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/diagnostics_test.go b/internal/lsp/diagnostics_test.go index aa27c48a..92036085 100644 --- a/internal/lsp/diagnostics_test.go +++ b/internal/lsp/diagnostics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/dir_handler.go b/internal/lsp/dir_handler.go index d92f60f9..f6f2a0f4 100644 --- a/internal/lsp/dir_handler.go +++ b/internal/lsp/dir_handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp type DirHandler interface { diff --git a/internal/lsp/doc.go b/internal/lsp/doc.go index 2d74986f..4ae24c62 100644 --- a/internal/lsp/doc.go +++ b/internal/lsp/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp /* diff --git a/internal/lsp/document_links.go b/internal/lsp/document_links.go index 560c1465..934ff2f7 100644 --- a/internal/lsp/document_links.go +++ b/internal/lsp/document_links.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/file_change.go b/internal/lsp/file_change.go index 48bce779..785c41b2 100644 --- a/internal/lsp/file_change.go +++ b/internal/lsp/file_change.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/file_handler.go b/internal/lsp/file_handler.go index 8e84169d..b118971c 100644 --- a/internal/lsp/file_handler.go +++ b/internal/lsp/file_handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/hover.go b/internal/lsp/hover.go index 32bf3cb5..957d6302 100644 --- a/internal/lsp/hover.go +++ b/internal/lsp/hover.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/language_id.go b/internal/lsp/language_id.go index 47828da7..623771f3 100644 --- a/internal/lsp/language_id.go +++ b/internal/lsp/language_id.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp // LanguageID represents the coding language diff --git a/internal/lsp/location_links.go b/internal/lsp/location_links.go index 90cf5924..59379da3 100644 --- a/internal/lsp/location_links.go +++ b/internal/lsp/location_links.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/locations.go b/internal/lsp/locations.go index 7c602c49..b726f5a7 100644 --- a/internal/lsp/locations.go +++ b/internal/lsp/locations.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/markup_content.go b/internal/lsp/markup_content.go index 537aa28c..3a8525e2 100644 --- a/internal/lsp/markup_content.go +++ b/internal/lsp/markup_content.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/position.go b/internal/lsp/position.go index 83d17ab7..9b61dca8 100644 --- a/internal/lsp/position.go +++ b/internal/lsp/position.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/range.go b/internal/lsp/range.go index 708b7ec0..09dc7e74 100644 --- a/internal/lsp/range.go +++ b/internal/lsp/range.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/semantic_tokens.go b/internal/lsp/semantic_tokens.go index 3a189ab7..70520b3f 100644 --- a/internal/lsp/semantic_tokens.go +++ b/internal/lsp/semantic_tokens.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/semtok/lsp_token_modifiers.go b/internal/lsp/semtok/lsp_token_modifiers.go index ee34db7d..272b2fdc 100644 --- a/internal/lsp/semtok/lsp_token_modifiers.go +++ b/internal/lsp/semtok/lsp_token_modifiers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package semtok var ( diff --git a/internal/lsp/semtok/lsp_token_types.go b/internal/lsp/semtok/lsp_token_types.go index 9ab34e27..0fee83da 100644 --- a/internal/lsp/semtok/lsp_token_types.go +++ b/internal/lsp/semtok/lsp_token_types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package semtok const ( diff --git a/internal/lsp/semtok/token_modifier.go b/internal/lsp/semtok/token_modifier.go index 4cc4cd3b..f3225131 100644 --- a/internal/lsp/semtok/token_modifier.go +++ b/internal/lsp/semtok/token_modifier.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package semtok import "math" diff --git a/internal/lsp/semtok/token_types.go b/internal/lsp/semtok/token_types.go index f12d9f08..2b9de58a 100644 --- a/internal/lsp/semtok/token_types.go +++ b/internal/lsp/semtok/token_types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package semtok type TokenType string diff --git a/internal/lsp/signature.go b/internal/lsp/signature.go index ea8678ee..adbee2b3 100644 --- a/internal/lsp/signature.go +++ b/internal/lsp/signature.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/signature_test.go b/internal/lsp/signature_test.go index 82a41a85..9976fe4d 100644 --- a/internal/lsp/signature_test.go +++ b/internal/lsp/signature_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/symbols.go b/internal/lsp/symbols.go index b2280bc9..d745973a 100644 --- a/internal/lsp/symbols.go +++ b/internal/lsp/symbols.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/text_edits.go b/internal/lsp/text_edits.go index f80a98cf..a8ce3376 100644 --- a/internal/lsp/text_edits.go +++ b/internal/lsp/text_edits.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/token_encoder.go b/internal/lsp/token_encoder.go index 0b8234b2..ac1d8c46 100644 --- a/internal/lsp/token_encoder.go +++ b/internal/lsp/token_encoder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/lsp/token_encoder_test.go b/internal/lsp/token_encoder_test.go index 0711e694..fe95662f 100644 --- a/internal/lsp/token_encoder_test.go +++ b/internal/lsp/token_encoder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lsp import ( diff --git a/internal/mdplain/mdplain.go b/internal/mdplain/mdplain.go index db8bcd55..7d82d492 100644 --- a/internal/mdplain/mdplain.go +++ b/internal/mdplain/mdplain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mdplain import ( diff --git a/internal/mdplain/mdplain_test.go b/internal/mdplain/mdplain_test.go index 60f334a6..c94ae1a6 100644 --- a/internal/mdplain/mdplain_test.go +++ b/internal/mdplain/mdplain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mdplain_test import ( diff --git a/internal/pathcmp/path.go b/internal/pathcmp/path.go index 452f1e71..fc5519ad 100644 --- a/internal/pathcmp/path.go +++ b/internal/pathcmp/path.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pathcmp import ( diff --git a/internal/pathcmp/path_unix_test.go b/internal/pathcmp/path_unix_test.go index 6b3265b6..a806a731 100644 --- a/internal/pathcmp/path_unix_test.go +++ b/internal/pathcmp/path_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/internal/pathcmp/path_windows_test.go b/internal/pathcmp/path_windows_test.go index 95d4f116..6dc67a09 100644 --- a/internal/pathcmp/path_windows_test.go +++ b/internal/pathcmp/path_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pathcmp import ( diff --git a/internal/pathtpl/pathtpl.go b/internal/pathtpl/pathtpl.go index 85d4f46e..7a1358ef 100644 --- a/internal/pathtpl/pathtpl.go +++ b/internal/pathtpl/pathtpl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pathtpl import ( diff --git a/internal/protocol/completion.go b/internal/protocol/completion.go index 7b1cd837..4a8cf02c 100644 --- a/internal/protocol/completion.go +++ b/internal/protocol/completion.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package protocol import "github.com/hashicorp/hcl-lang/lang" diff --git a/internal/protocol/experimental.go b/internal/protocol/experimental.go index 5a596913..cf34a1c9 100644 --- a/internal/protocol/experimental.go +++ b/internal/protocol/experimental.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package protocol type ExperimentalServerCapabilities struct { diff --git a/internal/protocol/gen.go b/internal/protocol/gen.go index 828ca969..d712436c 100644 --- a/internal/protocol/gen.go +++ b/internal/protocol/gen.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package protocol //go:generate go run ./gen/gen.go -- protocol.go diff --git a/internal/protocol/gen/gen.go b/internal/protocol/gen/gen.go index 66681c7c..675544c9 100644 --- a/internal/protocol/gen/gen.go +++ b/internal/protocol/gen/gen.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build generate package main diff --git a/internal/protocol/telemetry.go b/internal/protocol/telemetry.go index 10a925cb..6d24f2b8 100644 --- a/internal/protocol/telemetry.go +++ b/internal/protocol/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package protocol const TelemetryFormatVersion = 1 diff --git a/internal/registry/module.go b/internal/registry/module.go index b677aafc..001b572b 100644 --- a/internal/registry/module.go +++ b/internal/registry/module.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry import ( diff --git a/internal/registry/module_mock_responses_test.go b/internal/registry/module_mock_responses_test.go index c50376e3..ddd8986a 100644 --- a/internal/registry/module_mock_responses_test.go +++ b/internal/registry/module_mock_responses_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry // moduleVersionsMockResponse represents response from https://registry.terraform.io/v1/modules/puppetlabs/deployment/ec/versions diff --git a/internal/registry/module_test.go b/internal/registry/module_test.go index 76c6bb6e..eae242bd 100644 --- a/internal/registry/module_test.go +++ b/internal/registry/module_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry import ( diff --git a/internal/registry/provider.go b/internal/registry/provider.go index 4f8a997f..54575508 100644 --- a/internal/registry/provider.go +++ b/internal/registry/provider.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry import ( diff --git a/internal/registry/provider_test.go b/internal/registry/provider_test.go index c6022628..b83d25fa 100644 --- a/internal/registry/provider_test.go +++ b/internal/registry/provider_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry import ( diff --git a/internal/registry/registry.go b/internal/registry/registry.go index 3ed842c2..9818ee8c 100644 --- a/internal/registry/registry.go +++ b/internal/registry/registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package registry import ( diff --git a/internal/scheduler/scheduler.go b/internal/scheduler/scheduler.go index 6d0dac97..1f12753b 100644 --- a/internal/scheduler/scheduler.go +++ b/internal/scheduler/scheduler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/internal/scheduler/scheduler_long_test.go b/internal/scheduler/scheduler_long_test.go index 91ad145a..659e0713 100644 --- a/internal/scheduler/scheduler_long_test.go +++ b/internal/scheduler/scheduler_long_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build longtest package scheduler diff --git a/internal/scheduler/scheduler_test.go b/internal/scheduler/scheduler_test.go index f11e8c91..db8c53f9 100644 --- a/internal/scheduler/scheduler_test.go +++ b/internal/scheduler/scheduler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/internal/schemas/doc.go b/internal/schemas/doc.go index 1bddfab2..68c15a98 100644 --- a/internal/schemas/doc.go +++ b/internal/schemas/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package schemas embeds provder schemas for completion support, in particular, // for uninitialized modules package schemas diff --git a/internal/schemas/gen/gen.go b/internal/schemas/gen/gen.go index 50b02c5a..12ca0730 100644 --- a/internal/schemas/gen/gen.go +++ b/internal/schemas/gen/gen.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build generate // +build generate diff --git a/internal/schemas/schemas.go b/internal/schemas/schemas.go index b0ddd669..798dee9f 100644 --- a/internal/schemas/schemas.go +++ b/internal/schemas/schemas.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package schemas import ( diff --git a/internal/settings/settings.go b/internal/settings/settings.go index cf65d3fa..c93a68bb 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package settings import ( diff --git a/internal/settings/settings_test.go b/internal/settings/settings_test.go index f00525df..50032454 100644 --- a/internal/settings/settings_test.go +++ b/internal/settings/settings_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package settings import ( diff --git a/internal/source/source.go b/internal/source/source.go index 9e7fd56a..b9268fb1 100644 --- a/internal/source/source.go +++ b/internal/source/source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package source import ( diff --git a/internal/source/source_test.go b/internal/source/source_test.go index d08da53e..c9e52145 100644 --- a/internal/source/source_test.go +++ b/internal/source/source_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package source import ( diff --git a/internal/source/types.go b/internal/source/types.go index f9997a85..aca733df 100644 --- a/internal/source/types.go +++ b/internal/source/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package source type Lines []Line diff --git a/internal/state/cmp_opts_test.go b/internal/state/cmp_opts_test.go index c7e3e414..df37a660 100644 --- a/internal/state/cmp_opts_test.go +++ b/internal/state/cmp_opts_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/dir_handle_field_indexer.go b/internal/state/dir_handle_field_indexer.go index 75431ea5..3b40bb8f 100644 --- a/internal/state/dir_handle_field_indexer.go +++ b/internal/state/dir_handle_field_indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/documents.go b/internal/state/documents.go index 38040313..22057a16 100644 --- a/internal/state/documents.go +++ b/internal/state/documents.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/documents_test.go b/internal/state/documents_test.go index 04f0fc29..b569ea24 100644 --- a/internal/state/documents_test.go +++ b/internal/state/documents_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/errors.go b/internal/state/errors.go index 9b2b950b..ef0068f2 100644 --- a/internal/state/errors.go +++ b/internal/state/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/installed_providers.go b/internal/state/installed_providers.go index eb136d14..50ff7e80 100644 --- a/internal/state/installed_providers.go +++ b/internal/state/installed_providers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/installed_providers_test.go b/internal/state/installed_providers_test.go index 68078e36..18520444 100644 --- a/internal/state/installed_providers_test.go +++ b/internal/state/installed_providers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/job_id_slice_index.go b/internal/state/job_id_slice_index.go index cfe19fe8..c538d1d7 100644 --- a/internal/state/job_id_slice_index.go +++ b/internal/state/job_id_slice_index.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/jobs.go b/internal/state/jobs.go index c07ee2ff..655d6245 100644 --- a/internal/state/jobs.go +++ b/internal/state/jobs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/jobs_test.go b/internal/state/jobs_test.go index 2847a25f..a91059a2 100644 --- a/internal/state/jobs_test.go +++ b/internal/state/jobs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/module.go b/internal/state/module.go index a4c00592..7593e201 100644 --- a/internal/state/module.go +++ b/internal/state/module.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/module_changes.go b/internal/state/module_changes.go index 02085d9d..7bac6b2a 100644 --- a/internal/state/module_changes.go +++ b/internal/state/module_changes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/module_changes_test.go b/internal/state/module_changes_test.go index 09659e59..3f71a3d0 100644 --- a/internal/state/module_changes_test.go +++ b/internal/state/module_changes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/module_ids.go b/internal/state/module_ids.go index 099c0ed7..591b5de8 100644 --- a/internal/state/module_ids.go +++ b/internal/state/module_ids.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import "github.com/hashicorp/go-uuid" diff --git a/internal/state/module_test.go b/internal/state/module_test.go index 5af613ff..a45bb1c2 100644 --- a/internal/state/module_test.go +++ b/internal/state/module_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/priority_index.go b/internal/state/priority_index.go index ffadb853..3a048dcd 100644 --- a/internal/state/priority_index.go +++ b/internal/state/priority_index.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/provider_ids.go b/internal/state/provider_ids.go index 63bb612b..44745ec9 100644 --- a/internal/state/provider_ids.go +++ b/internal/state/provider_ids.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/provider_schema.go b/internal/state/provider_schema.go index 85012496..1a9c980e 100644 --- a/internal/state/provider_schema.go +++ b/internal/state/provider_schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/provider_schema_test.go b/internal/state/provider_schema_test.go index 26fb50ac..172d8bc7 100644 --- a/internal/state/provider_schema_test.go +++ b/internal/state/provider_schema_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/registry_modules.go b/internal/state/registry_modules.go index f67d5e1b..1360d375 100644 --- a/internal/state/registry_modules.go +++ b/internal/state/registry_modules.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/registry_modules_test.go b/internal/state/registry_modules_test.go index 4d862d91..86a2cb98 100644 --- a/internal/state/registry_modules_test.go +++ b/internal/state/registry_modules_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/schema_source.go b/internal/state/schema_source.go index 82186ab6..0779cffe 100644 --- a/internal/state/schema_source.go +++ b/internal/state/schema_source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import "fmt" diff --git a/internal/state/slice_length_index.go b/internal/state/slice_length_index.go index 749c382c..6278a45e 100644 --- a/internal/state/slice_length_index.go +++ b/internal/state/slice_length_index.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/state.go b/internal/state/state.go index bd290c0d..0445cb98 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/state_test.go b/internal/state/state_test.go index a4bede06..feb59f1d 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import "testing" diff --git a/internal/state/stringer_field_indexer.go b/internal/state/stringer_field_indexer.go index 041660b2..2bdbec49 100644 --- a/internal/state/stringer_field_indexer.go +++ b/internal/state/stringer_field_indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/time_field_index.go b/internal/state/time_field_index.go index 8540131b..fdf51cd6 100644 --- a/internal/state/time_field_index.go +++ b/internal/state/time_field_index.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/version_field_indexer.go b/internal/state/version_field_indexer.go index 0a75d281..b747bd93 100644 --- a/internal/state/version_field_indexer.go +++ b/internal/state/version_field_indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/walker_paths.go b/internal/state/walker_paths.go index 1773b8af..46f0c76c 100644 --- a/internal/state/walker_paths.go +++ b/internal/state/walker_paths.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/state/walker_paths_test.go b/internal/state/walker_paths_test.go index 3c3dfcef..29a7ae48 100644 --- a/internal/state/walker_paths_test.go +++ b/internal/state/walker_paths_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/internal/telemetry/noop.go b/internal/telemetry/noop.go index e9b7b3a4..7fa01101 100644 --- a/internal/telemetry/noop.go +++ b/internal/telemetry/noop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/internal/telemetry/sender.go b/internal/telemetry/sender.go index e762a461..851088b0 100644 --- a/internal/telemetry/sender.go +++ b/internal/telemetry/sender.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import "context" diff --git a/internal/telemetry/telemetry.go b/internal/telemetry/telemetry.go index 3d01d3a8..c4bd8540 100644 --- a/internal/telemetry/telemetry.go +++ b/internal/telemetry/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/internal/terraform/ast/ast_test.go b/internal/terraform/ast/ast_test.go index ad70671d..c48329ed 100644 --- a/internal/terraform/ast/ast_test.go +++ b/internal/terraform/ast/ast_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ast import ( diff --git a/internal/terraform/ast/module.go b/internal/terraform/ast/module.go index 6f26dfeb..61331def 100644 --- a/internal/terraform/ast/module.go +++ b/internal/terraform/ast/module.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ast import ( diff --git a/internal/terraform/ast/variables.go b/internal/terraform/ast/variables.go index 278a9aba..a2f6aaf9 100644 --- a/internal/terraform/ast/variables.go +++ b/internal/terraform/ast/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ast import ( diff --git a/internal/terraform/datadir/datadir.go b/internal/terraform/datadir/datadir.go index fce62f64..25667cea 100644 --- a/internal/terraform/datadir/datadir.go +++ b/internal/terraform/datadir/datadir.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/module_manifest.go b/internal/terraform/datadir/module_manifest.go index eafdac6a..fe1b33ea 100644 --- a/internal/terraform/datadir/module_manifest.go +++ b/internal/terraform/datadir/module_manifest.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/module_manifest_test.go b/internal/terraform/datadir/module_manifest_test.go index 6031f0fa..c950cf1f 100644 --- a/internal/terraform/datadir/module_manifest_test.go +++ b/internal/terraform/datadir/module_manifest_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/module_manifest_unix_test.go b/internal/terraform/datadir/module_manifest_unix_test.go index 6f8a3ed6..3381f53d 100644 --- a/internal/terraform/datadir/module_manifest_unix_test.go +++ b/internal/terraform/datadir/module_manifest_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/internal/terraform/datadir/module_manifest_windows_test.go b/internal/terraform/datadir/module_manifest_windows_test.go index 65e86775..55487b0c 100644 --- a/internal/terraform/datadir/module_manifest_windows_test.go +++ b/internal/terraform/datadir/module_manifest_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/paths.go b/internal/terraform/datadir/paths.go index cf6434f7..f6c76281 100644 --- a/internal/terraform/datadir/paths.go +++ b/internal/terraform/datadir/paths.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/plugin_lock_file.go b/internal/terraform/datadir/plugin_lock_file.go index 54e8a9fc..145f39b7 100644 --- a/internal/terraform/datadir/plugin_lock_file.go +++ b/internal/terraform/datadir/plugin_lock_file.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/datadir/plugin_lock_file_test.go b/internal/terraform/datadir/plugin_lock_file_test.go index 13afecbf..7d2493ff 100644 --- a/internal/terraform/datadir/plugin_lock_file_test.go +++ b/internal/terraform/datadir/plugin_lock_file_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package datadir import ( diff --git a/internal/terraform/discovery/discovery.go b/internal/terraform/discovery/discovery.go index 7b62c3ee..e8ca37a0 100644 --- a/internal/terraform/discovery/discovery.go +++ b/internal/terraform/discovery/discovery.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discovery import ( diff --git a/internal/terraform/discovery/discovery_mock.go b/internal/terraform/discovery/discovery_mock.go index de3700b1..7a7eb74c 100644 --- a/internal/terraform/discovery/discovery_mock.go +++ b/internal/terraform/discovery/discovery_mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discovery type MockDiscovery struct { diff --git a/internal/terraform/discovery/discovery_unix.go b/internal/terraform/discovery/discovery_unix.go index d423e474..1d01396a 100644 --- a/internal/terraform/discovery/discovery_unix.go +++ b/internal/terraform/discovery/discovery_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/internal/terraform/discovery/discovery_windows.go b/internal/terraform/discovery/discovery_windows.go index c86b8361..df907df6 100644 --- a/internal/terraform/discovery/discovery_windows.go +++ b/internal/terraform/discovery/discovery_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discovery const executableName = "terraform.exe" diff --git a/internal/terraform/errors/errors.go b/internal/terraform/errors/errors.go index a3098fde..95e67812 100644 --- a/internal/terraform/errors/errors.go +++ b/internal/terraform/errors/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package errors import ( diff --git a/internal/terraform/exec/errors.go b/internal/terraform/exec/errors.go index 8e326984..2c9e1ad5 100644 --- a/internal/terraform/exec/errors.go +++ b/internal/terraform/exec/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/exec/exec.go b/internal/terraform/exec/exec.go index 51d7717b..cff7497f 100644 --- a/internal/terraform/exec/exec.go +++ b/internal/terraform/exec/exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/exec/exec_mock.go b/internal/terraform/exec/exec_mock.go index 73f4173d..395672bb 100644 --- a/internal/terraform/exec/exec_mock.go +++ b/internal/terraform/exec/exec_mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/exec/exec_opts.go b/internal/terraform/exec/exec_opts.go index 37cae526..1901d283 100644 --- a/internal/terraform/exec/exec_opts.go +++ b/internal/terraform/exec/exec_opts.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/exec/exec_test.go b/internal/terraform/exec/exec_test.go index 2ec597c5..c7fb12d4 100644 --- a/internal/terraform/exec/exec_test.go +++ b/internal/terraform/exec/exec_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/exec/types.go b/internal/terraform/exec/types.go index 4c626e4f..8e6bb4ff 100644 --- a/internal/terraform/exec/types.go +++ b/internal/terraform/exec/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/internal/terraform/module/builtin_references.go b/internal/terraform/module/builtin_references.go index 92872761..fea7d08c 100644 --- a/internal/terraform/module/builtin_references.go +++ b/internal/terraform/module/builtin_references.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/module/errors.go b/internal/terraform/module/errors.go index fa57b130..f1b2fd92 100644 --- a/internal/terraform/module/errors.go +++ b/internal/terraform/module/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/module/module_ops.go b/internal/terraform/module/module_ops.go index e6c12059..bd3c58d1 100644 --- a/internal/terraform/module/module_ops.go +++ b/internal/terraform/module/module_ops.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/module/module_ops_mock_responses.go b/internal/terraform/module/module_ops_mock_responses.go index b4978850..756fb70d 100644 --- a/internal/terraform/module/module_ops_mock_responses.go +++ b/internal/terraform/module/module_ops_mock_responses.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module // moduleVersionsMockResponse represents response from https://registry.terraform.io/v1/modules/puppetlabs/deployment/ec/versions diff --git a/internal/terraform/module/module_ops_test.go b/internal/terraform/module/module_ops_test.go index fbe3c459..b4f311e8 100644 --- a/internal/terraform/module/module_ops_test.go +++ b/internal/terraform/module/module_ops_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/module/operation/operation.go b/internal/terraform/module/operation/operation.go index d36d255d..5a1d1e3d 100644 --- a/internal/terraform/module/operation/operation.go +++ b/internal/terraform/module/operation/operation.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package operation //go:generate go run golang.org/x/tools/cmd/stringer -type=OpState -output=op_state_string.go diff --git a/internal/terraform/module/terraform_executor.go b/internal/terraform/module/terraform_executor.go index 2782140f..134bd99a 100644 --- a/internal/terraform/module/terraform_executor.go +++ b/internal/terraform/module/terraform_executor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/module/types.go b/internal/terraform/module/types.go index edc2fa7f..a15fc252 100644 --- a/internal/terraform/module/types.go +++ b/internal/terraform/module/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package module import ( diff --git a/internal/terraform/parser/module.go b/internal/terraform/parser/module.go index 3fa4d8e4..b317c8f8 100644 --- a/internal/terraform/parser/module.go +++ b/internal/terraform/parser/module.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package parser import ( diff --git a/internal/terraform/parser/module_test.go b/internal/terraform/parser/module_test.go index 96b1271a..c5b64069 100644 --- a/internal/terraform/parser/module_test.go +++ b/internal/terraform/parser/module_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package parser import ( diff --git a/internal/terraform/parser/parser.go b/internal/terraform/parser/parser.go index 55652314..fb063540 100644 --- a/internal/terraform/parser/parser.go +++ b/internal/terraform/parser/parser.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package parser import ( diff --git a/internal/terraform/parser/variables.go b/internal/terraform/parser/variables.go index 20837b66..eec4579d 100644 --- a/internal/terraform/parser/variables.go +++ b/internal/terraform/parser/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package parser import ( diff --git a/internal/uri/uri.go b/internal/uri/uri.go index 74fddf0e..90ba3b05 100644 --- a/internal/uri/uri.go +++ b/internal/uri/uri.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uri import ( diff --git a/internal/uri/uri_test.go b/internal/uri/uri_test.go index b3b99db6..e75aa5a6 100644 --- a/internal/uri/uri_test.go +++ b/internal/uri/uri_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uri import ( diff --git a/internal/utm/utm.go b/internal/utm/utm.go index e34d63b8..71893d43 100644 --- a/internal/utm/utm.go +++ b/internal/utm/utm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package utm import ( diff --git a/internal/walker/types.go b/internal/walker/types.go index 496adec2..8ad08cc0 100644 --- a/internal/walker/types.go +++ b/internal/walker/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package walker import "github.com/hashicorp/terraform-ls/internal/document" diff --git a/internal/walker/walker.go b/internal/walker/walker.go index b77d1cff..2e3e0bc6 100644 --- a/internal/walker/walker.go +++ b/internal/walker/walker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package walker import ( diff --git a/internal/walker/walker_collector.go b/internal/walker/walker_collector.go index d998b60a..22d1259c 100644 --- a/internal/walker/walker_collector.go +++ b/internal/walker/walker_collector.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package walker import ( diff --git a/internal/walker/walker_queue.go b/internal/walker/walker_queue.go index d85e399a..53df9dd0 100644 --- a/internal/walker/walker_queue.go +++ b/internal/walker/walker_queue.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package walker import ( diff --git a/internal/walker/walker_test.go b/internal/walker/walker_test.go index 6161e694..2e88c88d 100644 --- a/internal/walker/walker_test.go +++ b/internal/walker/walker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package walker import ( diff --git a/main.go b/main.go index 3a99ebdb..fb8e05e9 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/tools.go b/tools.go index 4d46fa5e..72c90c2e 100644 --- a/tools.go +++ b/tools.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build tools // +build tools diff --git a/tools/tools.go b/tools/tools.go index 73d88b0c..eda9839c 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build tools package tools diff --git a/version.go b/version.go index 63577c2a..f62ce8e5 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import (