Open sruehl opened 2 months ago
~would be good to at least output the path in the error message to, otherwise the error looks a bit silly as can be seen above~ (edit: fixed with #163 )
ok guess the title is wrong, it actually crashes because of the idea template (with the help of #163):
.idea/fileTemplates/includes/File Header Go.go
.
So I was able to fix this by -excludes .idea
.
So I wonder if it might be an option to add a eager
option or something which just continues on those cases or another option is to provide sensible defaults for excludes like .idea
or .git
because I'm quite positive that you never want to format stuff in those directories.
when running
goimports-reviser ./...
I get
Failed to fix directory ./...: failed to walk dif: failed to fix: 18:5: expected 'package', found 'EOF'
when running in projects containing Intellij Idea templates.
Is there an option to not crash the program and just ignore that directory? Seems a bit tedious to workaround that...