-
-
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
cmd/fyne: Switch to using strings for bundled resources #1638
Conversation
Wondering if an ignore directive for staticcheck could make sense since these are autogenerated files. I don't know if exists something similar for gopls that could help. |
Not rreally - we are generating the files, so should generate them correctly. That is what @Jacalz change does I think. |
It looks like staticcheck doesn’t have support for that yet. You can turn off specific checks for a file but not exclude them fully. dominikh/go-tools#429 |
I see. I was thinking only some types of checks was causing problem, hence the idea to have the generator to add a linter ignore directive. |
I think this still holds? |
Agreed generated files should be generated correcly. Just wondering if an accurate and manual check on the generated files could be good enough for now, since we probably won't change the generator often and the static analisys on the generated files is causing trouble :) |
Given that staticcheck doesn't support disabling for whole files (going through and testing the individual checks seems time consuming) and we already apply |
I don't think this is the case... this PR changed the code that generates the files, and the output was not correct. |
Sorry @andydotxyz. You will need to re-approve now that I have rebased on latest develop (release 1.4.x merge related). |
Description:
This moves on with moving to strings over []byte for bundled items. Should decrease memory usage in gopls even more and for applications using bundled resources. Hopefully this can get fynedesk staticcheck to not die from memory usage.
Checklist: