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 authored 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ jobs:
skip-build-cache: true
- name: Run tests
run: go test -v ./...
- name: Setup Copywrite
uses: hashicorp/[email protected]
- name: Check Header Compliance
run: copywrite headers --plan
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.