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
dev: refactor regexp
usage
#24
Conversation
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.
I would also ask that you include test cases testing for the functionality that has changed in order to confirm that the issue is resolved.
let me think about this, |
@tomarrell I have added a test case and changed the way it passes compiled regexes around. Can you check if this solution suites you? |
ping @tomarrell, do my explanations and fixes make sense? |
Thanks for the ping @butuzov, I'll take a look and let you know. |
@butuzov Did you maybe forget to check in the |
you are right! I forgot to commit it! now its fixed. |
Thanks for that. There's a couple of things I would like to check locally, however I've just started a vacation, but plan to finish this review in the next day or two. I appreciate your patience in the meantime. |
No problem. This can wait. |
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.
Looks good. Just made some minor changes, added a more generic way to skip the analysistest run so they can be tested manually.
Thanks for the contribution!
thank you! |
This PR intends to bring the next features/fixes to
wrapcheck
:regexp.Regexp
for checking each error returning function.os.Exit(1)
in case fail to compileregexp
rule from the codebase ( we can't handle such cases ingolangci-lint
: output is hidden, so no log messages received, which ends in no issues or errors comes fromwrapcheck
if bad regexp provided).P.S. The rest of the coding is changed by
gofumpt
automatically.P.P.S. It would be also great to release
fix
changes asap (so we updategolangci-lint
).