Unverified Commit 9ec5d713 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Remove usage of --enable-experiment to analysis server (#69614)

parent c4bd14cc
...@@ -207,7 +207,7 @@ class TestCase { ...@@ -207,7 +207,7 @@ class TestCase {
printOutputDefault: true, printOutputDefault: true,
); );
final ProcessRunnerResult result = await runner.runProcess( final ProcessRunnerResult result = await runner.runProcess(
<String>[flutter, 'analyze', '--current-package', '--enable-experiment=non-nullable', '--pub', '--congratulate', '.'], <String>[flutter, 'analyze', '--current-package', '--pub', '--congratulate', '.'],
failOk: true, failOk: true,
); );
if (result.exitCode != 0) { if (result.exitCode != 0) {
......
...@@ -349,33 +349,6 @@ StringBuffer bar = StringBuffer('baz'); ...@@ -349,33 +349,6 @@ StringBuffer bar = StringBuffer('baz');
} }
}); });
testUsingContext('analyze once supports analyzing null-safe code', () async {
const String contents = '''
int? bar;
''';
final Directory tempDir = fileSystem.systemTempDirectory.createTempSync('flutter_analyze_once_test_null_safety.');
_createDotPackages(tempDir.path, true);
tempDir.childFile('main.dart').writeAsStringSync(contents);
try {
await runCommand(
command: AnalyzeCommand(
workingDirectory: fileSystem.directory(tempDir),
platform: _kNoColorTerminalPlatform,
fileSystem: fileSystem,
logger: logger,
processManager: processManager,
terminal: terminal,
artifacts: artifacts,
),
arguments: <String>['analyze', '--no-pub', '--enable-experiment=non-nullable'],
statusTextContains: <String>['No issues found!'],
);
} finally {
tryToDelete(tempDir);
}
});
testUsingContext('analyze once returns no issues for todo comments', () async { testUsingContext('analyze once returns no issues for todo comments', () async {
const String contents = ''' const String contents = '''
// TODO(foobar): // TODO(foobar):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment