type-coverage
Advanced tools
Comparing version 2.13.3 to 2.14.0
@@ -28,2 +28,3 @@ "use strict"; | ||
--ignore-files string[]? ignore files | ||
--ignore-unread boolean? allow writes to variables with implicit any types | ||
-h,--help boolean? show help | ||
@@ -45,3 +46,3 @@ --is number? fail if coverage rate !== this value | ||
} | ||
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, is, project, strict, update } = await getTarget(argv); | ||
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update } = await getTarget(argv); | ||
const { correctCount, totalCount, anys } = await type_coverage_core_1.lint(project, { | ||
@@ -52,3 +53,4 @@ debug: debug, | ||
ignoreCatch: ignoreCatch, | ||
ignoreFiles: ignoreFiles | ||
ignoreFiles: ignoreFiles, | ||
ignoreUnreadAnys: ignoreUnread, | ||
}); | ||
@@ -105,2 +107,3 @@ const percent = Math.floor(10000 * correctCount / totalCount) / 100; | ||
const ignoreFiles = getArgOrCfgVal(['ignore-files', 'ignoreFiles']); | ||
const ignoreUnread = getArgOrCfgVal(['ignore-unread', 'ignoreUnread']); | ||
const is = getArgOrCfgVal(['is']); | ||
@@ -110,3 +113,3 @@ const project = getArgOrCfgVal(['p', 'project']) || '.'; | ||
const update = getArgOrCfgVal(['update']); | ||
return { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, is, project, strict, update }; | ||
return { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update }; | ||
} | ||
@@ -113,0 +116,0 @@ async function saveTarget(target) { |
{ | ||
"name": "type-coverage", | ||
"version": "2.13.3", | ||
"version": "2.14.0", | ||
"description": "A CLI tool to check type coverage for typescript code", | ||
@@ -10,3 +10,3 @@ "repository": "https://github.com/plantain-00/type-coverage.git", | ||
"minimist": "1", | ||
"type-coverage-core": "^2.13.3" | ||
"type-coverage-core": "^2.14.0" | ||
}, | ||
@@ -13,0 +13,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6172
137
Updatedtype-coverage-core@^2.14.0