You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'''Route conflict detected. ${lightCyan.wrap(originalFilePath)} and ${lightCyan.wrap(conflictingFilePath)} both resolve to ${lightCyan.wrap(conflict.key)}.''',
101
-
);
102
-
}
103
-
}
104
-
}
105
-
106
-
voidreportRogueRoutes(
107
-
HookContext context,
108
-
RouteConfiguration configuration,
109
-
) {
110
-
if (configuration.rogueRoutes.isNotEmpty) {
111
-
context.logger.info('');
112
-
for (final route in configuration.rogueRoutes) {
113
-
final filePath = path.normalize(path.join('routes', route.path));
114
-
final fileDirectory = path.dirname(filePath);
115
-
final idealPath = path.join(
116
-
fileDirectory,
117
-
path.basenameWithoutExtension(filePath),
118
-
'index.dart',
119
-
);
120
-
context.logger.err(
121
-
'''Rogue route detected.${defaultForeground.wrap(' ')}Rename ${lightCyan.wrap(filePath)} to ${lightCyan.wrap(idealPath)}.''',
'''Route conflict detected. ${lightCyan.wrap(originalFilePath)} and ${lightCyan.wrap(conflictingFilePath)} both resolve to ${lightCyan.wrap(conflict.key)}.''',
0 commit comments