Skip to content

Commit

Permalink
docs: standardize license headers (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo authored Nov 3, 2022
1 parent f810a0b commit 851cd0f
Show file tree
Hide file tree
Showing 174 changed files with 470 additions and 1,123 deletions.
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

0 comments on commit 851cd0f

Please sign in to comment.