Skip to content

Commit

Permalink
Merge pull request #44 from portefaix/feat/license
Browse files Browse the repository at this point in the history
License headers
  • Loading branch information
nlamirault authored Dec 23, 2022
2 parents 21cf103 + 6f8aa3d commit aebfa01
Show file tree
Hide file tree
Showing 25 changed files with 100 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .github/issue_label_bot.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

label-alias:
bug: 'kind/bug'
Expand Down
4 changes: 3 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# Labels for action/labeler

Expand Down
4 changes: 3 additions & 1 deletion .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# labels to be used with /area command
area:
Expand Down
4 changes: 3 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
Expand Down
4 changes: 3 additions & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: build
name: Golang / Build

on:
push:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/draft-labels.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Project / Draft PR Labels

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Tools / Gitleaks

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prow-labels.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# name: "Label PRs from globs"
# on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prow-lgtm-merge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Prow / Merge on lgtm label
on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prow-lgtm-pull.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Prow / Run Jobs on PR
on: pull_request
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Prow / Github Actions
on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Projet / Rebase
on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Project / Release Drafter

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: release
name: Project / Release

on:
push:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Renovate / Helm releases
name: Project / Renovate

on:
workflow_dispatch:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/size.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

name: Project / Size PR

Expand Down
16 changes: 16 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

// Copyright (C) Nicolas Lamirault <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0

# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
Expand Down
18 changes: 11 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (C) 2021 Nicolas Lamirault <[email protected]>
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
Expand All @@ -18,22 +20,24 @@ repos:
exclude: mkdocs.yml
- id: check-added-large-files
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
rev: v1.3.1
hooks:
- id: insert-license
files: \.go
args:
- --license-filepath
- hack/config/license.txt
- LICENSE
- --comment-style
- //
# - --remove-header
- id: insert-license
files: Makefile
files: (Makefile|\.mk|\.yaml|\.yml|\.toml|\.sh)
args:
- --license-filepath
- hack/config/license.txt
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
- LICENSE
# - --remove-header
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-vet
Expand Down
4 changes: 3 additions & 1 deletion hack/config/license.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Copyright (C) 2021 Nicolas Lamirault <[email protected]>
Copyright (C) Nicolas Lamirault <[email protected]>

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.

SPDX-License-Identifier: MPL-2.0
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# SPDX-License-Identifier: MPL-2.0

BANNER = P O R T E F A I X / T F L I N T

Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2021 Nicolas Lamirault <[email protected]>
// Copyright (C) Nicolas Lamirault <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0

package main

Expand Down
4 changes: 3 additions & 1 deletion rules/terraform_portefaix_standard_files.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2021 Nicolas Lamirault <[email protected]>
// Copyright (C) Nicolas Lamirault <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0

package rules

Expand Down
4 changes: 3 additions & 1 deletion rules/terraform_portefaix_standard_structure.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2021 Nicolas Lamirault <[email protected]>
// Copyright (C) Nicolas Lamirault <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0

package rules

Expand Down
4 changes: 3 additions & 1 deletion rules/terraform_portefaix_tfenv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (C) 2021 Nicolas Lamirault <[email protected]>
// Copyright (C) Nicolas Lamirault <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0

package rules

Expand Down

0 comments on commit aebfa01

Please sign in to comment.