Closed neomatrix369 closed 3 years ago
@sourcery-ai in the above report it would be helpful to find out what those recommended/suggested changes are, which areas in the code these changes can be brought about
The before and after changes report/comparison maybe a bit counter-intuitive if compared to the changes made in the code base
This PR has an average code quality of 85.18%
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 1.00 β | ||
Method Length | 37.00 β | ||
Working memory | 7.00 π | ||
Quality | % | 85.18% β | % |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 27 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
nlp_profiler/generate_features/init.py | 85.18% β |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
nlp_profiler/generate_features/init.py | generate_features | 2 β | 62 π | 11 π | 70.70% π | Extract out complex expressions |
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.
Merging #29 into master will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #29 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 21 +1
Lines 358 360 +2
Branches 51 51
=========================================
+ Hits 358 360 +2
Impacted Files | Coverage Ξ | |
---|---|---|
nlp_profiler/generate_features/__init__.py | 100.00% <100.00%> (ΓΈ) |
|
...erate_features/parallelisation_methods/__init__.py | 100.00% <100.00%> (ΓΈ) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 5ad0271...193f97a. Read the comment docs.
Merging, for now, will use the @sourcery-ai generated PRs as guidance to refractor further
Refactor: split the original generate_features.py and extract the parallelisation aspect into a module of it's own
Related to issue #28, and partially resolves it (reduces complexity)