Enable ALL THE LINTS

Well, all the easy ones, anyway.

For some reason `// ignore:` isn't working for me so I've disabled
lints that need that. Also disabled those that require a ton of work
(which I'm doing, but not in this PR, to keep it reviewable).

This adds:
- avoid_init_to_null
- library_names
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_is_not_empty
- sort_constructors_first
- sort_unnamed_constructors_first
- unnecessary_getters_setters
This commit is contained in:
Ian Hickson
2016-03-10 23:15:31 -08:00
parent 7544514484
commit 1b9cd52081
41 changed files with 271 additions and 264 deletions

View File

@@ -15,6 +15,14 @@ double convertRadians2Degrees(double radians) => radians * 180.0/math.PI;
/// rotation, and scaling) of a node also affects its children.
class Node {
// Constructors
/// Creates a new [Node] without any transformation.
///
/// Node myNode = new Node();
Node();
// Member variables
SpriteBox _spriteBox;
@@ -101,12 +109,6 @@ class Node {
}
}
// Constructors
/// Creates a new [Node] without any transformation.
///
/// Node myNode = new Node();
Node();
// Property setters and getters