Skip to content

Commit

Permalink
docs: standardize license headers (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Nov 3, 2022
1 parent 596259d commit 6c0e1ba
Show file tree
Hide file tree
Showing 176 changed files with 530 additions and 71 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.bin/
node_modules/
.idea/
coverage.txt
Expand All @@ -6,4 +7,4 @@ dist/
**/*.sqlite-journal
.vscode/
.fuzzer/
keto
keto
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ node_modules: package-lock.json
go build -o .bin/clidoc ./cmd/clidoc/.

.PHONY: format
format: .bin/goimports node_modules
goimports -w -local github.com/ory/keto *.go internal cmd contrib ketoctx ketoapi embedx
format: .bin/ory .bin/goimports node_modules
.bin/ory dev headers license --exclude=.bin --exclude=internal/httpclient --exclude=proto
.bin/goimports -w -local github.com/ory/keto *.go internal cmd contrib ketoctx ketoapi embedx
npm exec -- prettier --write .

.PHONY: install
Expand All @@ -70,10 +71,10 @@ sdk: .bin/swagger .bin/ory node_modules
-c github.com/ory/x/healthx \
-x internal/httpclient \
-x internal/e2e
ory dev swagger sanitize ./spec/swagger.json
.bin/ory dev swagger sanitize ./spec/swagger.json
swagger validate ./spec/swagger.json
CIRCLE_PROJECT_USERNAME=ory CIRCLE_PROJECT_REPONAME=keto \
ory dev openapi migrate \
.bin/ory dev openapi migrate \
--health-path-tags metadata \
-p https://raw.githubusercontent.com/ory/x/master/healthx/openapi/patch.yaml \
-p file://.schema/openapi/patches/meta.yaml \
Expand Down Expand Up @@ -157,13 +158,18 @@ post-release: .bin/yq
.PHONY: generate
generate: .bin/stringer
go generate ./...
make format

licenses: .bin/licenses node_modules # checks open-source licenses
.bin/licenses

.bin/licenses: Makefile
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh

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

node_modules: package-lock.json
npm ci
touch node_modules
3 changes: 3 additions & 0 deletions cmd/check/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 check

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/check/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 check

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/client/grpc_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 client

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/client/grpc_client_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 client

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/client/test_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 client

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/expand/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 expand

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/expand/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 expand

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/helpers/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 helpers

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/migrate/down.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
3 changes: 3 additions & 0 deletions cmd/migrate/migrate_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 migrate

import (
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
3 changes: 3 additions & 0 deletions cmd/migrate/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 migrate

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/migrate/up.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
3 changes: 3 additions & 0 deletions cmd/namespace/opl_generate.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 namespace

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/namespace/opl_generate_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 namespace_test

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/namespace/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 namespace

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/namespace/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 namespace

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/namespace/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 namespace

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/create.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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/delete_all.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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/delete_all_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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/output.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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/output_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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/parse.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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/parse_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 relationtuple

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/relationtuple/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 relationtuple

import (
Expand Down
15 changes: 2 additions & 13 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright © 2018 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 cmd

Expand Down
3 changes: 3 additions & 0 deletions cmd/serve_debug_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
15 changes: 2 additions & 13 deletions cmd/server/serve.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// Copyright © 2018 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 server

Expand Down
3 changes: 3 additions & 0 deletions cmd/status/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 status

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/status/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 status

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { relationTuples, write, writeService } from "@ory/keto-grpc-client"

Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { relationTuples, expand, expandService } from "@ory/keto-grpc-client"

Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { relationTuples, write, writeService } from "@ory/keto-grpc-client"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

//go:build docscodesamples
// +build docscodesamples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { relationTuples, write, writeService } from "@ory/keto-grpc-client"

Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { relationTuples, read, readService } from "@ory/keto-grpc-client"

Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js"
import { read, readService } from "@ory/keto-grpc-client"

Expand Down

0 comments on commit 6c0e1ba

Please sign in to comment.