Documentation
¶
Index ¶
Constants ¶
View Source
const (
FilesRuleName = "files"
)
Variables ¶
View Source
var CELicenseRe = regexp.MustCompile(`(?s)[/#{!-]*(\s)*Copyright 202[1-9] Flant JSC[-!}\n#/]*
[/#{!-]*(\s)*Licensed under the Apache License, Version 2\.0 \(the "License"\);[-!}\n]*
[/#{!-]*(\s)*you may not use this file except in compliance with the License\.[-!}\n]*
[/#{!-]*(\s)*You may obtain a copy of the License at[-!}\n#/]*
[/#{!-]*(\s)*http://www\.apache\.org/licenses/LICENSE-2\.0[-!}\n#/]*
[/#{!-]*(\s)*Unless required by applicable law or agreed to in writing, software[-!}\n]*
[/#{!-]*(\s)*distributed under the License is distributed on an "AS IS" BASIS,[-!}\n]*
[/#{!-]*(\s)*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.[-!}\n]*
[/#{!-]*(\s)*See the License for the specific language governing permissions and[-!}\n]*
[/#{!-]*(\s)*limitations under the License\.[-!}\n]*`)
Functions ¶
This section is empty.
Types ¶
type FilesRule ¶
type FilesRule struct {
pkg.RuleMeta
pkg.StringRule
}
func NewFilesRule ¶
func NewFilesRule(excludeRules []pkg.StringRuleExclude) *FilesRule
func (*FilesRule) CheckFiles ¶
func (r *FilesRule) CheckFiles(mod *module.Module, errorList *errors.LintRuleErrorsList)
Click to show internal directories.
Click to hide internal directories.