[License] Enable prefer_initializing_formals lint

This commit is contained in:
Chris Bracken
2018-12-20 12:20:07 -08:00
parent ddbe4bf456
commit bdfdae4abb
2 changed files with 3 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ linter:
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_final_locals
- prefer_initializing_formals
- prefer_is_not_empty
- prefer_single_quotes
- prefer_void_to_null

View File

@@ -284,11 +284,10 @@ abstract class License implements Comparable<License> {
return _registry.putIfAbsent(body, () => License.fromBodyAndType(body, type, origin: origin));
}
License._(String body, this.type, {
License._(this.body, this.type, {
this.origin,
bool yesWeKnowWhatItLooksLikeButItIsNot = false
}) : body = body,
authors = _readAuthors(body),
}) : authors = _readAuthors(body),
assert(_reformat(body) == body) {
assert(() {
try {