Skip to content

Commit

Permalink
suppress Dynamic warning for LineCoverageResult
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Mar 26, 2016
1 parent 1cc7112 commit b2983d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@
"checkstyle.Main",
"checkstyle.Checker",
"checkstyle.ChecksInfo",
"checkstyle.checks.imports.UnusedImportCheck"
"checkstyle.checks.imports.UnusedImportCheck",
"TestMain"
],
"MultipleStringLiterals": [
"checks",
Expand Down
6 changes: 4 additions & 2 deletions test/TestMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TestMain {
var report = { coverage: {} };
var classes = logger.coverage.getClasses();
for (cls in classes) {
var coverageData:Array<Dynamic> = [null];
var coverageData:Array<LineCoverageResult> = [null];
var results:CoverageResult = cls.getResults();
for (i in 1...results.l) coverageData[i] = 1;
var c = cls.name.replace(".", "/") + ".hx";
Expand Down Expand Up @@ -67,4 +67,6 @@ class TestMain {
static function main() {
new TestMain();
}
}
}

typedef LineCoverageResult = Dynamic;

0 comments on commit b2983d2

Please sign in to comment.