github terryyin/lizard 1.24.3

2 hours ago

Bug Fixes

  • TypeScript: preserve function boundaries and NLOC after return type annotations, including adjacent annotated functions (issue #521)
  • JavaScript, TypeScript, JSX, and TSX: use balanced scanning for nested template literals so deeper nesting, quoted delimiters, escapes, and comments do not swallow following functions (issue #521)
  • TypeScript and TSX: keep ternary colons in conditional expressions from being mistaken for type annotations, preventing crashes in conditional style arrays (issue #523)
  • Go: give anonymous function literals stable anonymous__<n> names while preserving names for literals assigned to variables; do not report variadic function types or receive-only channels of functions as function literals (PR #522)
  • Running python lizard.py with an extension that extends the core analyzer, such as -END, no longer fails with an AttributeError; it now matches the installed lizard command

Improvements

  • The core analyzer now lives in the internal lizard_core package, one module per responsibility; lizard still exposes every name it did before, and lizard_core module paths are not a supported import surface

Full changelog: 1.24.2...1.24.3

Don't miss a new lizard release

NewReleases is sending notifications on new releases.