lizard breaking changes
Updated December 4, 2026
On this page
Latest version 1.26.1, released November 16, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
lizard 1.26.0 breaking changes
- Signature changed
lizard_languages.code_reader.tokens_in_span
Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). pypi.org - Signature changed
lizard_languages.java_body_states.JavaClassBodyStates.__init__
Was def __init__(self, class_name, is_record, context); now def __init__(self, class_name, is_record, context, is_enum=False). pypi.org - Signature changed
lizard_languages.javascript_templates.template_tokens
Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). pypi.org - Signature changed
lizard_languages.javascript_templates.tokens_in_span
Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). pypi.org - Signature changed
lizard_languages.swift.tokens_in_span
Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). pypi.org - Signature changed
lizard_languages.token_pattern.tokens_in_span
Was def tokens_in_span(pattern, source, start, end, token_class=None); now def tokens_in_span(pattern, source, start, end, token_class=None, macros=True). pypi.org - Signature changed
lizard_languages.tsx.template_tokens
Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). pypi.org - Signature changed
lizard_languages.typescript.template_tokens
Was def template_tokens(source, addition='', token_class=None, split=True); now def template_tokens(source, addition='', token_class=None, split=True, macros=True). pypi.org
lizard 1.25.1 breaking changes
- Removed
lizard_ext.lizardduplicate.NestingStackWithUnifiedTokens.constant_count
NestingStackWithUnifiedTokens.constant_count was removed in lizard 1.25.1 pypi.org - Renamed
lizard_core.options.get_extensions
Use lizard_core.option_resolution.get_extensions instead. pypi.org - Renamed
lizard_core.options.infer_printer_from_file_ext
Use lizard_core.option_resolution.infer_printer_from_file_ext instead. pypi.org - Renamed
lizard_core.options.OutputScheme
Use lizard_core.option_resolution.OutputScheme instead. pypi.org - Renamed
lizard_core.options.parse_args
Use lizard_core.option_resolution.parse_args instead. pypi.org - Renamed
lizard_ext.lizardduplicate.Sequence
Use lizard_ext.duplicate_unified_tokens.Sequence instead. pypi.org - Behavior changed
Words and punctuation inside JSX element text no longer count as decisions, so CCN for such files changes. Element text is now reported as text tokens, which changes token counts. github.com - Behavior changed
A Swift string literal with interpolation is now reported as several tokens instead of one, so token counts for such strings change. github.com - Behavior changed
case declarations in a Swift enum body are no longer counted as decisions, so CCN for the global scope and for functions with local enums goes down. case inside a switch still counts. github.com - Behavior changed
The || of a parameterless Rust closure is no longer counted as a logical or, so CCN for such code goes down. || after an expression is still counted. github.com
And 10 more in this version. Sign up to see every change
lizard 1.25.0 breaking changes
- Removed
lizard_languages.javascript_bindings.JavaScriptBindings.__call__
JavaScriptBindings.__call__ was removed in lizard 1.25.0 pypi.org - Removed
lizard_languages.typescript_declarations.CodeStateMachine
lizard_languages.typescript_declarations.CodeStateMachine was removed in lizard 1.25.0 pypi.org - Behavior changed
The parameter count for TypeScript functions now excludes the `this` receiver, and text, CSV, HTML and Checkstyle output use the same count. Check any thresholds or reports that depend on the old parameter count. github.com - Behavior changed
-ENS
The -ENS option now counts nested control structures by indentation, including async statements and match, and no longer counts comprehensions or conditional expressions. Reported nesting values may change for existing code. github.com - Signature changed
lizard_languages.javascript_bindings.JavaScriptBindings.__init__
Was def __init__(self, closing); now def __init__(self, closing, function=None, parameters=None). pypi.org - Signature changed
lizard_languages.javascript_bindings.JavaScriptBindings.read_token
Was def read_token(self, token); now def read_token(self, token, report=True). pypi.org - Signature changed
lizard_languages.js_style_regex_expression.js_style_regex_expression
Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, *, language='js'). pypi.org - Signature changed
lizard_languages.ruby.js_style_regex_expression
Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, *, language='js'). pypi.org - Signature changed
lizard_languages.tsx.js_style_regex_expression
Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, *, language='js'). pypi.org - Signature changed
lizard_languages.typescript.js_style_regex_expression
Was def js_style_regex_expression(func); now def js_style_regex_expression(func=None, *, language='js'). pypi.org
lizard 1.24.3 breaking changes
- Removed
lizard_languages.tsx.CodeReader
lizard_languages.tsx.CodeReader was removed in lizard 1.24.3 pypi.org - Removed
lizard_languages.tsx.TEMPLATE_LITERAL
lizard_languages.tsx.TEMPLATE_LITERAL was removed in lizard 1.24.3 pypi.org - Removed
lizard_languages.typescript.TEMPLATE_LITERAL
lizard_languages.typescript.TEMPLATE_LITERAL was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.__init__
AllResult() was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.all_fun
AllResult.all_fun was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.as_fileinfo
AllResult.as_fileinfo was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.function_count
AllResult.function_count was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.nloc_in_functions
AllResult.nloc_in_functions was removed in lizard 1.24.3 pypi.org - Removed
lizard.AllResult.result
AllResult.result was removed in lizard 1.24.3 pypi.org - Removed
lizard.FileAnalyzer.__call__
FileAnalyzer.__call__ was removed in lizard 1.24.3 pypi.org
And 126 more in this version. Sign up to see every change
lizard 1.24.2 breaking changes
- Removed
lizard_ext.lizardcognitive.PythonReader
lizard_ext.lizardcognitive.PythonReader was removed in lizard 1.24.2 pypi.org - Removed
lizard_languages.fortran.CodeStateMachine
lizard_languages.fortran.CodeStateMachine was removed in lizard 1.24.2 pypi.org - Removed
lizard_languages.python.CodeStateMachine
lizard_languages.python.CodeStateMachine was removed in lizard 1.24.2 pypi.org - Removed
lizard_languages.typescript.CodeStateMachine
lizard_languages.typescript.CodeStateMachine was removed in lizard 1.24.2 pypi.org - Removed
lizard.get_map_method
lizard.get_map_method was removed in lizard 1.24.2 pypi.org - Behavior changed
Each nullish coalescing operator now adds 1 to CCN for JavaScript, TypeScript, JSX and TSX, so existing scores may decrease. github.com - Behavior changed
Each default parameter and destructuring initializer, including nested ones, now adds 1 to CCN, so existing scores and threshold warnings may increase. github.com - Behavior changed
HTML report generation now returns a non-zero exit status when functions exceed warning thresholds, which can fail CI pipelines that previously passed. github.com - Behavior changed
Optional chaining is no longer counted as a ternary operator in TypeScript and Swift, which changes their complexity scores. github.com - Behavior changed
Rust let-else statements now add to cyclomatic complexity, so existing Rust scores may increase. github.com
And 1 more in this version. Sign up to see every change
lizard 1.24.1 breaking changes
- Signature changed
lizard_languages.rust.RustStates.__init__
Was def __init__(self, context); now def __init__(self, context, in_match_arms=False). pypi.org
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
lizard 1.24.0 breaking changes
- Removed
lizard_languages.php.CodeStateMachine
lizard_languages.php.CodeStateMachine was removed in lizard 1.24.0 pypi.org - Signature changed
lizard_languages.java.JavaFunctionBodyStates.__init__
Was def __init__(self, context); now def __init__(self, context, exit_with_brace_depth=True). pypi.org
And 2 more in this version.
lizard 1.23.0 breaking changes
- Behavior changed
Python match/case statements now contribute to cyclomatic complexity scores, including in --modified mode, so reported complexity numbers may increase for code using them. github.com
lizard 1.22.0 breaking changes
- Removed
lizard_languages.tsx.CodeStateMachine
lizard_languages.tsx.CodeStateMachine was removed in lizard 1.22.0 pypi.org - Removed
lizard_languages.tsx.JSXTypeAnnotationHandler
lizard_languages.tsx.JSXTypeAnnotationHandler was removed in lizard 1.22.0 pypi.org
And 6 more in this version.
lizard 1.21.2 breaking changes
- Behavior changed
Nesting depth for C++ `else if` chains is now calculated as the same level as `if` instead of nested, so reported nesting metrics for such code will change. github.com
lizard 1.18.0 breaking changes
- Removed
lizard_languages.js_style_language_states
lizard_languages.js_style_language_states was removed in lizard 1.18.0 pypi.org - Removed
lizard_languages.jsx
lizard_languages.jsx was removed in lizard 1.18.0 pypi.org
And 18 more in this version.
lizard 1.17.29 breaking changes
- Removed
lizard_languages.php.JavaScriptStyleLanguageStates
lizard_languages.php.JavaScriptStyleLanguageStates was removed in lizard 1.17.29 pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.