File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -77,28 +77,6 @@ func (r *BuiltinRuleSet) ApplyConfig(content *hclext.BodyContent) error {
77
77
return nil
78
78
}
79
79
80
- // ApplyCommonConfig reflects common configurations regardless of plugins.
81
- func (r * BuiltinRuleSet ) ApplyCommonConfig (config * Config ) {
82
- r .EnabledRules = []Rule {}
83
-
84
- if config .DisabledByDefault {
85
- log .Printf ("[DEBUG] Only mode is enabled. Ignoring default plugin rules" )
86
- }
87
-
88
- for _ , rule := range r .Rules {
89
- enabled := rule .Enabled ()
90
- if cfg := config .Rules [rule .Name ()]; cfg != nil {
91
- enabled = cfg .Enabled
92
- } else if config .DisabledByDefault {
93
- enabled = false
94
- }
95
-
96
- if enabled {
97
- r .EnabledRules = append (r .EnabledRules , rule )
98
- }
99
- }
100
- }
101
-
102
80
// Check runs inspection for each rule by applying Runner.
103
81
func (r * BuiltinRuleSet ) Check (runner Runner ) error {
104
82
for _ , rule := range r .EnabledRules {
You can’t perform that action at this time.
0 commit comments