Skip to content

Commit

Permalink
Merge pull request #5 from CMSgov/remove-filename-check
Browse files Browse the repository at this point in the history
Remove filename check
  • Loading branch information
shaselton-usds authored Mar 20, 2024
2 parents da97291 + c441cb2 commit 7705755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hpt-validator-cli",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"author": "CMS Open Source <opensource@cms.hhs.gov>",
"license": "CC0-1.0",
"description": "CLI for validating CMS Hospital Price Transparency machine-readable files",
Expand Down
8 changes: 1 addition & 7 deletions src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs"
import path from "path"
import chalk from "chalk"
import { validateFilename, validateCsv, validateJson } from "hpt-validator"
import { validateCsv, validateJson } from "hpt-validator"
import { ValidationResult } from "hpt-validator/src/types"
import { InvalidArgumentError } from "commander"

Expand All @@ -19,12 +19,6 @@ export async function validate(
)
}

if (validateFilename(path.basename(filepath))) {
console.log(chalk.green("Filename valid"))
} else {
console.log(chalk.red("Filename invalid"))
}

const validationResult = await validateFile(
filepath,
version,
Expand Down

0 comments on commit 7705755

Please sign in to comment.