diff --git a/.gitignore b/.gitignore index c3d8de1..c022ab5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,11 @@ coverage.html # Tags tags +# IntelliJ and friends +.idea/ + +# Makefile +Makefile + # Local TODO TODO.md diff --git a/.golangci.yml b/.golangci.yml index 0ff1242..d7aeec5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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