tpaviot / ProcessScheduler

A Python package for automatic and optimized resource scheduling
https://processscheduler.github.io/
GNU General Public License v3.0
58 stars 17 forks source link

Change report status in check_sat #116

Closed tpaviot closed 1 year ago

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.06%.

Quality metrics Before After Change
Complexity 35.00 ⛔ 34.90 ⛔ -0.10 👍
Method Length 178.21 😞 180.07 😞 1.86 👎
Working memory 12.76 😞 12.78 😞 0.02 👎
Quality 29.17% 😞 29.11% 😞 -0.06% 👎
Other metrics Before After Change
Lines 622 635 13
Changed files Quality Before Quality After Quality Change
processscheduler/solver.py 29.17% 😞 29.11% 😞 -0.06% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
processscheduler/solver.py SchedulingSolver.__init__ 54 ⛔ 798 ⛔ 16 ⛔ 9.94% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
processscheduler/solver.py SchedulingSolver.solve_optimize_incremental 33 ⛔ 342 ⛔ 16 ⛔ 17.82% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
processscheduler/solver.py SchedulingSolver.build_solution 42 ⛔ 514 ⛔ 12 😞 18.16% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
processscheduler/solver.py SchedulingSolver.solve 31 😞 221 ⛔ 12 😞 28.96% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
processscheduler/solver.py SchedulingSolver.create_objective 23 😞 130 😞 9 🙂 47.29% 😞 Refactor to reduce nesting. Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!