Enable unreachable_from_main lint - it is stable now!!1 (#129854)
PLUS: clean-up of all the unreachable stuff.
This commit is contained in:
committed by
GitHub
parent
99cb18b1a8
commit
55b6f049a6
@@ -81,13 +81,12 @@ Future<void> runSmokeTests({
|
||||
// A class to hold information related to an example, used to generate names
|
||||
// from for the tests.
|
||||
class ExampleInfo {
|
||||
ExampleInfo(this.file, Directory examplesLibDir)
|
||||
ExampleInfo(File file, Directory examplesLibDir)
|
||||
: importPath = _getImportPath(file, examplesLibDir),
|
||||
importName = '' {
|
||||
importName = importPath.replaceAll(RegExp(r'\.dart$'), '').replaceAll(RegExp(r'\W'), '_');
|
||||
}
|
||||
|
||||
final File file;
|
||||
final String importPath;
|
||||
String importName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user