Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I check cron tab syntax? #56

Open
schoettl opened this issue Jul 23, 2024 · 1 comment
Open

Can I check cron tab syntax? #56

schoettl opened this issue Jul 23, 2024 · 1 comment

Comments

@schoettl
Copy link

Hi, I just thought I use this parser to check if some cron tabs have valid syntax but then noticed that the parser never fails.

For example, I can successfully parse a haskell source file.

I guess this is intended? Is there still a way to check if a cron tab is valid?

@MichaelXavier
Copy link
Owner

I think it might be a bug in the parser. i'm pretty sure cron files can have blank lines, comments, env var sets and cron lines. I suspect the parser is probably stopping on unknown lines or something. I'm not sure if I'll have time any time soon to check into this but I'd happily review an MR. Seems like it could be easy to write a test for too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants