diff --git a/.golangci.yml b/.golangci.yml index 9f437d5..4d6d74f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -135,6 +135,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 diff --git a/services/accountmanager/utils/utils.go b/services/accountmanager/utils/utils.go index 1338380..f7995af 100644 --- a/services/accountmanager/utils/utils.go +++ b/services/accountmanager/utils/utils.go @@ -1,3 +1,16 @@ +// Copyright © 2022 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. + package utils import apiv1 "github.com/attestantio/go-eth2-client/api/v1" diff --git a/services/blockrelay/v2/baserelayconfig.go b/services/blockrelay/v2/baserelayconfig.go index e7f2fa3..3df48ce 100644 --- a/services/blockrelay/v2/baserelayconfig.go +++ b/services/blockrelay/v2/baserelayconfig.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Atestant Limited. +// Copyright © 2022 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 diff --git a/services/blockrelay/v2/proposerrelayconfig.go b/services/blockrelay/v2/proposerrelayconfig.go index 18ab3fe..5828490 100644 --- a/services/blockrelay/v2/proposerrelayconfig.go +++ b/services/blockrelay/v2/proposerrelayconfig.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Atestant Limited. +// Copyright © 2022 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 diff --git a/testutil/bytes.go b/testutil/bytes.go index d46a25e..2639f3e 100644 --- a/testutil/bytes.go +++ b/testutil/bytes.go @@ -1,4 +1,4 @@ -// Copyright © 2020 Attestant Limited +// Copyright © 2020 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 diff --git a/testutil/committees.go b/testutil/committees.go index 44ce4de..27c89e5 100644 --- a/testutil/committees.go +++ b/testutil/committees.go @@ -9,7 +9,7 @@ // 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 +// limitations under the License. package testutil