Skip to content

[CHECK] The check command doesn't check the conformity of the given CRU file #10

@Sytroon

Description

@Sytroon

Describe the bug
While the check command check that the given file is a CRU file, it doesn't check that the date contained in the file has a valid CRU syntax and parses it anyway.

To Reproduce
Steps to reproduce the behavior:

  1. Create a CRU file in the current folder with nothing in it
  2. Run the following command
 node ./caporalCli.js check fileName.cru
  1. Observe that the command still works and doesn't indicate an error

Expected behavior
An error message should indicate to the user that the CRU file given doesn't have a valide CRU syntax.

Desktop (please complete the following information):

  • OS: Windows 11
  • Node v22.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    CHECKbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions