Skip to content

Commit

Permalink
feat: standardize license headers (#2790)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Nov 8, 2022
1 parent d9e6a7c commit 8406eaf
Show file tree
Hide file tree
Showing 649 changed files with 1,945 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packrd/
*-packr.go
dist/
node_modules
.bin/*
.bin/
test/e2e/cypress/videos
test/e2e/cypress/screenshots
test/e2e/.bin
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ docs/api:
docs/swagger:
npx @redocly/openapi-cli preview-docs spec/swagger.json

.bin/ory: Makefile
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin ory v0.1.33
touch -a -m .bin/ory

.bin/golangci-lint: Makefile
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -d -b .bin v1.47.3

.bin/hydra: Makefile
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin hydra v1.11.0

.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.47
touch .bin/ory

.PHONY: lint
lint: .bin/golangci-lint
golangci-lint run -v --timeout 10m ./...
Expand Down Expand Up @@ -131,7 +131,8 @@ quickstart-dev:

# Formats the code
.PHONY: format
format: .bin/goimports node_modules
format: .bin/goimports .bin/ory node_modules
.bin/ory dev headers license --exclude=internal/httpclient
goimports -w -local github.com/ory .
npm exec -- prettier --write 'test/e2e/**/*{.ts,.js}'
npm exec -- prettier --write '.github'
Expand Down
3 changes: 3 additions & 0 deletions cipher/aes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cipher

import (
Expand Down
3 changes: 3 additions & 0 deletions cipher/chacha20.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cipher

import (
Expand Down
3 changes: 3 additions & 0 deletions cipher/cipher.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cipher

import "context"
Expand Down
3 changes: 3 additions & 0 deletions cipher/cipher_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cipher_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cipher/noop.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cipher

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cleanup/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cleanup

import (
Expand Down
17 changes: 3 additions & 14 deletions cmd/cleanup/sql.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/*
Copyright © 2019 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cleanup

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cleanup/sql_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cleanup

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cliclient/cleanup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cliclient

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cliclient/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cliclient

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cliclient/migrate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cliclient

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/clidoc/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/clidoc/main_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/courier/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package courier

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/courier/watch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package courier

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/courier/watch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package courier

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/daemon/middleware.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package daemon

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/daemon/serve.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package daemon

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/hashers/argon2/calibrate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package argon2

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/hashers/argon2/hash.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package argon2

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/hashers/argon2/loadtest.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package argon2

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/hashers/argon2/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package argon2

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/hashers/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package hashers

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/definitions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/delete_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/get.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/get_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/import.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/import_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/list.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/list_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/validate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/identities/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package identities_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/jsonnet/format.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package jsonnet

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/jsonnet/lint.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package jsonnet

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/jsonnet/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package jsonnet

const GlobHelp = `Glob Syntax:
Expand Down
3 changes: 3 additions & 0 deletions cmd/migrate/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package migrate

import (
Expand Down
16 changes: 2 additions & 14 deletions cmd/migrate/sql.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
/*
Copyright © 2019 NAME HERE <EMAIL ADDRESS>
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package migrate

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/remote/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package remote

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/remote/status.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package remote

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/remote/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package remote

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

import (
Expand Down
Loading

0 comments on commit 8406eaf

Please sign in to comment.