Module Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Dict Str Str ListLoad Str Str Str ListLoad Str Str Expr Yield TupleLoad Str NameLoad ListLoad Str Str Str Str Str For NameStore NameLoad body Expr Yield TupleLoad Call AttributeLoad Str attr NameLoad ListLoad SubscriptLoad NameLoad Index NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr CompareIs NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Lambda arguments args defaults vararg kwarg Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListComp Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str ListLoad Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad Str ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad Str ListLoad Str Str Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore ListLoad TupleLoad ListLoad Call NameLoad Str Num Num Num NameLoad NameLoad ListLoad Num Dict Str Str Str Str Str Str Str Str Str Str Num Num Num ListLoad Num Str TupleLoad ListLoad Call NameLoad Str Num Num Num ListLoad Call NameLoad Str Num Num Num NameLoad Str ListLoad Num ListLoad Num Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Str ListLoad Dict Str Str Str Str Str Str Str Str Str Str Num Num Num ListLoad Num Str Str Str TupleLoad ListLoad Call NameLoad Str Num Num Num NameLoad NameLoad ListLoad Call NameLoad Str Num Num Num NameLoad NameLoad ListLoad Num Num Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Str ListLoad Dict Str Str Str Str Str Str Str Str Str Num Num Num ListLoad Num Str Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Num Num Num NameLoad Str Num Str Dict Str Str Str Str Str Str Num Num Str Num Str Num Dict Str Str Str Str Str Str Str Str Str Str ListLoad Num Num Num NameLoad Str Num Str Dict Str Str Str Str Str Str Str Str ListLoad Num Num Num NameLoad Str Num Str Dict Str Str Str Str Str Str Str Num Num Num NameLoad Str Num Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Num Num Num Str Str Num Str Dict Str Str Str Str Str Str Str Num Num Str Num Str Str Num Dict Str Str Str Str Str Str Str Str ListLoad Num Num Num Str Str Num Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Num Num Num Num Dict Str Str Str Str Str Str Str Num Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad Call AttributeLoad Call AttributeLoad Str attr Str Str attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Dict Str Call AttributeLoad NameLoad attr Dict Str Str Str Dict Str Str Num Num Str ListLoad Str Num Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Dict Str Call AttributeLoad NameLoad attr Dict Str Str Str Dict Str Str Num Num Str ListLoad Str Num Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore ListLoad Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword ListLoad Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword Str keyword ListLoad keyword Num keyword ListLoad keyword Num Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword Str keyword ListLoad keyword Num Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad keyword ListLoad keyword Num Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad keyword ListLoad keyword Num Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad keyword ListLoad keyword Num Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad keyword ListLoad keyword Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad Str attr NameLoad comprehension NameStore Str Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad Str attr NameLoad comprehension NameStore Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore ListComp Call AttributeLoad Str attr SubscriptLoad NameLoad Slice BinOpSub Call AttributeLoad NameLoad attr Str Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad SubscriptLoad NameLoad Slice Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad SubscriptLoad NameLoad Slice Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad SubscriptLoad NameLoad Slice Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad SubscriptLoad NameLoad Slice Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str NameLoad TupleLoad SubscriptLoad NameLoad Slice Num Num Num decorator_list decorator_list
N/A N/A os N/A sys N/A json N/A unittest N/A radon.cli.tools tools radon.visitors Function Class radon.raw Module N/A N/A N/A unittest.mock mock N/A N/A N/A ImportError N/A N/A mock paramunittest parametrized fake_isfile N/A N/A filename N/A N/A N/A N/A filename file.py N/A N/A True N/A False N/A fake_walk N/A N/A start N/A N/A N/A dirs N/A tests sub .hid N/A contents N/A tests sub N/A test_amod.py run.py .hid.py N/A amod.py bmod.py N/A N/A N/A . dirs N/A tox.ini amod.py test_all.py fake.yp noext N/A d dirs N/A N/A N/A N/A N/A N/A ./{0} format d N/A N/A contents N/A d N/A TestGenericTools N/A N/A unittest TestCase N/A test_open N/A N/A self N/A N/A N/A N/A N/A tools _open - fobj N/A N/A N/A N/A self assertTrue N/A fobj N/A sys stdin N/A m N/A N/A mock mock_open N/A N/A N/A mock patch radon.cli.tools.open m create True N/A N/A N/A N/A N/A N/A tools _open randomfile.py __enter__ N/A N/A N/A m assert_called_with randomfile.py N/A N/A TestIterFilenames N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self iter_files N/A N/A N/A N/A a kw N/A list N/A N/A tools iter_filenames a kw N/A assertPEqual N/A N/A self a b N/A N/A N/A paths N/A N/A list N/A map N/A N/A os path normpath p N/A p N/A a b N/A N/A N/A self assertEqual paths N/A test_stdin N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self iter_files N/A - N/A - N/A test_all N/A N/A self os_mod os_path_mod N/A N/A N/A N/A os_path_mod normpath N/A N/A os path normpath N/A N/A os_path_mod basename N/A N/A os path basename N/A N/A os_path_mod join N/A N/A os path join N/A N/A N/A os_path_mod isfile side_effect fake_isfile N/A N/A os_mod walk fake_walk N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path N/A file.py amod.py test_all.py tests/test_amod.py tests/run.py sub/amod.py sub/bmod.py N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path test_* N/A file.py amod.py tests/test_amod.py tests/run.py sub/amod.py sub/bmod.py N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path *test_* N/A file.py amod.py tests/run.py sub/amod.py sub/bmod.py N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path */test_*,amod* N/A file.py test_all.py tests/run.py sub/amod.py sub/bmod.py N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path None tests N/A file.py amod.py test_all.py sub/amod.py sub/bmod.py N/A N/A N/A self assertPEqual N/A N/A self iter_files N/A file.py random/path None tests,sub N/A file.py amod.py test_all.py N/A N/A N/A mock patch radon.cli.tools.os.path N/A N/A mock patch radon.cli.tools.os N/A N/A CC_RESULTS_CASES N/A N/A N/A N/A Function name 12 0 16 False None N/A 6 N/A type name lineno col_offset endline closures complexity rank function name 12 0 16 N/A 6 B N/A N/A N/A Class Classname 17 0 29 N/A N/A Function name 19 4 26 True Classname N/A 7 N/A 7 N/A type name lineno col_offset endline complexity rank methods class Classname 17 0 29 7 B N/A N/A type lineno col_offset endline closures complexity rank classname name method 19 4 26 N/A 7 B Classname name N/A N/A N/A Function name 12 0 16 False None N/A N/A Function aux 13 4 17 False None N/A 4 10 N/A type name lineno col_offset endline complexity rank closures function name 12 0 16 10 B N/A N/A name lineno col_offset endline closures complexity rank type aux 13 4 17 N/A 4 A function TestCCToDict N/A N/A unittest TestCase N/A setParameters N/A N/A self blocks N/A dict_result N/A N/A N/A self blocks blocks N/A N/A self dict_result dict_result N/A testCCToDict N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A tools cc_to_dict N/A self blocks N/A self dict_result N/A N/A N/A parametrized CC_RESULTS_CASES N/A CC_TO_XML_CASE N/A N/A closures endline complexity lineno is_method name col_offset rank N/A 16 6 12 False name 0 B N/A complexity endline rank lineno name col_offset 8 29 B 17 Classname 0 N/A classname closures endline complexity lineno is_method name col_offset rank Classname N/A 26 7 19 True name 4 B N/A closures endline complexity lineno is_method name col_offset rank N/A 17 4 13 False aux 4 A N/A endline complexity lineno is_method name col_offset rank 16 10 12 False name 0 B N/A CC_TO_CODECLIMATE_CASE N/A N/A closures endline complexity lineno type name col_offset rank N/A 16 6 12 function foo 0 B N/A complexity endline rank lineno type name col_offset 8 29 B 17 class Classname 0 N/A closures endline complexity lineno type name col_offset rank N/A 17 4 13 method bar 4 A TestDictConversion N/A N/A unittest TestCase N/A test_raw_to_dict N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A tools raw_to_dict N/A Module 103 123 98 8 19 5 3 N/A loc lloc sloc comments multi blank single_comments 103 123 98 8 19 5 3 N/A test_cc_to_xml N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A tools dict_to_xml N/A filename CC_TO_XML_CASE N/A N/A N/A N/A <ccm>
                              <metric>
                                <complexity>6</complexity>
                                <unit>name</unit>
                                <classification>B</classification>
                                <file>filename</file>
                                <startLineNumber>12</startLineNumber>
                                <endLineNumber>16</endLineNumber>
                              </metric>
                              <metric>
                                <complexity>8</complexity>
                                <unit>Classname</unit>
                                <classification>B</classification>
                                <file>filename</file>
                                <startLineNumber>17</startLineNumber>
                                <endLineNumber>29</endLineNumber>
                              </metric>
                              <metric>
                                <complexity>7</complexity>
                                <unit>Classname.name</unit>
                                <classification>B</classification>
                                <file>filename</file>
                                <startLineNumber>19</startLineNumber>
                                <endLineNumber>26</endLineNumber>
                              </metric>
                              <metric>
                                <complexity>4</complexity>
                                <unit>aux</unit>
                                <classification>A</classification>
                                <file>filename</file>
                                <startLineNumber>13</startLineNumber>
                                <endLineNumber>17</endLineNumber>
                              </metric>
                              <metric>
                                <complexity>10</complexity>
                                <unit>name</unit>
                                <classification>B</classification>
                                <file>filename</file>
                                <startLineNumber>12</startLineNumber>
                                <endLineNumber>16</endLineNumber>
                              </metric>
                            </ccm> replace replace N/A test_cc_to_codeclimate N/A N/A self N/A N/A N/A actual_results N/A N/A tools dict_to_codeclimate_issues N/A filename CC_TO_CODECLIMATE_CASE N/A expected_results N/A N/A N/A json dumps N/A description check_name content location type categories remediation_points Cyclomatic complexity is too high in function foo. (6) Complexity N/A body N/A N/A tools get_content N/A path lines filename N/A begin end 12 16 issue N/A Complexity 1100000 N/A N/A json dumps N/A description check_name content location type categories remediation_points Cyclomatic complexity is too high in class Classname. (8) Complexity N/A body N/A N/A tools get_content N/A path lines filename N/A begin end 17 29 issue N/A Complexity 1300000 N/A actual_sorted N/A N/A i actual_results N/A N/A N/A N/A actual_sorted append N/A N/A json loads i N/A expected_sorted N/A N/A i expected_results N/A N/A N/A N/A expected_sorted append N/A N/A json loads i N/A N/A N/A self assertEqual actual_sorted expected_sorted N/A N/A N/A CC_TO_TERMINAL_CASES N/A N/A Class name Classname lineno 17 col_offset 0 endline 29 methods N/A N/A Function name meth lineno 19 col_offset 4 endline 26 is_method True classname Classname closures N/A complexity 4 inner_classes N/A real_complexity 4 N/A Function name meth lineno 19 col_offset 4 endline 26 is_method True classname Classname closures N/A complexity 7 N/A Function name f1 lineno 12 col_offset 0 endline 16 is_method False classname None closures N/A complexity 14 N/A Function name f2 lineno 12 col_offset 0 endline 16 is_method False classname None closures N/A complexity 22 N/A Function name f3 lineno 12 col_offset 0 endline 16 is_method False classname None closures N/A complexity 32 N/A Function name f4 lineno 12 col_offset 0 endline 16 is_method False classname None closures N/A complexity 41 TestCCToTerminal N/A N/A unittest TestCase N/A test_cc_to_terminal N/A N/A self N/A N/A N/A N/A tools LETTERS_COLORS N/A dict N/A N/A l N/A N/A <!{0}!> format l N/A l FMC N/A N/A tools RANKS_COLORS N/A dict N/A N/A r N/A N/A <|{0}|> format r N/A r ABCDEF N/A N/A tools BRIGHT @ N/A N/A tools RESET __R__ N/A results CC_TO_TERMINAL_CASES N/A res N/A @<!C!>C __R__17:0 Classname - <|A|>A (4)__R__ @<!M!>M __R__19:4 Classname.meth - <|B|>B (7)__R__ @<!F!>F __R__12:0 f1 - <|C|>C (14)__R__ @<!F!>F __R__12:0 f2 - <|D|>D (22)__R__ @<!F!>F __R__12:0 f3 - <|E|>E (32)__R__ @<!F!>F __R__12:0 f4 - <|F|>F (41)__R__ N/A res_noshow N/A N/A N/A {0}__R__ format N/A r N/A N/A N/A N/A r index ( 1 N/A r res N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results False A F False N/A res_noshow 120 6 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results True A F False N/A res 120 6 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results True A D False N/A N/A res N/A -2 47 4 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results False A D False N/A N/A res_noshow N/A -2 47 4 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results True C F False N/A N/A res N/A 2 109 4 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results True B E False N/A N/A res N/A 1 -1 75 4 N/A N/A N/A self assertEqual N/A N/A tools cc_to_terminal results True B F True N/A N/A res N/A 1 120 6 N/A N/A