File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,20 @@ def _config_initialization(
32
32
linter .set_current_module (config_file )
33
33
34
34
# Read the configuration file
35
+ config_file_parser = config ._ConfigurationFileParser (verbose_mode , linter )
35
36
try :
36
- # The parser is stored on linter.cfgfile_parser
37
- linter .read_config_file (config_file = config_file_path , verbose = verbose_mode )
37
+ config_data = config_file_parser .parse_config_file (file_path = config_file_path )
38
38
except OSError as ex :
39
39
print (ex , file = sys .stderr )
40
40
sys .exit (32 )
41
- config_parser = linter .cfgfile_parser
42
41
43
- config_file_parser = config ._ConfigurationFileParser (verbose_mode , linter )
44
42
try :
45
- config_data = config_file_parser .parse_config_file (file_path = config_file_path )
43
+ # The parser is stored on linter.cfgfile_parser
44
+ linter .read_config_file (config_file = config_file_path , verbose = verbose_mode )
46
45
except OSError as ex :
47
46
print (ex , file = sys .stderr )
48
47
sys .exit (32 )
48
+ config_parser = linter .cfgfile_parser
49
49
50
50
# Run init hook, if present, before loading plugins
51
51
if config_parser .has_option ("MASTER" , "init-hook" ):
You can’t perform that action at this time.
0 commit comments