Florian-DELRIEU / Gravitationnal-Sytem

Gravitational simulator for a system of N body
1 stars 0 forks source link

Simplify #29

Closed Florian-DELRIEU closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 2.36%.

Quality metrics Before After Change
Complexity 1.09 ⭐ 1.69 ⭐ 0.60 👎
Method Length 75.73 🙂 60.44 ⭐ -15.29 👍
Working memory 8.12 🙂 7.70 🙂 -0.42 👍
Quality 71.46% 🙂 73.82% 🙂 2.36% 👍
Other metrics Before After Change
Lines 169 188 19
Changed files Quality Before Quality After Quality Change
GSmain.py 70.88% 🙂 73.13% 🙂 2.25% 👍
ExempleScritpts/MinimalScript.py 75.03% ⭐ 90.28% ⭐ 15.25% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
GSmain.py AstralBody.refresh 3 ⭐ 205 ⛔ 12 😞 51.41% 🙂 Try splitting into smaller methods. Extract out complex expressions
GSmain.py AstralBody.Gvector 1 ⭐ 117 🙂 11 😞 63.86% 🙂 Extract out complex expressions
GSmain.py AstralBody.__init__ 0 ⭐ 159 😞 7 🙂 68.61% 🙂 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!