dart-sdk/pkg
Nicholas Shahan 2fd1021326 [dartdevc] Turn on lints and cleanup violations
Working towards turning on all lints from package:pedantic. This change includes
the lints that needed cleanup and don't change any behavior.

Applied cleanup:
* Don't explicitly initialize variables to null.
* DO use curly braces for all flow control structures.
* Use `.isEmpty` instead of `.length == 0`.
* Use `.isNotEmpty` instead of `.length > 0` or `! .isEmpty`.
* Use `=` to separate a named parameter from its default value.

The remaining lints from package:pedantic will require cleanup that is less
automatic and will be addressed in later changes.

Change-Id: Ie4c3ba685f8a559209dd14ac037203ecd16252c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103086
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2019-05-20 20:20:47 +00:00
..
analysis_server Implement using suggestion sets for LSP completions 2019-05-20 10:09:41 +00:00
analysis_server_client Update the Dart Analaysis Server protocol to 1.26.1 to mark that the MOVE_FILE refactoring is now enabled. The functionality landed May 3rd, 2019 with https://dart-review.googlesource.com/c/sdk/+/101320 2019-05-07 22:15:56 +00:00
analysis_tool Update the copyright year to 2019 before pushing DAS 1.26.0 version to the Dart plugin 2019-04-15 21:41:29 +00:00
analyzer Fix summary2 linking when using API summaries, which don't include line starts. 2019-05-20 16:58:12 +00:00
analyzer_cli Remove 'await null' in build mode. 2019-05-20 16:58:35 +00:00
analyzer_fe_comparison
analyzer_plugin Issue 36890. Improve importing elements when incomplete code. 2019-05-08 23:31:49 +00:00
async_helper Move async_minitest to package:async_helper. 2019-05-10 19:43:58 +00:00
build_integration dont fall back on the wrapped file system when the uri is the multi-uri scheme 2019-04-11 17:09:52 +00:00
compiler Support in-memory CodegenResult serialization/deserialization 2019-05-20 08:57:39 +00:00
dart2js_tools
dart_internal [dart_internal] Bump SDK constraint upper-bound to <2.4.0 2019-04-20 00:58:51 +00:00
dartfix [dartfix] refactor the dartfix cli UI a bit 2019-05-08 18:51:11 +00:00
dev_compiler [dartdevc] Turn on lints and cleanup violations 2019-05-20 20:20:47 +00:00
diagnostic
expect Move async_minitest to package:async_helper. 2019-05-10 19:43:58 +00:00
front_end add "extension" built-in keyword for extension methods 2019-05-17 22:24:15 +00:00
js [package:js] draft proposal to improve JS interop, see #35084 2019-02-05 01:44:32 +00:00
js_ast Support in-memory CodegenResult serialization/deserialization 2019-05-20 08:57:39 +00:00
kernel [CFE] Run widget transformer before constant evaluation. 2019-05-10 11:02:49 +00:00
meta
modular_test Add dart2js modular test suite under a unit test. 2019-05-17 22:21:05 +00:00
smith Add support for a production dart2js mode in test.dart 2019-03-14 23:59:28 +00:00
sourcemap_testing Update pubspec for dev_compiler and sourcemap_testing 2019-02-04 20:34:59 +00:00
status_file [vm] Remove code collection. 2019-04-18 20:12:09 +00:00
telemetry
testing
vm Revert "[vm/ffi] FFI callbacks on X64." 2019-05-18 15:29:19 +00:00
.gitignore
BUILD.gn
pkg.status Add support for loading a modular test folder and specifying deps in yaml 2019-05-08 21:18:19 +00:00