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
Which is flagged by govet with "struct field tag codegen:"name=String,type=string,zero="",noError=true" not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces (govet)"
I would like to be able to instruct golines to ignore this file, like we have with the --ignored-dirs option, or to ignore this part of the file with some bounding comments.
Of course it would be great to fix the invalid struct tag reformatting, but I'm confident that there will be other parts of our codebase we would like to surgically ignore, at a finer grained level than directories, so having an option to do that would be useful.
The text was updated successfully, but these errors were encountered:
CyborgMaster
changed the title
Is there any way to exclude a specific file or specific parts of a file.
Is there any way to exclude a specific file or specific parts of a file?
Nov 20, 2024
We have a file that is improperly reformed by golines. Specifically it changes this struct tag:
into this one:
Which is flagged by govet with "struct field tag
codegen:"name=String,type=string,zero="",noError=true"
not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces (govet)"I would like to be able to instruct golines to ignore this file, like we have with the
--ignored-dirs
option, or to ignore this part of the file with some bounding comments.Of course it would be great to fix the invalid struct tag reformatting, but I'm confident that there will be other parts of our codebase we would like to surgically ignore, at a finer grained level than directories, so having an option to do that would be useful.
The text was updated successfully, but these errors were encountered: