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: analyzer:
strong-mode: strong-mode:
implicit-casts: false implicit-casts: false

View file

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

View file

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

View file

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