MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
This report presents the forensic synthetic code analysis of micropython/micropython, a C project with 21,895 GitHub stars. SynthScan v2.0 examined 635,174 lines of code across 4657 source files, recording 6787 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 10.5 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 6787 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/uncrustify.cfg | 1 | # Uncrustify-0.71.0_f | COMMENT |
| LOW | tools/uncrustify.cfg | 21 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 41 | tok_split_gte = false # true/false | COMMENT |
| LOW | tools/uncrustify.cfg | 81 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 101 | COMMENT | |
| LOW | tools/uncrustify.cfg | 221 | # prototype or function definition. | COMMENT |
| LOW | tools/uncrustify.cfg | 381 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 701 | COMMENT | |
| LOW | tools/uncrustify.cfg | 721 | sp_member = remove # ignore/add/remove/force | COMMENT |
| LOW | tools/uncrustify.cfg | 781 | # (OC) Add or remove space between '@selector' and '(', | COMMENT |
| LOW | tools/uncrustify.cfg | 821 | COMMENT | |
| LOW | tools/uncrustify.cfg | 881 | COMMENT | |
| LOW | tools/uncrustify.cfg | 921 | COMMENT | |
| LOW | tools/uncrustify.cfg | 941 | # The continuation indent, only for class header line(s). If non-zero, this | COMMENT |
| LOW | tools/uncrustify.cfg | 1101 | # Indentation column for standalone 'throw' qualifier on a function | COMMENT |
| LOW | tools/uncrustify.cfg | 1161 | # >0: Absolute column where 1 is the leftmost column | COMMENT |
| LOW | tools/uncrustify.cfg | 1181 | # line so that it lines up after the open parenthesis (not recommended). | COMMENT |
| LOW | tools/uncrustify.cfg | 1241 | # followed by a newline, the next line indent is one tab. | COMMENT |
| LOW | tools/uncrustify.cfg | 1261 | indent_oc_msg_colon = 0 # unsigned number | COMMENT |
| LOW | tools/uncrustify.cfg | 1281 | COMMENT | |
| LOW | tools/uncrustify.cfg | 1301 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 1541 | COMMENT | |
| LOW | tools/uncrustify.cfg | 1581 | # Add or remove newline between 'namespace' and '{'. | COMMENT |
| LOW | tools/uncrustify.cfg | 1601 | COMMENT | |
| LOW | tools/uncrustify.cfg | 1621 | COMMENT | |
| LOW | tools/uncrustify.cfg | 1641 | # Add or remove newline between 'class' and '{'. | COMMENT |
| LOW | tools/uncrustify.cfg | 1661 | COMMENT | |
| LOW | tools/uncrustify.cfg | 1841 | # Whether to add a newline after a virtual brace open with a non-empty body. | COMMENT |
| LOW | tools/uncrustify.cfg | 1961 | # is only one line so that the entire definition (prototype, braces, body) is | COMMENT |
| LOW | tools/uncrustify.cfg | 2021 | # Requires nl_class_leave_one_liners=true. Overrides nl_before_func_body_def | COMMENT |
| LOW | tools/uncrustify.cfg | 2041 | # of a function body. | COMMENT |
| LOW | tools/uncrustify.cfg | 2061 | COMMENT | |
| LOW | tools/uncrustify.cfg | 2101 | COMMENT | |
| LOW | tools/uncrustify.cfg | 2121 | nl_after_namespace = 0 # unsigned number | COMMENT |
| LOW | tools/uncrustify.cfg | 2141 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 2181 | COMMENT | |
| LOW | tools/uncrustify.cfg | 2321 | # The span for aligning function-call parameters for single line functions. | COMMENT |
| LOW | tools/uncrustify.cfg | 2341 | # 1: Part of the variable 'void *foo;' | COMMENT |
| LOW | tools/uncrustify.cfg | 2381 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 2401 | # 0: Don't align (default). | COMMENT |
| LOW | tools/uncrustify.cfg | 2421 | # The gap for aligning class member definitions. | COMMENT |
| LOW | tools/uncrustify.cfg | 2441 | align_struct_init_span = 0 # unsigned number | COMMENT |
| LOW | tools/uncrustify.cfg | 2461 | # 1: Part of type name: 'typedef int *pint;' | COMMENT |
| LOW | tools/uncrustify.cfg | 2481 | # an effect. | COMMENT |
| LOW | tools/uncrustify.cfg | 2561 | # on the ':'. | COMMENT |
| LOW | tools/uncrustify.cfg | 2581 | # | COMMENT |
| LOW | tools/uncrustify.cfg | 2641 | # and last lines of the comment are the same length. | COMMENT |
| LOW | tools/uncrustify.cfg | 2661 | cmt_insert_file_footer = "" # string | COMMENT |
| LOW | tools/uncrustify.cfg | 2681 | cmt_insert_oc_msg_header = "" # string | COMMENT |
| LOW | tools/uncrustify.cfg | 2721 | # Whether to enforce that all blocks of an 'if'/'else if'/'else' chain either | COMMENT |
| LOW | tools/uncrustify.cfg | 2741 | mod_full_brace_nl = 0 # unsigned number | COMMENT |
| LOW | tools/uncrustify.cfg | 2861 | # (OC) Weight of getter type ('getter=') when organizing properties. | COMMENT |
| LOW | tools/uncrustify.cfg | 2921 | # Whether to indent case statements between #if, #else, and #endif. | COMMENT |
| LOW | tools/uncrustify.cfg | 2941 | COMMENT | |
| LOW | tools/uncrustify.cfg | 2961 | COMMENT | |
| LOW | tools/uncrustify.cfg | 2981 | # To prevent the double use of the indentation value, use this option with the | COMMENT |
| LOW | tools/uncrustify.cfg | 3001 | # by default. | COMMENT |
| LOW | tools/uncrustify.cfg | 3021 | # Warn levels - 1: error, 2: warning (default), 3: note | COMMENT |
| LOW | tools/uncrustify.cfg | 3041 | # Ignore - do not do any changes | COMMENT |
| LOW | tools/uncrustify.cfg | 3061 | # Example: | COMMENT |
| 5808 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/manifestfile.py | 255 | except Exception as er: | CODE |
| LOW | tools/manifestfile.py | 397 | except Exception as e: | CODE |
| MEDIUM | tools/manifestfile.py | 633 | print("Error: No mode specified.", file=sys.stderr) | CODE |
| MEDIUM | tools/pyboard.py | 244 | print("Error: unable to find PTY device in startup line:", pty_line) | CODE |
| MEDIUM | tools/gen-cpydiff.py | 144 | print("Error: Test has same output in CPython vs MicroPython: " + test_fullpath) | CODE |
| LOW | tools/ar_util.py | 90 | except Exception: | CODE |
| LOW | tools/ar_util.py | 100 | except Exception: | CODE |
| MEDIUM | tools/mpremote/mpremote/romfs.py | 141 | print("Error: OSError {}".format(er), file=sys.stderr) | CODE |
| LOW | tools/autobuild/build-downloads.py | 98 | except Exception as e: | CODE |
| LOW | tests/misc/print_exception.py | 37 | except Exception as e: | CODE |
| LOW⚡ | tests/misc/print_exception.py | 53 | except Exception as e: | CODE |
| LOW⚡ | tests/misc/print_exception.py | 63 | except Exception as e: | CODE |
| LOW⚡ | tests/misc/print_exception.py | 71 | except Exception as e: | CODE |
| LOW⚡ | tests/misc/print_exception.py | 75 | except Exception as e: | CODE |
| LOW | tests/misc/print_exception.py | 89 | except Exception as e: | CODE |
| LOW | tests/misc/sys_settrace_subdir/sys_settrace_generic.py | 25 | except Exception: | CODE |
| MEDIUM | tests/misc/sys_settrace_subdir/sys_settrace_generic.py | 21 | def test_exception(): | CODE |
| LOW | tests/basics/class_setname_hazard.py | 135 | except Exception as e: # CPython raises RuntimeError, MicroPython propagates the original exception | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 39 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 47 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 54 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 62 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 107 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 114 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 121 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 129 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 136 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 191 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 200 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 208 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 255 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 265 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_parser1.py | 275 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 78 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 89 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 96 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 161 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 178 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 219 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 229 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 244 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_parser1.py | 287 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/generator_throw_nested.py | 11 | except Exception: | CODE |
| LOW⚡ | tests/basics/generator_throw_nested.py | 15 | except Exception: | CODE |
| LOW⚡ | tests/basics/generator_throw_nested.py | 19 | except Exception: | CODE |
| MEDIUM | tests/basics/generator_throw_nested.py | 4 | def gen(): | CODE |
| LOW | tests/basics/string_tstring_basic1.py | 128 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_errors1.py | 35 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_errors1.py | 56 | except Exception as e: | CODE |
| LOW | tests/basics/string_tstring_errors1.py | 62 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 87 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 96 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 102 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 111 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 120 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 211 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 218 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 225 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 232 | except Exception as e: | CODE |
| LOW⚡ | tests/basics/exception_chain.py | 13 | except Exception: | CODE |
| 174 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/metrics.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/manifestfile.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/codeformat.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/hci_trace_to_pcap.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/pyboard.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/gen-cpydiff.py | 1 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/ar_util.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/ar_util.py | 59 | "# This file is a cache directory tag created by MicroPython.\n" | CODE |
| MEDIUM | tools/boardgen.py | 1 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/mpy-tool.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/mpy-tool.py | 326 | # Create a dict mapping opcode value to opcode name. | COMMENT |
| MEDIUM | tools/mpy-tool.py | 1565 | # Create the outer-level compiled module representing the whole .mpy file. | COMMENT |
| MEDIUM | tools/mpy-tool.py | 1709 | # Define the string of frozen module names. | COMMENT |
| MEDIUM | tools/mpy-tool.py | 1724 | # Define the array of pointers to frozen module content. | COMMENT |
| MEDIUM | tools/mpy_ld.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/mpy_ld.py | 569 | # Create a relocation for each GOT entry | COMMENT |
| MEDIUM | tools/makemanifest.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/pydfu.py | 2 | # This file is part of the OpenMV project. | COMMENT |
| MEDIUM | tools/pydfu.py | 7 | """This module implements enough functionality to program the STM32F4xx over | STRING |
| MEDIUM | tools/mpremote/mpremote/transport_serial.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/mpremote/mpremote/transport.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tools/mpremote/mpremote/commands.py | 282 | # Create the destination if necessary. | COMMENT |
| MEDIUM | tools/mpremote/tests/test_filesystem.sh | 92 | # Create a local directory structure and copy it to `:` on the device. | COMMENT |
| MEDIUM | tools/mpremote/tests/test_mip_local_install.sh | 17 | # Create the smallest permissible ramdisk. | COMMENT |
| MEDIUM | tools/mpremote/tests/test_mount.sh | 6 | # Create a local directory structure and mount the parent directory on the device. | COMMENT |
| MEDIUM | tools/autobuild/build-downloads.py | 81 | # Create the board markdown, which is the concatenation of the | COMMENT |
| MEDIUM | tests/test_utils.py | 1 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tests/run-multitests.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tests/run-natmodtests.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tests/run-perfbench.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | tests/misc/cexample_subclass.py | 28 | # Initialize base class. | COMMENT |
| MEDIUM | tests/basics/namedtuple1.py | 89 | # Creating an empty namedtuple should not segfault | COMMENT |
| MEDIUM | tests/multi_bluetooth/ble_gap_device_name.py | 65 | # Create an empty service and start advertising. | COMMENT |
| MEDIUM | tests/cmdline/repl_autocomplete_underscore.py | 27 | # Create an instance | COMMENT |
| MEDIUM | tests/extmod/asyncio_lock_cancel.py | 26 | # Create a lock and acquire it so the tasks below must wait | COMMENT |
| MEDIUM⚡ | tests/extmod/deflate_compress_memory_error.py | 16 | # Create a compressor object. | COMMENT |
| MEDIUM | tests/extmod/select_poll_eintr.py | 52 | # Create the poller object. | COMMENT |
| MEDIUM | tests/extmod/select_ipoll.py | 39 | # Create a second socket. | COMMENT |
| MEDIUM | tests/extmod/vfs_fat_mtime.py | 46 | # Create an empty file, should have a timestamp. | COMMENT |
| MEDIUM | tests/extmod/btree_gc.py | 11 | # Create a BytesIO but don't keep a reference to it. | COMMENT |
| MEDIUM | tests/extmod/asyncio_event.py | 43 | # Create a task waiting on the already-set event | COMMENT |
| MEDIUM | tests/extmod/vfs_lfs_mtime.py | 49 | # Create an empty file, should have a timestamp. | COMMENT |
| MEDIUM | tests/extmod/vfs_lfs_superblock.py | 35 | # Create the block device from the static data (it will be read-only). | COMMENT |
| MEDIUM | tests/extmod/vfs_lfs_superblock.py | 38 | # Create the VFS explicitly, no auto-detection is needed for this. | COMMENT |
| MEDIUM | tests/extmod/asyncio_set_exception_handler.py | 29 | # Create a task that raises and uses the custom exception handler | COMMENT |
| MEDIUM | tests/extmod/asyncio_set_exception_handler.py | 42 | # Create a task, let it run, then await it (no exception should be printed) | COMMENT |
| MEDIUM | tests/extmod/asyncio_await_return.py | 18 | # Create a task and await on it | COMMENT |
| MEDIUM | tests/multi_net/tcp_client_rst.py | 35 | # Create a poller for the connected socket. | COMMENT |
| MEDIUM | tests/multi_net/tls_dtls_server_client.py | 30 | # Create a UDP socket and bind it to accept incoming connections. | COMMENT |
| MEDIUM | tests/multi_net/tls_dtls_server_client.py | 73 | # Create a UDP socket and connect to the server. | COMMENT |
| MEDIUM | tests/multi_net/tls_dtls_server_client.py | 79 | # Create a DTLS context and load the certificate. | COMMENT |
| MEDIUM | tests/ports/unix/mod_os.py | 1 | # This module is not entirely compatible with CPython | COMMENT |
| MEDIUM | extmod/asyncio/task.py | 4 | # This file contains the core TaskQueue based on a pairing heap, and the core Task class. | COMMENT |
| MEDIUM | extmod/asyncio/core.py | 246 | # Create a new task from a coroutine and run it until it finishes | COMMENT |
| MEDIUM | extmod/asyncio/stream.py | 96 | # Create a TCP stream connection to a remote host | COMMENT |
| MEDIUM | docs/conf.py | 7 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | mpy-cross/mpy_cross/__init__.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | mpy-cross/mpy_cross/__main__.py | 3 | # This file is part of the MicroPython project, http://micropython.org/ | COMMENT |
| MEDIUM | examples/network/https_client_nonblocking.py | 50 | # Create a TCP socket and connect to the server in non-blocking mode. | COMMENT |
| MEDIUM | examples/network/https_client_nonblocking.py | 59 | # Create an object to poll the SSL stream for readability/writability. | COMMENT |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/metrics.py | 108 | CODE | |
| LOW | tools/metrics.py | 123 | CODE | |
| LOW | tools/manifestfile.py | 577 | CODE | |
| LOW | tools/manifestfile.py | 258 | CODE | |
| LOW | tools/manifestfile.py | 290 | CODE | |
| LOW | tools/manifestfile.py | 336 | CODE | |
| LOW | tools/codeformat.py | 90 | CODE | |
| LOW | tools/codeformat.py | 135 | CODE | |
| LOW | tools/pyboard.py | 726 | CODE | |
| LOW | tools/pyboard.py | 825 | CODE | |
| LOW | tools/pyboard.py | 270 | CODE | |
| LOW | tools/pyboard.py | 462 | CODE | |
| LOW | tools/pyboard.py | 497 | CODE | |
| LOW | tools/pyboard.py | 656 | CODE | |
| LOW | tools/uf2conv.py | 64 | CODE | |
| LOW | tools/uf2conv.py | 214 | CODE | |
| LOW | tools/uf2conv.py | 258 | CODE | |
| LOW | tools/uf2conv.py | 330 | CODE | |
| LOW | tools/gen-cpydiff.py | 211 | CODE | |
| LOW | tools/ar_util.py | 132 | CODE | |
| LOW | tools/boardgen.py | 205 | CODE | |
| LOW | tools/boardgen.py | 242 | CODE | |
| LOW | tools/mpy-tool.py | 372 | CODE | |
| LOW | tools/mpy-tool.py | 404 | CODE | |
| LOW | tools/mpy-tool.py | 1389 | CODE | |
| LOW | tools/mpy-tool.py | 1429 | CODE | |
| LOW | tools/mpy-tool.py | 1509 | CODE | |
| LOW | tools/mpy-tool.py | 1858 | CODE | |
| LOW | tools/mpy-tool.py | 2086 | CODE | |
| LOW | tools/mpy-tool.py | 605 | CODE | |
| LOW | tools/mpy-tool.py | 720 | CODE | |
| LOW | tools/mpy_ld.py | 490 | CODE | |
| LOW | tools/mpy_ld.py | 538 | CODE | |
| LOW | tools/mpy_ld.py | 610 | CODE | |
| LOW | tools/mpy_ld.py | 905 | CODE | |
| LOW | tools/mpy_ld.py | 1146 | CODE | |
| LOW | tools/mpy_ld.py | 1234 | CODE | |
| LOW | tools/mpy_ld.py | 1442 | CODE | |
| LOW | tools/mpy_ld.py | 1575 | CODE | |
| LOW | tools/makemanifest.py | 73 | CODE | |
| LOW | tools/makemanifest.py | 125 | CODE | |
| LOW | tools/pydfu.py | 500 | CODE | |
| LOW | tools/mpremote/mpremote/transport_serial.py | 52 | CODE | |
| LOW | tools/mpremote/mpremote/transport_serial.py | 234 | CODE | |
| LOW | tools/mpremote/mpremote/transport_serial.py | 269 | CODE | |
| LOW | tools/mpremote/mpremote/transport_serial.py | 344 | CODE | |
| LOW | tools/mpremote/mpremote/transport_serial.py | 1040 | CODE | |
| LOW | tools/mpremote/mpremote/romfs.py | 76 | CODE | |
| LOW | tools/mpremote/mpremote/mip.py | 95 | CODE | |
| LOW | tools/mpremote/mpremote/mip.py | 134 | CODE | |
| LOW | tools/mpremote/mpremote/mip.py | 165 | CODE | |
| LOW | tools/mpremote/mpremote/repl.py | 6 | CODE | |
| LOW | tools/mpremote/mpremote/main.py | 487 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 20 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 134 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 304 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 345 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 380 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 458 | CODE | |
| LOW | tools/mpremote/mpremote/commands.py | 564 | CODE | |
| 125 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/manifestfile.py | 31 | CODE | |
| LOW | tools/boardgen.py | 72 | CODE | |
| LOW | tools/mpremote/mpremote/romfs.py | 3 | CODE | |
| LOW | tools/mpremote/mpremote/repl.py | 1 | CODE | |
| LOW | tests/run-internalbench.py | 11 | CODE | |
| LOW | tests/run-tests.py | 17 | CODE | |
| LOW | tests/run-tests.py | 17 | CODE | |
| LOW | tests/run-perfbench.py | 12 | CODE | |
| LOW | tests/basics/op_error.py | 59 | CODE | |
| LOW | tests/basics/int_bytes.py | 1 | CODE | |
| LOW | tests/basics/int_bytes_intbig.py | 1 | CODE | |
| LOW | tests/basics/int_bytes_int64.py | 1 | CODE | |
| LOW | tests/basics/import_star_nonmodule.py | 24 | CODE | |
| LOW | tests/basics/import_star_nonmodule.py | 29 | CODE | |
| LOW | tests/basics/import_star_nonmodule.py | 49 | CODE | |
| LOW | tests/basics/import_star_nonmodule.py | 54 | CODE | |
| LOW | tests/basics/import_star_nonmodule.py | 62 | CODE | |
| LOW | tests/micropython/const_math.py | 8 | CODE | |
| LOW | tests/micropython/const_error.py | 3 | CODE | |
| LOW | tests/extmod_hardware/machine_encoder.py | 13 | CODE | |
| LOW | tests/extmod_hardware/machine_sdcard_dma_align.py | 11 | CODE | |
| LOW | tests/cmdline/cmd_showbc.py | 160 | CODE | |
| LOW | tests/extmod/vfs_fat_ramdisk.py | 2 | CODE | |
| LOW | tests/extmod/machine_uart_irq_txidle.py | 12 | CODE | |
| LOW | tests/extmod/vfs_fat_more.py | 115 | CODE | |
| LOW | tests/extmod/vfs_rom.py | 4 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 4 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 4 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 34 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 34 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 53 | CODE | |
| LOW | tests/extmod/vfs_fat_finaliser.py | 53 | CODE | |
| LOW | tests/extmod/vfs_fat_oldproto.py | 2 | CODE | |
| LOW | tests/extmod/vfs_fat_oldproto.py | 2 | CODE | |
| LOW | tests/extmod/vfs_lfs.py | 4 | CODE | |
| LOW | tests/extmod/ssl_poll.py | 2 | CODE | |
| LOW | tests/extmod/vfs_userfs.py | 87 | CODE | |
| LOW | tests/extmod/vfs_userfs.py | 103 | CODE | |
| LOW | tests/extmod/vfs_userfs.py | 107 | CODE | |
| LOW | tests/extmod/vfs_userfs.py | 91 | CODE | |
| LOW | tests/extmod/vfs_userfs.py | 97 | CODE | |
| LOW | tests/extmod/framebuf_palette.py | 3 | CODE | |
| LOW | tests/extmod/vfs_fat_ramdisklarge.py | 4 | CODE | |
| LOW | tests/extmod/vfs_fat_mtime.py | 4 | CODE | |
| LOW | tests/extmod/vfs_lfs_mount.py | 61 | CODE | |
| LOW | tests/extmod/vfs_lfs_mount.py | 67 | CODE | |
| LOW | tests/extmod/vfs_lfs_mount.py | 73 | CODE | |
| LOW | tests/extmod/machine_spi_rate.py | 4 | CODE | |
| LOW | tests/extmod/vfs_fat_ilistdir_del.py | 4 | CODE | |
| LOW | tests/extmod/vfs_posix_readonly.py | 4 | CODE | |
| LOW | tests/multi_extmod/machine_can_04_tx_order.py | 2 | CODE | |
| LOW | …ts/multi_net/asyncio_tls_server_client_verify_error.py | 4 | CODE | |
| LOW | tests/multi_net/ssl_cert_ec.py | 5 | CODE | |
| LOW | tests/multi_net/ssl_cert_ec.py | 5 | CODE | |
| LOW | tests/multi_net/sslcontext_server_client_files.py | 4 | CODE | |
| LOW | …i_net/asyncio_tls_server_client_cert_required_error.py | 4 | CODE | |
| LOW | tests/multi_net/sslcontext_getpeercert.py | 5 | CODE | |
| LOW | tests/multi_net/asyncio_tls_server_client_readline.py | 4 | CODE | |
| LOW | tests/multi_net/sslcontext_check_hostname_error.py | 4 | CODE | |
| LOW | tests/multi_net/ssl_cert_rsa.py | 5 | CODE | |
| 114 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/extmod/json_loads.py | 22 | my_print(json.loads("[null]")) | CODE |
| HIGH⚡ | tests/extmod/json_loads.py | 23 | my_print(json.loads("[null,false,true]")) | CODE |
| HIGH⚡ | tests/extmod/json_loads.py | 24 | my_print(json.loads(" [ null , false , true ] ")) | CODE |
| HIGH⚡ | tests/extmod/json_loads.py | 27 | my_print(json.loads('{"a":null, "b":false, "c":true}')) | CODE |
| HIGH | tests/extmod/json_loads.py | 71 | my_print(json.loads("[null] a")) | CODE |
| HIGH | tests/extmod/json_loads_bytes.py | 10 | print(json.loads(bytearray(b"[null]"))) | CODE |
| HIGH | tests/jni/list.py | 14 | print(l.toString()) | CODE |
| HIGH | tests/import/pkgstar_default/__init__.py | 1 | # When __all__ is undefined, star import should only | COMMENT |
| HIGH | tests/perf_bench/misc_raytrace.py | 28 | l = self.length() | CODE |
| HIGH | tests/perf_bench/misc_raytrace.py | 173 | light_dist = light_vec.length() | CODE |
| HIGH | extmod/asyncio/task.py | 150 | self.state.push(core.cur_task) | CODE |
| HIGH | extmod/asyncio/task.py | 171 | core._task_queue.push(self) | CODE |
| HIGH | extmod/asyncio/task.py | 175 | core._task_queue.push(self) | CODE |
| HIGH | extmod/asyncio/event.py | 21 | core._task_queue.push(self.waiting.pop()) | CODE |
| HIGH | extmod/asyncio/event.py | 31 | self.waiting.push(core.cur_task) | CODE |
| HIGH | extmod/asyncio/core.py | 45 | _task_queue.push(cur_task, self.state) | CODE |
| HIGH | extmod/asyncio/core.py | 119 | _task_queue.push(sm[0]) | CODE |
| HIGH | extmod/asyncio/core.py | 123 | _task_queue.push(sm[1]) | CODE |
| HIGH | extmod/asyncio/core.py | 147 | _task_queue.push(t) | CODE |
| HIGH | extmod/asyncio/core.py | 219 | _task_queue.push(t.state.pop()) | CODE |
| HIGH | extmod/asyncio/core.py | 227 | _task_queue.push(t) | CODE |
| HIGH | extmod/asyncio/core.py | 281 | _task_queue.push(_stop_task) | CODE |
| HIGH | extmod/asyncio/funcs.py | 84 | core._task_queue.push(gather_task) | CODE |
| HIGH | extmod/asyncio/lock.py | 27 | core._task_queue.push(self.state) | CODE |
| HIGH | extmod/asyncio/lock.py | 36 | self.waiting.push(core.cur_task) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 42 | _task_queue.push(cur_task, self.state) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 89 | _task_queue.push(self.waiting) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 98 | _task_queue.push(self.waiting) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 184 | _task_queue.push(t.state.pop()) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 192 | _task_queue.push(t) | CODE |
| HIGH | ports/webassembly/asyncio/core.py | 213 | _task_queue.push(t) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/micropython/viper_ptr32_store_boundary.py | 0 | @micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest) | STRING |
| HIGH | tests/micropython/viper_ptr8_store_boundary.py | 0 | @micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest) | STRING |
| HIGH | tests/micropython/viper_ptr16_store_boundary.py | 0 | @micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest) | STRING |
| HIGH | ports/esp32/boards/UM_TINYPICO/modules/tinypico.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_PROS3/modules/pros3.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_TINYS3/modules/tinys3.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_NANOS3/modules/nanos3.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_TINYS2/modules/tinys2.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_FEATHERS3/modules/feathers3.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_OMGS3/modules/omgs3.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | …s/esp32/boards/UM_FEATHERS3NEO/modules/feathers3neo.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | …s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py | 0 | color wheel to allow for cycling through the rainbow of rgb colors. | STRING |
| HIGH | ports/esp32/boards/UM_PROS3/modules/pros3.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | ports/esp32/boards/UM_TINYS3/modules/tinys3.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | ports/esp32/boards/UM_TINYS2/modules/tinys2.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | ports/esp32/boards/UM_FEATHERS3/modules/feathers3.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | …s/esp32/boards/UM_FEATHERS3NEO/modules/feathers3neo.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | …s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py | 0 | returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an app | STRING |
| HIGH | ports/esp32/boards/UM_TINYS3/modules/tinys3.py | 0 | enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep. | STRING |
| HIGH | ports/esp32/boards/UM_NANOS3/modules/nanos3.py | 0 | enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep. | STRING |
| HIGH | ports/esp32/boards/UM_TINYS2/modules/tinys2.py | 0 | enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep. | STRING |
| HIGH | ports/esp32/boards/UM_OMGS3/modules/omgs3.py | 0 | enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep. | STRING |
| HIGH | …s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py | 0 | enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/codeformat.py | 91 | # Read file. | COMMENT |
| LOW | tools/mpy-tool.py | 416 | # Check if the bytecode_offset is small enough to use a 1-byte encoding. | COMMENT |
| LOW | tools/makemanifest.py | 217 | # Check if output file needs generating | COMMENT |
| LOW | tools/mpremote/mpremote/mip.py | 48 | # Check if the specified path exists and matches the hash. | COMMENT |
| LOW | tools/mpremote/mpremote/main.py | 447 | # Check if config file exists. | COMMENT |
| LOW | tools/mpremote/mpremote/commands.py | 662 | # Check if ROMFS image is valid | COMMENT |
| LOW | tools/mpremote/mpremote/commands.py | 667 | # Check if ROMFS filesystem image will fit in the target partition. | COMMENT |
| LOW | py/makeversionhdr.py | 132 | # Check if the file contents changed from last time | STRING |
| LOW | tests/serial_test.py | 155 | # Print results. | STRING |
| LOW | tests/serial_test.py | 222 | # Print results. | STRING |
| LOW | tests/serial_test.py | 261 | # Print results. | STRING |
| LOW | tests/run-multitests.py | 513 | # Check if truth exists in a file, and read it in | STRING |
| LOW | tests/run-multitests.py | 531 | # Print result of test | STRING |
| LOW | tests/run-natmodtests.py | 224 | # Print result | STRING |
| LOW⚡ | tests/run-tests.py | 777 | # Check if micropython.native is supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 782 | # Check if arbitrary-precision integers are supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 787 | # Check if 'long long' precision integers are supported, even if arbitrary precision is not | COMMENT |
| LOW⚡ | tests/run-tests.py | 792 | # Check if bytearray is supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 797 | # Check if set type (and set literals) is supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 802 | # Check if slice is supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 807 | # Check if async/await keywords are supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 812 | # Check if const keyword (MicroPython extension) is supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 817 | # Check if __rOP__ special methods are supported, and skip such tests if it's not | COMMENT |
| LOW⚡ | tests/run-tests.py | 822 | # Check if fstring feature is enabled, and skip such tests if it doesn't | COMMENT |
| LOW⚡ | tests/run-tests.py | 827 | # Check if tstring feature is enabled, and skip such tests if it doesn't | COMMENT |
| LOW | tests/run-tests.py | 843 | # Check if emacs repl is supported, and skip such tests if it's not | COMMENT |
| LOW | tests/run-tests.py | 848 | # Check if words movement in repl is supported, and skip such tests if it's not | COMMENT |
| LOW | tests/run-tests.py | 1021 | # Check if the target requested to skip this test. | COMMENT |
| LOW | tests/run-perfbench.py | 105 | # Check if test should be skipped | COMMENT |
| LOW⚡ | tests/basics/string_tstring_errors1.py | 242 | # Check if we get the specific error message or generic one | COMMENT |
| LOW | tests/unicode/bytes_decode_ignore.py | 3 | # Check if decode method is available (requires MICROPY_CPYTHON_COMPAT) | COMMENT |
| LOW | tests/unicode/bytes_decode_ignore.py | 10 | # Check if error handlers are available (requires MICROPY_PY_BUILTINS_BYTES_DECODE_ERRORS) | COMMENT |
| LOW | tests/unicode/bytes_decode_encoding.py | 3 | # Check if decode method is available (requires MICROPY_CPYTHON_COMPAT) | COMMENT |
| LOW | tests/unicode/bytes_decode_replace.py | 3 | # Check if decode method is available (requires MICROPY_CPYTHON_COMPAT) | COMMENT |
| LOW | tests/unicode/bytes_decode_replace.py | 10 | # Check if error handlers are available (requires MICROPY_PY_BUILTINS_BYTES_DECODE_ERRORS) | COMMENT |
| LOW | tests/extmod/machine_rtc.py | 14 | # Set datetime to a known value. | COMMENT |
| LOW | tests/extmod/deflate_decompress.py | 2 | # Check if deflate is available. | COMMENT |
| LOW⚡ | tests/extmod/deflate_compress_memory_error.py | 4 | # Check if deflate is available. | COMMENT |
| LOW⚡ | tests/extmod/deflate_compress_memory_error.py | 11 | # Check if compression is enabled. | COMMENT |
| LOW | tests/extmod/asyncio_gather_finished_early.py | 59 | # Print results. | COMMENT |
| LOW | tests/extmod/deflate_stream_error.py | 4 | # Check if deflate & IOBase are available. | COMMENT |
| LOW | tests/extmod/deflate_stream_error.py | 12 | # Check if compression is enabled. | COMMENT |
| LOW | tests/extmod/deflate_compress.py | 2 | # Check if deflate is available. | COMMENT |
| LOW | tests/extmod/deflate_compress.py | 9 | # Check if compression is enabled. | COMMENT |
| LOW | tests/perf_bench/misc_raytrace.py | 155 | # Check if any objects hit | COMMENT |
| LOW | tests/stress/bytecode_limit.py | 16 | # Print results at the end in case an intermediate value of n fails with MemoryError. | COMMENT |
| LOW | extmod/asyncio/task.py | 158 | # Check if task is already finished. | COMMENT |
| LOW | examples/esp32_wifi_csi/csi_basic.py | 82 | # Check if frames are available | COMMENT |
| LOW | ports/esp32/boards/UM_TINYPICO/modules/dotstar.py | 86 | # Set auto_write to False temporarily so brightness setter does _not_ | COMMENT |
| LOW | ports/mimxrt/boards/make-flexram-config.py | 95 | # Check if DTCM and ITCM size is either multiple of 32k or 4k,8k or 16k | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 27 | print(js_module2.yes) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 28 | print(js_module2.add1(1)) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 29 | print(js_module2.getThis()) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 30 | print(js_module2.getThis().yes) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 39 | print(yes) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 40 | print(add1(2)) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 41 | print(getThis()) | CODE |
| HIGH⚡ | tests/ports/webassembly/register_js_module.js | 42 | print(getThis().yes) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ports/renesas-ra/README.md | 66 | ## Board definition auto-generated code | COMMENT |
| HIGH | ports/cc3200/hal/timer.c | 261 | // Set the output levels as requested. | COMMENT |
| HIGH | ports/cc3200/hal/uart.c | 743 | // Set the flow control mode as requested. | COMMENT |
| HIGH | ports/cc3200/hal/uart.c | 1101 | // Set the break condition as requested. | COMMENT |
| HIGH | ports/esp8266/machine_pin.c | 285 | // configure the GPIO as requested | COMMENT |
| HIGH | ports/stm32/pin.c | 387 | // configure the GPIO as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/pyboard.py | 406 | def _enter_raw_repl_unprotected(self, soft_reset, timeout_overall): | CODE |
| LOW | tools/verifygitlog.py | 120 | def verify_subject_line_prefix(prefix, err): | CODE |
| LOW | tools/mpy-tool.py | 1085 | def get_opcode_annotations_labels( | CODE |
| LOW | tools/mpy-tool.py | 1781 | def adjust_bytecode_qstr_obj_indices(bytecode_in, qstr_table_base, obj_table_base): | CODE |
| LOW | tools/mpy_ld.py | 1201 | def generate_entry_point_jump(env): | CODE |
| LOW | tools/makemanifest.py | 73 | def generate_frozen_str_content(modules): | CODE |
| LOW | tools/mpremote/mpremote/transport.py | 58 | def _convert_filesystem_error(e, info): | CODE |
| LOW | tools/mpremote/mpremote/main.py | 465 | def prepare_command_expansions(config): | CODE |
| LOW | tools/mpremote/mpremote/commands.py | 198 | def do_filesystem_recursive_cp(state, src, dest, multiple, check_hash): | CODE |
| LOW | tools/mpremote/mpremote/commands.py | 304 | def do_filesystem_recursive_rm(state, path, args): | CODE |
| LOW | py/makeversionhdr.py | 22 | def get_version_info_from_git(repo_path): | CODE |
| LOW | py/makeversionhdr.py | 71 | def get_version_info_from_mpconfig(repo_path): | CODE |
| LOW | py/make_root_pointers.py | 17 | def find_root_pointer_registrations(filename): | CODE |
| LOW | py/make_root_pointers.py | 27 | def generate_root_pointer_header(root_pointers): | CODE |
| LOW | py/makemoduledefs.py | 34 | def find_module_registrations(filename): | CODE |
| LOW | py/makemoduledefs.py | 47 | def generate_module_table_header(modules): | CODE |
| LOW | py/makemoduledefs.py | 109 | def generate_module_delegations(delegations): | CODE |
| LOW | tests/test_utils.py | 130 | def run_script_on_remote_target(self, args, test_file, is_special, requires_target_wiring): | STRING |
| LOW | tests/test_utils.py | 193 | def convert_device_shortcut_to_real_device(device): | STRING |
| LOW | tests/test_utils.py | 226 | def prepare_script_for_target(args, script_text, script_name, force_plain=False): | STRING |
| LOW | tests/test_utils.py | 255 | def run_script_on_remote_target(pyb, args, test_file, is_special, requires_target_wiring): | STRING |
| LOW | tests/run-tests.py | 417 | def detect_target_wiring_script(pyb, args): | CODE |
| LOW | tests/micropython/heapalloc_fail_tstring.py | 235 | def test_many_interpolations_heap(): | CODE |
| LOW | tests/micropython/heapalloc_fail_tstring.py | 266 | def test_template_concat_heap(): | CODE |
| LOW | tests/extmod_hardware/machine_sdcard_dma_align.py | 196 | def test_interrupted_read_write(self): | CODE |
| LOW | tests/extmod/vfs_posix.py | 80 | def write_files_without_closing(): | CODE |
| LOW | tests/extmod/asyncio_wait_for.py | 47 | async def task_wait_for_cancel_ignore(t_wait): | CODE |
| LOW | tests/extmod/marshal_fun_nested.py | 36 | def f_with_child_closure_defargs(): | CODE |
| LOW | tests/extmod/marshal_fun_nested.py | 46 | def f_with_list_comprehension(a): | CODE |
| LOW | tests/extmod/select_ipoll.py | 38 | def test_ipoll_multiple_sockets(self): | CODE |
| LOW | tests/extmod/asyncio_wait_for_fwd.py | 26 | async def test_cancellation_forwarded(catch, catch_inside): | CODE |
| LOW | tests/net_inet/resolve_on_connect.py | 20 | def test_bind_resolves_localhost(self): | CODE |
| LOW | tests/net_inet/resolve_on_connect.py | 30 | def test_connect_non_existent(self): | CODE |
| LOW | tests/net_hosted/connect_nonblock_xfer.py | 119 | def test_plain_sockets_to_nowhere(self): | CODE |
| LOW | tests/net_hosted/connect_nonblock_xfer.py | 123 | def test_ssl_sockets_to_nowhere(self): | CODE |
| LOW | tests/ports/rp2/rp2_dma.py | 86 | def test_time_taken_for_large_memory_copy(self): | CODE |
| LOW | tests/ports/stm32_hardware/spi_dma_align.py | 19 | def test_variable_offset_fixed_length(self): | CODE |
| LOW | tests/ports/stm32_hardware/spi_dma_align.py | 30 | def test_variable_offset_and_lengths(self): | CODE |
| LOW | extmod/asyncio/core.py | 294 | def default_exception_handler(loop, context): | CODE |
| LOW | ports/stm32/boards/pllvalues.py | 229 | def search_header_for_hsx_values(filename): | CODE |
| LOW | ports/stm32/boards/LEGO_HUB_NO6/appupdate.py | 19 | def _copy_file_to_raw_filesystem(filename, flash, block): | CODE |
| LOW | ports/nrf/examples/ubluepy_eddystone.py | 31 | def generate_eddystone_adv_packet(url): | CODE |
| LOW | ports/webassembly/asyncio/core.py | 242 | def default_exception_handler(loop, context): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/uncrustify.cfg | 3004 | # Whether to apply special formatting for Qt SIGNAL/SLOT macros. Essentially, | COMMENT |
| MEDIUM | py/emitnative.c | 27 | // Essentially normal Python has 1 type: Python objects | COMMENT |
| MEDIUM | py/objmodule.c | 205 | // built-in. Essentially, this makes it as if all the extensible | COMMENT |
| MEDIUM | tests/basics/string_format2.py | 1 | # comprehensive functionality test for {} format string | COMMENT |
| LOW | tests/basics/struct_micropython.py | 23 | # putting this in a dedicated test that can be skipped we simply pass | COMMENT |
| MEDIUM | tests/float/string_format2.py | 1 | # Change the following to True to get a much more comprehensive set of tests | COMMENT |
| MEDIUM | tests/thread/stress_aes.py | 10 | # and then the test harness at the bottom. It can be tuned to be more/less | COMMENT |
| MEDIUM | tests/perf_bench/misc_aes.py | 7 | # and then the test harness at the bottom. | COMMENT |
| MEDIUM | examples/natmod/features4/features4.c | 31 | // Essentially Factorial.__new__ (but also kind of __init__). | COMMENT |
| MEDIUM | ports/esp32/modespnow.c | 841 | // from the non-802.11b 6Mbit rate, for more robust error correction | COMMENT |
| MEDIUM | ports/stm32/sdcard.c | 189 | // makes it more robust to have the pins always pulled high | COMMENT |
| MEDIUM | ports/stm32/boards/LEGO_HUB_NO6/board_init.c | 94 | // This makes the update robust to power failures: if the update does not complete then | COMMENT |
| MEDIUM | ports/stm32/boards/LEGO_HUB_NO7/board_init.c | 64 | // This makes the update robust to power failures: if the update does not complete then | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/basics/fun_code_colines.py | 21 | obj.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 21: bc+31 line+1; bc+27 line+0 | CODE |
| CRITICAL | tests/basics/fun_code_colines.py | 30 | obj2.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 30: bc+31 line+3; bc+27 line+0 | CODE |
| CRITICAL | tests/basics/fun_code_colines.py | 60 | return obj3.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 60: bc+31 line+27; bc+27 line+0 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/basics/gen_yield_from_stopped.py | 6 | CODE | |
| MEDIUM | tests/basics/stopiteration.py | 34 | CODE | |
| MEDIUM | tests/basics/generator_exc.py | 18 | CODE | |
| MEDIUM | tests/basics/generator_exc.py | 19 | CODE | |
| MEDIUM | tests/cmdline/cmd_showbc_opt.py | 7 | CODE | |
| MEDIUM | tests/cmdline/cmd_showbc_opt.py | 19 | CODE | |
| MEDIUM | tests/extmod/asyncio_exception.py | 14 | CODE | |
| MEDIUM | tests/extmod/asyncio_exception.py | 27 | CODE | |
| MEDIUM | tests/extmod/asyncio_exception.py | 54 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ports/samd/machine_uart.c | 483 | // Step 1: Configure the Pin mux. | COMMENT |
| LOW | ports/samd/mcu/samd21/clock_config.c | 224 | // Step 1: Set up the reference clock | COMMENT |
| LOW | ports/samd/mcu/samd21/clock_config.c | 251 | // Step 2: Set the coarse and fine values. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd21/clock_config.c | 262 | // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd21/clock_config.c | 267 | // Step 4: Start the DFLL and wait for the PLL lock. We just wait for the fine lock, since | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 262 | // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48M | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 266 | // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 271 | // Step 3: Set the mode to closed loop | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 278 | // Step 4: Start the DFLL. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ports/samd/machine_uart.c | 483 | // Step 1: Configure the Pin mux. | COMMENT |
| LOW | ports/samd/mcu/samd21/clock_config.c | 224 | // Step 1: Set up the reference clock | COMMENT |
| LOW | ports/samd/mcu/samd21/clock_config.c | 251 | // Step 2: Set the coarse and fine values. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd21/clock_config.c | 262 | // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd21/clock_config.c | 267 | // Step 4: Start the DFLL and wait for the PLL lock. We just wait for the fine lock, since | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 262 | // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48M | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 266 | // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding. | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 271 | // Step 3: Set the mode to closed loop | COMMENT |
| LOW⚡ | ports/samd/mcu/samd51/clock_config.c | 278 | // Step 4: Start the DFLL. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/mpy-tool.py | 191 | MP_BC_BASE_RESERVED = (0x00) # ---------------- | CODE |
| MEDIUM | …stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c | 30 | // #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c | 43 | // #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c | 557 | // ##-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c | 559 | // ##-------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/emitbc.c | 47 | byte dummy_data[DUMMY_DATA_SIZE]; | CODE |
| LOW | py/emitbc.c | 99 | return emit->dummy_data; | CODE |
| LOW | py/emitbc.c | 149 | return emit->dummy_data; | CODE |
| LOW | py/emitbc.c | 153 | return emit->dummy_data; | CODE |
| LOW⚡ | extmod/btstack/modbluetooth_btstack.c | 631 | sm_key_t dummy_key; | CODE |
| LOW⚡ | extmod/btstack/modbluetooth_btstack.c | 632 | memset(dummy_key, 0, sizeof(dummy_key)); | CODE |
| LOW⚡ | extmod/btstack/modbluetooth_btstack.c | 633 | sm_set_er(dummy_key); | CODE |
| LOW⚡ | extmod/btstack/modbluetooth_btstack.c | 634 | sm_set_ir(dummy_key); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ports/renesas-ra/machine_rtc.c | 54 | /// Example usage: | COMMENT |
| LOW | ports/stm32/rtc.c | 47 | /// Example usage: | COMMENT |
| LOW | ports/stm32/dac.c | 46 | /// Example usage: | COMMENT |
| LOW | ports/stm32/accel.c | 46 | /// Example usage: | COMMENT |
| LOW | ports/nrf/examples/powerup.py | 34 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/network/http_server_simplistic_commented.py | 61 | # ten lines of code, and you can use this technique for quick hacks | STRING |
| MEDIUM | ports/stm32/boards/NUCLEO_WB55/mboot_keys.h | 5 | // The above keys are for demonstration purposes only, do not use them in production! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/manifestfile.py | 35 | __all__ = ["ManifestFileError", "ManifestFile"] | CODE |
| LOW | tests/import/pkgstar_all_array/__init__.py | 1 | __all__ = ["publicFun", "PublicClass", "dynamicFun"] | CODE |
| LOW | mpy-cross/mpy_cross/__init__.py | 51 | __all__ = ["version", "compile", "run", "CrossCompileError"] + list(NATIVE_ARCHS.keys()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/mpremote/mpremote/romfs.py | 47 | CODE | |
| LOW | tests/extmod/vfs_rom.py | 97 | CODE | |
| LOW | ports/rp2/modules/rp2.py | 24 | CODE |