Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CodeLimit workflow #3593

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robvanderleek
Copy link

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Description

Thanks for this wonderful project.
Are you open to include a simple code quality check in the automated build system?
I'm developing an open source tool called CodeLimit that monitors function length.
Still in active development, looking for any kind of feedback from the community.
The generated report for this codebase is attached below.

CodeLimit Report

Overview

Language Files Lines of Code Functions
Python 124 12002 974 68 20

Summary

Easy / Verbose Hard-to-maintain ⚠ Unmaintainable ❌
61% 23% 16%

🛑 16% of the functions are unmaintainable, refactoring necessary.

Findings

Function Length File
_traverse 216 rich/pretty.py
_render 152 rich/table.py
_get_syntax 120 rich/syntax.py
init 112 rich/console.py
extract 107 rich/traceback.py
export_svg 105 rich/console.py
make_test_card 104 rich/main.py
rich_console 102 rich/markdown.py
_render_stack 96 rich/traceback.py
render 92 rich/markup.py

78 more rows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant