Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: standardize license headers #1024

Merged
merged 9 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.bin
vendor
.bin/
.idea
Expand Down
20 changes: 9 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export PWD := $(shell pwd)

GO_DEPENDENCIES = github.com/ory/go-acc \
github.com/go-swagger/go-swagger/cmd/swagger \
github.com/ory/cli \
github.com/go-bindata/go-bindata/go-bindata

define make-go-dependency
Expand All @@ -26,23 +25,22 @@ node_modules: package-lock.json
.bin/goimports: Makefile
GOBIN=$(shell pwd)/.bin go install golang.org/x/tools/cmd/goimports@latest

# Formats the code
.PHONY: format
format: .bin/goimports node_modules
.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

format: .bin/goimports .bin/ory node_modules
.bin/ory dev headers license --exclude=internal/httpclient
goimports -w --local github.com/ory .
gofmt -l -s -w .
npm exec -- prettier --write .

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
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -b .bin ory v0.1.22
touch -a -m .bin/ory

# Generates the SDK
.PHONY: sdk
sdk: .bin/swagger .bin/ory node_modules
Expand Down
3 changes: 3 additions & 0 deletions api/credential.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 api

import (
Expand Down
21 changes: 2 additions & 19 deletions api/credential_doc.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api

Expand Down
3 changes: 3 additions & 0 deletions api/credential_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 api_test

import (
Expand Down
21 changes: 2 additions & 19 deletions api/decision.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api

Expand Down
21 changes: 2 additions & 19 deletions api/decision_test.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api_test

Expand Down
3 changes: 3 additions & 0 deletions api/health.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 api

// Alive returns an ok status if the instance is ready to handle HTTP requests.
Expand Down
3 changes: 3 additions & 0 deletions api/health_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 api_test

import (
Expand Down
21 changes: 2 additions & 19 deletions api/rule.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api

Expand Down
21 changes: 2 additions & 19 deletions api/rule_doc.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api

Expand Down
21 changes: 2 additions & 19 deletions api/rule_test.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package api_test

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

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
15 changes: 2 additions & 13 deletions cmd/credentials.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// 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 cmd

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

Expand Down
3 changes: 3 additions & 0 deletions cmd/health.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/health_alive.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/health_ready.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
21 changes: 2 additions & 19 deletions cmd/helpers.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
21 changes: 2 additions & 19 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
21 changes: 2 additions & 19 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
21 changes: 2 additions & 19 deletions cmd/rules.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/*
* Copyright © 2017-2018 Aeneas Rekkas <[email protected]>
*
* 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.
*
* @author Aeneas Rekkas <[email protected]>
* @copyright 2017-2018 Aeneas Rekkas <[email protected]>
* @license Apache-2.0
*/
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
Loading