@@ -125,19 +125,19 @@ func loadConfig(configFile string) (gas.Config, error) {
125
125
func loadRules (include , exclude string ) rules.RuleList {
126
126
var filters []rules.RuleFilter
127
127
if include != "" {
128
- log .Printf ("including rules: %s" , include )
128
+ logger .Printf ("including rules: %s" , include )
129
129
including := strings .Split (include , "," )
130
130
filters = append (filters , rules .NewRuleFilter (false , including ... ))
131
131
} else {
132
- log .Println ("including rules: default" )
132
+ logger .Println ("including rules: default" )
133
133
}
134
134
135
135
if exclude != "" {
136
- log .Printf ("excluding rules: %s" , exclude )
136
+ logger .Printf ("excluding rules: %s" , exclude )
137
137
excluding := strings .Split (exclude , "," )
138
138
filters = append (filters , rules .NewRuleFilter (true , excluding ... ))
139
139
} else {
140
- log .Println ("excluding rules: default" )
140
+ logger .Println ("excluding rules: default" )
141
141
}
142
142
return rules .Generate (filters ... )
143
143
}
@@ -192,7 +192,7 @@ func main() {
192
192
// Load enabled rule definitions
193
193
ruleDefinitions := loadRules (* flagRulesInclude , * flagRulesExclude )
194
194
if len (ruleDefinitions ) <= 0 {
195
- log .Fatal ("cannot continue: no rules are configured." )
195
+ logger .Fatal ("cannot continue: no rules are configured." )
196
196
}
197
197
198
198
// Create the analyzer
0 commit comments