@@ -115,23 +115,19 @@ def load_baseline_from_dict(cls, data):
115115 # The difference will show whenever the word list changes
116116 automaton , result .word_list_hash = build_automaton (result .word_list_file )
117117
118- # In v0.13.2 the `--custom-plugins` option got added
119- result .custom_plugin_paths = data .get ('custom_plugin_paths' , ())
120-
121- plugins = []
122- for plugin in data ['plugins_used' ]:
123- plugin_classname = plugin .pop ('name' )
124- plugins .append (
125- initialize .from_plugin_classname (
126- plugin_classname ,
127- custom_plugin_paths = result .custom_plugin_paths ,
128- exclude_lines_regex = result .exclude_lines ,
129- automaton = automaton ,
130- should_verify_secrets = False ,
131- ** plugin
132- ),
133- )
134- result .plugins = tuple (plugins )
118+ # In v0.14.0 the `--custom-plugins` option got added
119+ result .custom_plugin_paths = tuple (data .get ('custom_plugin_paths' , ()))
120+
121+ result .plugins = tuple (
122+ initialize .from_plugin_classname (
123+ plugin_classname = plugin .pop ('name' ),
124+ custom_plugin_paths = result .custom_plugin_paths ,
125+ exclude_lines_regex = result .exclude_lines ,
126+ automaton = automaton ,
127+ should_verify_secrets = False ,
128+ ** plugin
129+ ) for plugin in data ['plugins_used' ]
130+ )
135131
136132 for filename in data ['results' ]:
137133 result .data [filename ] = {}
0 commit comments