Comparing similar tools
Kareki focuses on workspace-wide unused code detection and ongoing cleanup in CI.
Feature comparison
Analysis limits and required options are described below.
Kareki does not plan to implement automatic removal of unused public declarations. Kareki recommends passing its analysis results to an AI agent to review the findings and make the necessary changes. This workflow is expected to cover cleanup needs, so Kareki focuses on detection and reporting. See the recommended operating model .
Feature details
Unused public declarations and members
Find public classes, functions, fields, and methods that have no recognized use
within the analyzed workspace. Kareki reports eligible declarations that cannot
be reached from entry points with unused_element.
See the analysis example
.
Dart Code Linter’s public / private member checks require opt-in flags and include enum values. See its CLI .
Unused private declarations and members
unused_element also checks library-private declarations and members, including
public-named members of private types. References in unreachable code or cycles
alone do not retain them. Ordinary entry files retain public declarations;
private helpers need reachable references. Explicit entry_points.files,
generated files, and conservative conditional targets retain entire files.
A reachable type retains its sole private constructor because it can intentionally
prevent external construction or subclassing. Private unnamed constructors are
not reported separately from their type;
operators and local declarations remain outside the reporting scope.
test_only_used remains limited to public APIs.
Unused public enum values
Check individual enum values, even when the enum type itself is used. For example,
if only Status.active is used, Status.archived may be unused. Kareki checks
values with unused_element; a reachable Status.values retains every value.
See rule evidence
.
Public declaration cycles unreachable from entry points
Find public declarations that reference each other but cannot be reached from
entry points such as main. A reference within the cycle alone does not make
those declarations used in kareki.
See analysis differences
.
Unused Dart files
Find Dart files that no other scanned file imports, exports, or includes with
part, and that are not entry-point files. Kareki’s unused_file checks file
references separately from whether the declarations inside are reachable.
See rule evidence
.
Unused pub dependencies
Find dependencies declared in pubspec.yaml that have no recognized use.
Kareki’s unused_pub_dependency also recognizes supported annotation,
build-configuration, native-plugin, and asset usage, beyond Dart imports.
See dependency usage beyond imports
.
Optional public API parameters never supplied by callers
Find optional named or positional parameters for which no scanned caller supplies
a value. This can reveal an API option that is never exercised, even when the
function body reads the parameter’s default value. Kareki’s
unused_parameter_optional does not report parameters with unknown call paths.
See optional-argument usage
.
This checks whether callers supply values, unlike Dart Code Linter’s unused-in-body check and Dart’s check for private declarations .
Public declarations used only by tests
Find public declarations reachable from test entry points but not production
entry points. Kareki’s test_only_used distinguishes test-only use from code
with no recognized use at all.
See rule evidence
.
Unused localization keys
Kareki’s unused_l10n checks Flutter standard gen-l10n template ARB keys.
For example, a resolved l10n.title reference retains title; an unreferenced
key is reported once at its location in the template ARB. Generated localization
implementations and delegate registration alone do not retain keys.
References in wrappers, other workspace packages, tests, and unreachable bodies count as uses. Unknown access retains affected keys with a warning, rather than reporting them as unused. Kareki reports used, unused, and unknown key counts; baseline writes stop while unknown keys remain. See localization-key analysis .
Flutter Intl / intl_utils, easy_localization, and slang are not supported.
See supported configuration
.
Dart Code Linter’s l10n check targets members of Dart classes. The default
class-name pattern is I18n$; use --class-pattern AppLocalizations for
AppLocalizations. See its configuration
.
Report only new findings using a baseline
Save existing findings, then omit matching findings on later runs so CI can
report newly introduced issues while cleanup proceeds gradually. Kareki uses
--baseline and --write-baseline to load and save that record.
See the baseline guide
.
Stale exclusions and baseline entries
Find exclusions, suppression comments, and baseline entries that no longer
apply, for example because the target file or unused declaration was removed.
kareki doctor reports these issues without changing files; uncertain analysis
can prevent usage-dependent checks from completing.
See doctor’s checks
.
Analysis differences
Kareki follows references from entry points, so it can detect public declarations
that only reference each other. Generated code, configuration, and dynamic-call
handling can still retain them. Ciach’s --transitive detects declarations
referenced only by dead code, but not cycles. Dart Code Linter checks whether
references exist. See ciach’s documentation
and
Dart Code Linter’s implementation
.
Ciach also distinguishes same-name declarations and collects cross-package references; neither is unique to kareki. See ciach’s implementation and monorepo documentation .
Using the tools together
Kareki checks both public and private declarations using entry-point reachability.
Private findings can overlap with standard Dart analysis, but references from
unreachable code alone do not retain declarations in kareki. Keep
dart analyze / flutter analyze for type checking and linting.
See Dart’s unused-declaration diagnostic
.
dependency_validator also covers missing dependencies and incorrect
placement in dependencies / dev_dependencies, beyond unused dependencies.
See dependency_validator’s documentation
.
Speed and false-positive rates have not been benchmarked across these tools. A ✅ does not guarantee safe deletion. Review findings and test changes, especially for published APIs and dynamic calls.
Versions compared
Checked October 10, 2026, against official documentation and source. Kareki’s l10n and private-code details were updated October 13, 2026.
| Tool | Version examined |
|---|---|
| kareki | latest |
| ciach | 0.6.0 |
| Dart Code Linter | 4.4.2 |
| dependency_validator | 5.1.0 |
| Dart standard analysis | 3.13.3 |