Skip to content

Commit

Permalink
Merge pull request #73 from attestantio/go_header
Browse files Browse the repository at this point in the history
Add goheader for license check
  • Loading branch information
Bez625 authored Oct 10, 2024
2 parents bcf6aec + 50707da commit ab21fc9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ coverage.html
# Tags
tags

# IntelliJ and friends
.idea/

# Makefile
Makefile

# Local TODO
TODO.md
18 changes: 18 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@ linters-settings:
json: snake
yaml: snake

goheader:
values:
regexp:
YEARS: '(20\d\d - 20\d\d|20\d\d, 20\d\d|20\d\d)'
template: |-
Copyright © {{ YEARS }} Attestant Limited.
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.
linters:
# Enable all available linters.
# Default: false
Expand Down

0 comments on commit ab21fc9

Please sign in to comment.