Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2cc74db6
Unverified
Commit
2cc74db6
authored
Apr 27, 2021
by
Jenn Magder
Committed by
GitHub
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate forbidden_from_release_tests to null safety (#81006)
parent
67384627
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
main.dart
dev/forbidden_from_release_tests/bin/main.dart
+4
-9
No files found.
dev/forbidden_from_release_tests/bin/main.dart
View file @
2cc74db6
...
...
@@ -2,17 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart=2.9
// TODO(dnfield): migrate this once vm_snapshot_analysis is migrated.
// https://github.com/dart-lang/sdk/issues/45683
import
'dart:convert'
;
import
'dart:io'
;
import
'package:args/args.dart'
;
import
'package:file/file.dart'
;
import
'package:file/local.dart'
;
import
'package:meta/meta.dart'
;
import
'package:package_config/package_config.dart'
;
import
'package:path/path.dart'
as
path
;
import
'package:process/process.dart'
;
...
...
@@ -79,7 +74,7 @@ Future<bool> validateType(String forbiddenType, File packageConfigFile) async {
packageConfigFile
.
readAsStringSync
(),
packageConfigFile
.
uri
,
);
final
Uri
packageFileUri
=
packageConfig
.
resolve
(
packageUri
);
final
Uri
?
packageFileUri
=
packageConfig
.
resolve
(
packageUri
);
final
File
packageFile
=
fs
.
file
(
packageFileUri
);
if
(!
packageFile
.
existsSync
())
{
print
(
'File
$packageFile
does not exist - forbidden type has moved or been removed.'
);
...
...
@@ -106,9 +101,9 @@ Future<bool> validateType(String forbiddenType, File packageConfigFile) async {
class
Options
{
const
Options
({
@
required
this
.
snapshot
,
@
required
this
.
packageConfig
,
@
required
this
.
forbiddenTypes
,
required
this
.
snapshot
,
required
this
.
packageConfig
,
required
this
.
forbiddenTypes
,
});
factory
Options
.
fromArgs
(
List
<
String
>
args
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment