You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
I tried to set a cleanFilename variable some number of lines earlier and use that, but it is still a variable and still fails the check.
Instead, I have to use an explicit filepath.Clean(filename) call at the point where the linting error was being raised. Since I'm logging the original and the sanitized version of the filename it feels redundant to call filepath.Clean twice, but it's a small price to pay to build better habits.
Instead of using the original value as-is or attempting to
create a localized "cleanFilename" var, use filepath.Clean
directly at the os.Open call. This resolves the original
linting issue and (presumably) makes our intent clearer.
refs GH-106
Found this after using
--exclude-use-default=false
with versionv1.29.0
.The text was updated successfully, but these errors were encountered: