robotcode-analyze 2.3.1__tar.gz → 2.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotcode-analyze
3
- Version: 2.3.1
3
+ Version: 2.4.0
4
4
  Summary: RobotCode analyze plugin for Robot Framework
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -0,0 +1 @@
1
+ __version__ = "2.4.0"
@@ -398,13 +398,14 @@ def code(
398
398
 
399
399
  result_collector = ResultCollector(mask)
400
400
  result_collector.start()
401
+ analyzer = CodeAnalyzer(
402
+ app=app,
403
+ analysis_config=analyzer_config.to_workspace_analysis_config(),
404
+ robot_profile=robot_profile,
405
+ root_folder=root_folder,
406
+ )
401
407
  try:
402
- for e in CodeAnalyzer(
403
- app=app,
404
- analysis_config=analyzer_config.to_workspace_analysis_config(),
405
- robot_profile=robot_profile,
406
- root_folder=root_folder,
407
- ).run(paths=paths, filter=filter):
408
+ for e in analyzer.run(paths=paths, filter=filter):
408
409
  result_collector.add_diagnostics_report(e)
409
410
 
410
411
  for e in result_collector.diagnostics:
@@ -426,7 +427,7 @@ def code(
426
427
 
427
428
  app.echo(statistics_str)
428
429
 
429
- app.exit(result_collector.calculate_return_code().value)
430
+ app.exit(result_collector.calculate_return_code().value, fast=True)
430
431
 
431
432
  except (TypeError, ValueError) as e:
432
433
  raise click.ClickException(str(e)) from e
@@ -1 +0,0 @@
1
- __version__ = "2.3.1"