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

feat: add copywrite #97

Merged
merged 1 commit into from Mar 16, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions .copywrite.hcl
@@ -0,0 +1,15 @@
schema_version = 1

project {
license = "MIT"
copyright_year = 2024
copyright_holder = "Bruno Schaatsbergen"

# (OPTIONAL) A list of globs that should not have copyright/license headers.
# Supports doublestar glob patterns for more flexibility in defining which
# files or folders should be ignored
header_ignore = [
# "vendor/**",
# "**autogen**",
]
}
3 changes: 3 additions & 0 deletions .github/dependabot.yaml
@@ -1,3 +1,6 @@
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT

version: 2
updates:
- package-ecosystem: "gomod"
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler.yaml
@@ -1,3 +1,6 @@
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT

github-actions:
- changed-files:
- any-glob-to-any-file:
Expand Down
3 changes: 3 additions & 0 deletions .github/stale.yaml
@@ -1,3 +1,6 @@
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -25,3 +25,7 @@ jobs:
skip-build-cache: true
- name: Run tests
run: go test -v ./...
- name: Setup Copywrite
uses: hashicorp/setup-copywrite@v1.1.2
- name: Check Header Compliance
run: copywrite headers --plan
3 changes: 3 additions & 0 deletions .golangci.yml
@@ -1,3 +1,6 @@
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT

# Visit https://golangci-lint.run/ for usage documentation and information on other useful linters
issues:
max-per-linter: 0
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yaml
@@ -1,3 +1,6 @@
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT

project_name: "cidr"

# before are hooks that will be run before any builds are done, so good to put install scripts and stuff that your builds need here
Expand Down
3 changes: 3 additions & 0 deletions cmd/contains.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/count.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/explain.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/overlaps.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/root.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions main.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package main

import "github.com/bschaatsbergen/cidr/cmd"
Expand Down
3 changes: 3 additions & 0 deletions pkg/core/const.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package core

const (
Expand Down
3 changes: 3 additions & 0 deletions pkg/core/core.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package core

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/core/core_test.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package core_test

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/helper/contains.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package helper

// ContainsInt checks if the given slice of integers contains the specified integer.
Expand Down
3 changes: 3 additions & 0 deletions pkg/helper/contains_test.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package helper_test

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/helper/network.go
@@ -1,3 +1,6 @@
// Copyright (c) Bruno Schaatsbergen
// SPDX-License-Identifier: MIT

package helper

import "net"
Expand Down