Closed avendesora closed 3 years ago
❌ Merging this PR will decrease code quality in the affected files by 0.02%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 4.08 ⭐ | 4.02 ⭐ | -0.06 👍 |
Method Length | 46.06 ⭐ | 48.93 ⭐ | 2.87 👎 |
Working memory | 10.91 😞 | 14.40 😞 | 3.49 👎 |
Quality | 73.74% 🙂 | 73.72% 🙂 | -0.02% 👎 |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 3368 | 4245 | 877 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
pythonbible/init.py | 83.42% ⭐ | 82.94% ⭐ | -0.48% 👎 |
pythonbible/converter.py | 49.69% 😞 | 51.92% 🙂 | 2.23% 👍 |
pythonbible/formatter.py | 66.93% 🙂 | 73.69% 🙂 | 6.76% 👍 |
pythonbible/normalized_reference.py | 98.67% ⭐ | 97.84% ⭐ | -0.83% 👎 |
pythonbible/parser.py | 48.46% 😞 | 51.11% 🙂 | 2.65% 👍 |
pythonbible/regular_expressions.py | 37.05% 😞 | 44.84% 😞 | 7.79% 👍 |
pythonbible/roman_numeral_util.py | 78.83% ⭐ | 77.62% ⭐ | -1.21% 👎 |
pythonbible/verses.py | 80.34% ⭐ | 81.74% ⭐ | 1.40% 👍 |
tests/conftest.py | 91.75% ⭐ | 90.29% ⭐ | -1.46% 👎 |
tests/test_converter.py | 91.34% ⭐ | 90.68% ⭐ | -0.66% 👎 |
tests/test_formatter.py | 84.58% ⭐ | 86.95% ⭐ | 2.37% 👍 |
tests/test_parser.py | 86.30% ⭐ | 81.81% ⭐ | -4.49% 👎 |
tests/test_regular_expressions.py | 81.97% ⭐ | 84.69% ⭐ | 2.72% 👍 |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
tests/conftest.py | book_alternative_names | 0 ⭐ | 566 ⛔ | 361 ⛔ | 33.59% 😞 | Try splitting into smaller methods. Extract out complex expressions |
pythonbible/parser.py | _process_sub_reference | 14 🙂 | 229 ⛔ | 14 😞 | 36.60% 😞 | Try splitting into smaller methods. Extract out complex expressions |
pythonbible/parser.py | normalize_reference | 18 🙂 | 190 😞 | 13 😞 | 37.56% 😞 | Try splitting into smaller methods. Extract out complex expressions |
pythonbible/converter.py | convert_verse_ids_to_references | 11 🙂 | 181 😞 | 15 😞 | 41.45% 😞 | Try splitting into smaller methods. Extract out complex expressions |
pythonbible/formatter.py | format_scripture_text_verse_by_verse | 13 🙂 | 112 🙂 | 15 😞 | 47.15% 😞 | 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.
New functionality to handle single chapter books, multi-book references, and book groups.
Began real documentation.