Skip to content

Commit

Permalink
Release 0.2.0 prep # cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
akaiser committed May 5, 2024
1 parent 99b167c commit 6d18c1b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
22 changes: 9 additions & 13 deletions lib/src/deps_unused/deps_unused_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ class DepsUnusedCommand extends Command<int> {
final description = 'Checks and fixes unused dependencies.';

@override
int run() {
final params = lib.DepsUnusedParams(
path: argResults.path,
mainIgnores: argResults.mainIgnores,
devIgnores: argResults.devIgnores,
fix: argResults.fix,
);

return DepsUnusedChecker(
params,
jsonOutput: argResults.json,
).checkWithExit();
}
int run() => DepsUnusedChecker(
lib.DepsUnusedParams(
path: argResults.path,
mainIgnores: argResults.mainIgnores,
devIgnores: argResults.devIgnores,
fix: argResults.fix,
),
jsonOutput: argResults.json,
).checkWithExit();
}
20 changes: 8 additions & 12 deletions lib/src/transitive_use/transitive_use_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ class TransitiveUseCommand extends Command<int> {
final description = 'Checks direct use of undeclared/transitive dependencies';

@override
int run() {
final params = lib.TransitiveUseParams(
path: argResults.path,
mainIgnores: argResults.mainIgnores,
devIgnores: argResults.devIgnores,
);

return TransitiveUseChecker(
params,
jsonOutput: argResults.json,
).checkWithExit();
}
int run() => TransitiveUseChecker(
lib.TransitiveUseParams(
path: argResults.path,
mainIgnores: argResults.mainIgnores,
devIgnores: argResults.devIgnores,
),
jsonOutput: argResults.json,
).checkWithExit();
}

0 comments on commit 6d18c1b

Please sign in to comment.