Skip to main content

Module editor

Module editor 

Source
Expand description

Editor-facing analysis contracts shared by LSP and future editor adapters.

Modules§

editor_duplicates
editor_extract
editor_results
editor_security
editor_suppress

Structs§

EditorAnalysisOutput
Dead-code and duplication output shaped for editor integrations.
EditorAnalysisSession
Reusable editor analysis session owned by the API boundary.
EditorInlineComplexityFinding
Editor-facing inline complexity signal for code lens and similar surfaces.
EditorProjectAnalysisOutput
Dead-code and duplication project output owned by the editor API boundary.

Enums§

ChangedFilesError
Classification of a git diff failure, so callers can pick their own wording (soft warning vs hard error) without re-parsing stderr.
EditorInlineComplexityExceeded
Which health complexity threshold(s) a function exceeded.

Functions§

collect_inline_complexity
Collect inline complexity findings from retained editor analysis artifacts.
filter_inline_complexity_by_changed_files
Filter inline complexity findings to the changed-file set.
resolve_git_toplevel
Resolve the canonical git toplevel for cwd.
try_get_changed_files_with_toplevel
Like try_get_changed_files, but takes a pre-resolved canonical toplevel so callers (the LSP) can cache it across runs and avoid the extra git rev-parse --show-toplevel subprocess on every save.

Type Aliases§

EditorAnalysisResults
EditorDeadCodeAnalysisOutput
EditorDuplicationReport