Skip to content

Commit

Permalink
Merge pull request #97 from bschaatsbergen/copywrite
Browse files Browse the repository at this point in the history
feat: add copywrite
  • Loading branch information
bschaatsbergen committed Mar 16, 2024
2 parents 82e1f6e + dfb2580 commit 7ab85f5
Show file tree
Hide file tree
Showing 19 changed files with 70 additions and 0 deletions.
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

0 comments on commit 7ab85f5

Please sign in to comment.