Skip to content

Commit

Permalink
Ensure copyright header in source files (#4731)
Browse files Browse the repository at this point in the history
* Adding copyright header to missing files

* check in pipeline

* expected fail in CI

* use another stage

* fix after seeing CI issue
  • Loading branch information
vhvb1989 authored Jan 25, 2025
1 parent 8579d2b commit bacd7a2
Show file tree
Hide file tree
Showing 426 changed files with 1,331 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ jobs:
- name: Spell check for go and docs
run: cspell lint '**/*.{go,md}' --config ./cli/azd/.vscode/cspell.yaml --root ./cli/azd --no-progress

Copyright-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copyright check
run: ./eng/scripts/copyright-check.sh ./cli/azd

bicep-lint:
uses: ./.github/workflows/lint-bicep.yml
3 changes: 3 additions & 0 deletions cli/azd/appdetect/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/actions/action.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// Package actions contains the application logic that handles azd CLI commands.
package actions

Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/actions/action_descriptor.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package actions

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/actions/action_descriptor_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package actions_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/auth.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/build.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/cobra_builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/cobra_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/container.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/container_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/down.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/hooks.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/infra_create.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/infra_delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/infra_synth.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/debug.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/experimentation.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/hooks.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/hooks_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/middleware.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/middleware_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/telemetry.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/telemetry_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/middleware/ux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package middleware

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/package.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/show.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/up.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/cmd/usage_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/appdetect_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

func newConfig(options ...DetectOption) detectConfig {
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/docker.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/docker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/dotnet.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/dotnet_apphost.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/java.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/javascript.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/python.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/appdetect/python_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package appdetect

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/add_configure.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/add_configure_host.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/add_preview.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/add_select.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/add_select_ai.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/add/diff.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package add

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/cmd_help.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/errors_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/provision.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/cmd/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/env_flag.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package internal

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package internal

// ErrorWithSuggestion is a custom error type that includes a suggestion for the user
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/global_command_options.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package internal

type GlobalCommandOptions struct {
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/names/label_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package names

import (
Expand Down
3 changes: 3 additions & 0 deletions cli/azd/internal/repository/app_init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package repository

import (
Expand Down
Loading

0 comments on commit bacd7a2

Please sign in to comment.