torressa / cspy

A collection of algorithms for the (Resource) Constrained Shortest Path problem in Python / C++ / C#
https://torressa.github.io/cspy/
MIT License
78 stars 24 forks source link

Cpp Rewrite #54

Closed torressa closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 3.31 ⭐ 2.79 ⭐ -0.52 👍
Method Length 58.69 ⭐ 70.75 🙂 12.06 👎
Working memory 9.42 🙂 8.76 🙂 -0.66 👍
Quality 70.53% 🙂 70.36% 🙂 -0.17% 👎
Other metrics Before After Change
Lines 2434 114 -2320
Changed files Quality Before Quality After Quality Change
docs/conf.py 85.41% ⭐ 84.93% ⭐ -0.48% 👎
examples/jpath/jpath_preprocessing.py 63.39% 🙂 63.39% 🙂 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
examples/jpath/jpath_preprocessing.py add_cspy_edge_attributes 5 ⭐ 123 😞 10 😞 61.05% 🙂 Try splitting into smaller methods. Extract out complex expressions
examples/jpath/jpath_preprocessing.py relabel_source_sink 2 ⭐ 95 🙂 12 😞 64.07% 🙂 Extract out complex expressions

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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.