Skip to content

Commit

Permalink
Make cyclic_dependency_checks runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
dam5s committed Aug 13, 2023
1 parent 0d35e19 commit 89f36e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test: disk_space_usage/test cyclic_dependency_checks/test ## Run all tests

.PHONY: check-cycles
check-cycles: ## Test cyclic dependencies
cd cyclic_dependency_checks; dart lib/main.dart ../disk_space_usage
cd cyclic_dependency_checks; dart run cyclic_dependency_checks ../disk_space_usage

.PHONY: check
check: format check-cycles test ## Check formatting, cycles and run tests
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import 'dart:async';
import 'dart:io';

import 'cycle_detection/cycle_detector.dart';
import 'cycle_detection/module_dependency.dart';
import 'cycle_detection/module_dependency_graph.dart';
import 'package:cyclic_dependency_checks/cycle_detection/cycle_detector.dart';
import 'package:cyclic_dependency_checks/cycle_detection/module_dependency.dart';
import 'package:cyclic_dependency_checks/cycle_detection/module_dependency_graph.dart';

void main(List<String> args) async {
switch (args) {
Expand All @@ -12,7 +11,7 @@ void main(List<String> args) async {
default:
throw Exception(
'Expected exactly only one argument, '
'the path to dart package folder as argument',
'the path to dart package folder as argument',
);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'dart:isolate';

import 'package:cyclic_dependency_checks/cycle_detection/list_extensions.dart';

import 'imported_dependency.dart';
import 'list_extensions.dart';
import 'module_dependency.dart';

class ModuleDependencyGraph {
Expand Down

0 comments on commit 89f36e4

Please sign in to comment.