openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
15 stars 7 forks source link

chore(go): setup lint config and only format non-generated files #161

Closed ewanharris closed 4 months ago

ewanharris commented 5 months ago

Description

This matches the linting/formatting setup to the one used in CLI, namely:

It also prevents any formatting of the generated directory to keep things simple, if we add a validator package we just need to update the gofumpt command.

It does not deal with any fixes yet, there's a good amount that's auto-fixable but around 80 or so to manually fix (a range of whitespace, line length, naming, unused args, and general code), so waiting for a 👍🏻 or 👎🏻 consensus before tackling those

References

Review Checklist