Apply pedantic

This commit is contained in:
Tobe O 2019-04-28 13:09:44 -04:00
parent 2c6b12a59c
commit 2a6f6546d9
4 changed files with 11 additions and 8 deletions

View file

@ -1,3 +1,4 @@
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false

View file

@ -25,11 +25,11 @@ class RunnerOptions {
final bool useZone, respawn;
RunnerOptions(
{this.hostname: '127.0.0.1',
this.port: 3000,
this.concurrency: 1,
this.useZone: false,
this.respawn: true});
{this.hostname = '127.0.0.1',
this.port = 3000,
this.concurrency = 1,
this.useZone = false,
this.respawn = true});
factory RunnerOptions.fromArgResults(ArgResults argResults) {
return new RunnerOptions(

View file

@ -23,7 +23,7 @@ class Runner {
final Reflector reflector;
Runner(this.name, this.configureServer,
{this.reflector: const EmptyReflector()});
{this.reflector = const EmptyReflector()});
static const String asciiArt = '''
____________ ________________________
@ -168,7 +168,7 @@ _ ___ | /| / / /_/ / _ /___ _ /___
stderr..writeln('fatal error: $e');
exitCode = 1;
} finally {
server?.close();
await server?.close();
}
}

View file

@ -1,5 +1,5 @@
name: angel_production
version: 1.0.0-alpha.1
version: 1.0.0
description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel.
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/production
@ -12,3 +12,5 @@ dependencies:
io: ^0.3.2
logging: ^0.11.3
pub_sub: ^2.0.0
dev_dependencies:
pedantic: ^1.0.0