File tree Expand file tree Collapse file tree 6 files changed +9
-13
lines changed Expand file tree Collapse file tree 6 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ import '../sdk.dart';
9
9
10
10
class FormatCommand extends DartdevCommand {
11
11
FormatCommand ({bool verbose = false })
12
- : super (
13
- 'format' ,
14
- 'Idiomatically formats Dart source code.' ,
15
- ) {
12
+ : super ('format' , 'Format Dart source code.' ) {
16
13
// TODO(jwren) When https://github.com/dart-lang/dart_style/issues/889
17
14
// is resolved, have dart_style provide the ArgParser, instead of creating
18
15
// one here.
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ import '../utils.dart';
24
24
class PubCommand extends DartdevCommand <int > {
25
25
var pubCommandRunner = PubCommandRunner ();
26
26
27
- PubCommand ({bool verbose = false })
28
- : super ('pub' , 'Pub is a package manager for Dart.' ) {
27
+ PubCommand ({bool verbose = false }) : super ('pub' , 'Work with packages.' ) {
29
28
argParser.addFlag ('version' , negatable: false , help: 'Print pub version.' );
30
29
argParser.addFlag ('trace' ,
31
30
help: 'Print debugging information when an error occurs.' );
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ import 'package:test/test.dart';
12
12
import '../utils.dart' ;
13
13
14
14
void main () {
15
- group ('create' , defineCreate );
15
+ group ('create' , defineCreateTests );
16
16
}
17
17
18
- void defineCreate () {
18
+ void defineCreateTests () {
19
19
TestProject p;
20
20
21
21
setUp (() => p = null );
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ void format() {
22
22
var result = p.runSync ('format' );
23
23
expect (result.exitCode, 0 );
24
24
expect (result.stderr, isEmpty);
25
- expect (result.stdout, contains ('Idiomatically formats Dart source code.' ));
25
+ expect (result.stdout, contains ('Format Dart source code.' ));
26
26
expect (result.stdout, contains ('Usage: dart format [arguments]' ));
27
27
});
28
28
@@ -31,7 +31,7 @@ void format() {
31
31
var result = p.runSync ('format' , ['--help' ]);
32
32
expect (result.exitCode, 0 );
33
33
expect (result.stderr, isEmpty);
34
- expect (result.stdout, contains ('Idiomatically formats Dart source code.' ));
34
+ expect (result.stdout, contains ('Format Dart source code.' ));
35
35
expect (result.stdout, contains ('Usage: dart format [arguments]' ));
36
36
});
37
37
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ void pub() {
31
31
32
32
expect (result.exitCode, 0 );
33
33
expect (result.stderr, isEmpty);
34
- expect (result.stdout, contains ('Pub is a package manager for Dart. ' ));
34
+ expect (result.stdout, contains ('Work with packages ' ));
35
35
expect (result.stdout, contains ('Usage: dart pub <subcommand> [arguments]' ));
36
36
expect (result.stdout,
37
37
contains ('Print debugging information when an error occurs.' ));
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ linter:
23
23
#
24
24
# - always_declare_return_types # 17
25
25
- always_require_non_null_named_parameters
26
- # - annotate_overrides # 4
26
+ - annotate_overrides
27
27
- avoid_null_checks_in_equality_operators
28
28
- camel_case_extensions
29
29
# - omit_local_variable_types # 44
@@ -36,5 +36,5 @@ linter:
36
36
# - prefer_if_null_operators # 2
37
37
- prefer_single_quotes
38
38
- prefer_spread_collections
39
- # - unnecessary_this # 1
39
+ - unnecessary_this
40
40
- use_function_type_syntax_for_parameters
You can’t perform that action at this time.
0 commit comments