feat: add .pre-commit-config.yaml for vala-lint#312
feat: add .pre-commit-config.yaml for vala-lint#312kuya-carlo wants to merge 1 commit intotoolstack:mainfrom
Conversation
|
Thanks for the PR, I'm ok with it in general, there is one change that needs to be made though. The default vala-lint config is to treat indent tabs as an error, but all of the files in Folio use tabs for indent, and I'm not willing to change that at this time. To solve that, could you please add a vala-lint config file with Thanks. |
|
Two other quick items:
Thanks. |
Integrate vala-lint to automate code style checks. See: https://github.com/vala-lang/vala-lint ci: add build and lint workflows ci: add vala-lint.conf
e07d686 to
2def59e
Compare
Do you mean... only src and lib is to be linted or include src and lib(and therefore, other folders)?
Done. |
In the original change you had |
Integrate vala-lint to automate code style checks.
See: https://github.com/vala-lang/vala-lint
Why not use vala-lint pre-commit config as is?
When I tried to use the existing config are having a hard time making it work with less config(see logs below). Since devs do have vala in, its just a few steps if we build and install vala-lint to test in our local machine or to add in the workflows
prek logs
[root@8ea5044fa588 Folio]# prek --all-files warning: The following repos have mutable `rev` fields (moving tag / branch): https://github.com/vala-lang/vala-lint: master Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details. hint: `prek auto-update` often fixes this",Vala-Lint................................................................Failed
hook id: vala-lint
exit code: 125
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
Error: short-name resolution enforced but cannot prompt without a TTY
System Info
OS: Fedora Linux 43 (Workstation Edition) x86_64 Kernel: Linux 6.19.8-200.fc43.x86_64 Shell: zsh 5.9 DE: GNOME 49.5 WM: Mutter (Wayland) CPU: Intel(R) Core(TM) i5-8350U (8) @ 3.60 GHz GPU: Intel UHD Graphics 620 @ 1.10 GHz [Integrated] Memory: 19.27 GiB