File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ def main():
174
174
elif args .rootdir :
175
175
warnings .warn (
176
176
"--rootdir (-r) is deprecated. Use --source-dir (-S) instead." ,
177
+ DeprecationWarning ,
177
178
)
178
179
rootpath = args .rootdir
179
180
rootdir = os .path .realpath (rootpath )
@@ -210,7 +211,10 @@ def main():
210
211
len (additional_platforms ) == 0 and args .analysis_file is None
211
212
)
212
213
if config_file is None and config_required :
213
- warnings .warn ("Implicitly defined configuration files are deprecated." )
214
+ warnings .warn (
215
+ "Implicitly defined configuration files are deprecated." ,
216
+ DeprecationWarning ,
217
+ )
214
218
config_file = os .path .join (rootdir , "config.yaml" )
215
219
if not os .path .exists (config_file ):
216
220
raise RuntimeError (f"Could not find config file { config_file } " )
@@ -230,6 +234,7 @@ def main():
230
234
warnings .warn (
231
235
"YAML configuration files are deprecated. "
232
236
+ "Use TOML analysis files instead." ,
237
+ DeprecationWarning ,
233
238
)
234
239
if not util .ensure_yaml (config_file ):
235
240
logging .getLogger ("codebasin" ).error (
You can’t perform that action at this time.
0 commit comments