Skip to content

Commit

Permalink
cleanup code - comments and var names
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Oct 2, 2023
1 parent 0eb4c9f commit 3e33af6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ var (
commit = "none"
date = "unknown"
builtBy = "unknown"
AppFs = afero.NewOsFs()
//used to operations (checking path etc) related with user config files

Check warning on line 24 in cli/main.go

View workflow job for this annotation

GitHub Actions / Lint

comment on exported var AppFs should be of the form "AppFs ..."
AppFs = afero.NewOsFs()
)

func fail(err string) {
Expand Down
4 changes: 2 additions & 2 deletions lint/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (rc *RuleConfig) Initialize() error {
type RulesConfig = map[string]RuleConfig

// MustExclude - checks if given filename `name` must be excluded
func (rcfg *RuleConfig) MustExclude(name string) bool {
for _, exclude := range rcfg.excludeFilters {
func (rc *RuleConfig) MustExclude(name string) bool {
for _, exclude := range rc.excludeFilters {
if exclude.MatchFileName(name) {
return true
}
Expand Down

0 comments on commit 3e33af6

Please sign in to comment.