Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Apply pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
thosakwe committed Apr 28, 2019
1 parent 2c6b12a commit 2a6f654
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
10 changes: 5 additions & 5 deletions lib/src/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '''
____________ ________________________
Expand Down Expand Up @@ -168,7 +168,7 @@ _ ___ | /| / / /_/ / _ /___ _ /___
stderr..writeln('fatal error: $e');
exitCode = 1;
} finally {
server?.close();
await server?.close();
}
}

Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/angel-dart/production
Expand All @@ -12,3 +12,5 @@ dependencies:
io: ^0.3.2
logging: ^0.11.3
pub_sub: ^2.0.0
dev_dependencies:
pedantic: ^1.0.0

0 comments on commit 2a6f654

Please sign in to comment.