[License] Enable prefer_initializing_formals lint
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user