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

Add a linter for dslNode.ErrorWithSourcef that asserts that the second arg is a static string #2124

Open
tstirrat15 opened this issue Nov 7, 2024 · 0 comments

Comments

@tstirrat15
Copy link
Contributor

tstirrat15 commented Nov 7, 2024

If you have a dynamic string in the second position, and it has a % in it, it will be interpreted as a function string and error. The easiest way to avoid this is to assert that the second arg is a static string.

@tstirrat15 tstirrat15 changed the title Add a linter for dslNode.ErrorWithSourcef that asserts that has at least three args Add a linter for dslNode.ErrorWithSourcef that asserts that the second arg is a static string Nov 7, 2024
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

1 participant