Textualize/rich
97 findings in 105 Python files · 38,471 lines · scanned in 24.7 s on 2026-11-12
Every number here comes from the same analyzer that runs on your upload, on the tree as it is in the repository. A finding is listed with the function or module it sits in; nothing is matched from text. Tests, examples and benchmarks are excluded from the scan, so "never referenced inside the project" means exactly that.
import_cycle 1
modules that import each other
rich.__main__Circular import between 36 modules: rich.__main__ -> rich._log_render -> rich._palettes -> rich._wrap -> rich.abc -> rich.align -> rich.box -> rich.color -> rich.columns -> rich.console -> rich.constrain -> rich.control -> rich.default_styles -> rich.emoji -> rich.highlighter -> rich.json -> rich.jupyter -> rich.markdown -> rich.markup -> rich.padding -> rich.pager -> rich.palette -> rich.panel -> rich.pretty -> rich.repr -> rich.rule -> rich.screen -> rich.segment -> rich.style -> rich.styled -> rich.syntax -> rich.table -> rich.terminal_theme -> rich.text -> rich.theme -> rich.themes
swallowed_error 1
an except that hides what went wrong
rich.pretty.traverse.<locals>._traverseexception caught at line(s) 645 and dropped silently — log it or re-raise, or the failure never reaches anyone
god_class 3
a class that owns too much
rich.console.Console66 methods — likely does too muchrich.style.Style33 methods — likely does too muchrich.text.Text53 methods — likely does too much
wide_signature 17
functions that take so many arguments the call sites are unreadable
rich._log_render.LogRender.__init__6 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 13 call sites (rich/live.py:29, rich/logging.py:97, rich/markdown.py:156)rich._log_render.LogRender.__call__8 parameters — a call site says nothing about them; group them into one object or split the functionrich.json.JSON.__init__9 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 13 call sites (rich/live.py:29, rich/logging.py:97, rich/markdown.py:156)rich.json.JSON.from_data9 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 1 call site (rich/console.py:1784)rich.markdown.Markdown.__init__7 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 13 call sites (rich/live.py:29, rich/logging.py:97, rich/markdown.py:156)rich.pretty._ipy_display_hook9 parameters — a call site says nothing about them; group them into one object or split the function
and 11 more of the same check.
complex 27
branchy functions, counted from the AST
rich.console.Console.__init__cyclomatic complexity 32rich.markdown.Markdown.__rich_console__cyclomatic complexity 36rich.pretty.traverse.<locals>._traversecyclomatic complexity 47rich.style.Style.__init__cyclomatic complexity 49rich.style.Style.__str__cyclomatic complexity 35rich.table.Table._rendercyclomatic complexity 49
and 21 more of the same check.
duplicate 2
the same block in two places
rich.bar.Bar.__rich_measure__Identical code in 2 functions (rich.bar.Bar.__rich_measure__, rich.progress_bar.ProgressBar.__rich_measure__) — extract it into one function and call it from eachrich.live.Live.__exit__Identical code in 3 functions (rich.live.Live.__exit__, rich.progress.Progress.__exit__, rich.status.Status.__exit__) — extract it into one function and call it from each
hub 4
a module everything depends on
rich.cells.cell_lencalled from 16 places — change here ripples widelyrich.console.Console.get_stylecalled from 20 places — change here ripples widelyrich.console.Console.printcalled from 23 places — change here ripples widelyrich.segment.Segment.linecalled from 15 places — change here ripples widely
coupling 2
modules that know too much about each other
rich.consoledepends on 37 project modulesrich.tabledepends on 16 project modules
deep_conditions 1
conditionals nested past the point anyone can hold them
rich.markup.render5 nested if-blocks — return early on the failing case, or extract the innermost branch into its own function - reachable from 17 call sites (rich/console.py:1337, rich/console.py:1365, rich/console.py:1725)
suspicious_host 1
a hard-coded host or address
rich._export_formatsends data to www.textualize.io, cdnjs.cloudflare.com - not a host this project's manifest would explain; review what it uploads
large_module 3
a check from the analyzer
rich._emoji_codes3610 linesrich.console2687 linesrich.progress1709 lines
unused 25
never called, never imported, never read
rich._extension.load_ipython_extensionnever referenced inside the project (dead code or public API)rich._inspect.is_object_one_of_typesnever referenced inside the project (dead code or public API)rich._null_file.NullFile.writablenever referenced inside the project (dead code or public API)rich._null_file.NullFile.writelinesnever referenced inside the project (dead code or public API)rich.cells.split_textnever referenced inside the project (dead code or public API)rich.color.parse_rgb_hexnever referenced inside the project (dead code or public API)
and 19 more of the same check.
bad_name 10
a name that does not say what the thing holds
rich.__main__.ColorBox.__rich_console__names say nothing (g1, g2, h, l, r1, r2) — rename to what they holdrich.color.Color.downgradenames say nothing (_h, l, s) — rename to what they holdrich.color.blend_rgbnames say nothing (g1, g2, r1, r2) — rename to what they holdrich.palette.ColorBox.__rich_console__names say nothing (g1, g2, h, l, r1, r2) — rename to what they holdrich.progress_bar.ProgressBar._get_pulse_segmentsnames say nothing (bar, pi) — rename to what they holdrich.scope.testnames say nothing (bar, foo) — rename to what they hold
and 4 more of the same check.
Five projects free. A .zip or a public GitHub URL.
Other repositories, same treatment
- celery/celery 1052 findings
- encode/django-rest-framework 337 findings
- encode/httpx 26 findings
- fastapi/fastapi 163 findings
- pallets/click 85 findings
- pallets/flask 45 findings
- psf/requests 47 findings
- pydantic/pydantic 164 findings
- scrapy/scrapy 186 findings