Closed thehowl closed 2 months ago
👍 let's implement custom linters for our project's needs.
Regarding this specific case, I propose implementing a catch-all solution that involves a single CI rule to handle all code generation, followed by a global diff.
Related with #743
See #631 CI. The PR is failing because
stdlibWhitelist
inpkgs/gnolang/precompile.go
is not kept in sync appropriately with the current state of the code, as authors of new packages often forget to add packages to this whitelist, which in turn makes the CI fail when these packages are actually used.Additionally, there are some I imagine deprecated entries in
stdlibWhitelist
, such asencoding/xml
andencoding/json
, which are packages which are currently not supported in the gno stdlibs.My proposal is to add a script which is run on the CI which ensures that this variable is kept in sync with the
stdlibs
directory (except forinternal
packages, of course) - and additionally is provided as amake
command able to automatically adjuststdlibWhitelist
in the source.