-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: avoid printing confusing message when input contains special character #495
Conversation
…e `%` Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
Can you take a look at why |
There are multiple linters in
It disables all linter and enable To enable
I ran golanglint-ci on 286bdcf again, and get the following output:
I verified through the GitHub Actions running on the code essentially only changed the configuration for workflow (i.e., add support for |
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
changes that do not change the program behavior
changes that change the program behavior
Finally, I want to mentioned the following code (previous) which is not obvious though : var conf config.IConfig
conf = goc
if conf == nil {
logger.Printf("ECAPTURE :: \tcant found module %s config info.", mod.Name())
return
}
Although the checks like |
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops! The staticcheck configuration being turned off was my negligence.
good job, LGTM.
The following usage would printed out confusing message when user controlled input contains special character like "%s".
Query field is controlled by user and may contains special character.
Reproduce
run the following command in the terminal:
run the following command in another terminal:
output: