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

cflint/cfparser not handling the script version of cfmail correctly. #237

Closed
sdurette opened this issue Feb 10, 2017 · 1 comment
Closed

Comments

@sdurette
Copy link

When running cflint against a file with the following code: multiple errors come up.

cfmail(
    to=toAddress,
    from=adminEmail,
    replyto=adminEmail,
    failto=adminEmail,
    subject="Test email",
    type="html"
) {
     writeOutput(mailBody);
)

The errors are as follows:

  • In the to=toAddress, the error is "End of statement(;) expected instead of ,"
  • Same for the from, replyto, failto, and subject lines.
  • The line that has ) { has the following error: "End of statement(;) expected instead of )

Oh of course toAddress, adminEmail, and mailBody are all variables.

Thanks for a great linter!

ryaneberly added a commit to cfparser/cfparser that referenced this issue Feb 11, 2017
ryaneberly added a commit to cfparser/cfparser that referenced this issue Feb 12, 2017
ryaneberly added a commit to cfparser/cfparser that referenced this issue Feb 12, 2017
@ryaneberly
Copy link
Contributor

@sdurette, thanks! this will be fixed in the release coming out tuesday.

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