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