Skip to content

Commit 747e58e

Browse files
committed
fixup! linter issues
Signed-off-by: Bryce Palmer <[email protected]>
1 parent a7ef8e3 commit 747e58e

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

pkg/analysis/forbiddenmarkers/analyzer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ type analyzer struct {
3434
forbiddenMarkers []string
3535
}
3636

37+
// NewAnalyzer creates a new analysis.Analyzer for the forbiddenmarkers
38+
// linter based on the provided config.ForbiddenMarkersConfig.
3739
func NewAnalyzer(cfg config.ForbiddenMarkersConfig) *analysis.Analyzer {
3840
a := &analyzer{
3941
forbiddenMarkers: cfg.Markers,

pkg/analysis/forbiddenmarkers/analyzer_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
Copyright 2025 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
116
package forbiddenmarkers_test
217

318
import (

pkg/analysis/nonullable/analyzer_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
Copyright 2025 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
116
package nonullable
217

318
import (

0 commit comments

Comments
 (0)