Logo
Explore Help
Register Sign In
big-bro-watches-everything/devstar
1
0
Fork 0
You've already forked devstar
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
bfab129fb97479e2efaaa0ece7071e13d79629ed
devstar/poetry.toml

5 lines
67 B
TOML
Raw Normal View History

Add template linting via djlint (#25212) So I found this [linter](https://github.com/Riverside-Healthcare/djlint) which features a mode for go templates, so I gave it a try and it did find a number of valid issue, like unbalanced tags etc. It also has a number of bugs, I had to disable/workaround many issues. Given that this linter is written in python, this does add a dependency on `python` >= 3.8 and `poetry` to the development environment to be able to run this linter locally. - `e.g.` prefixes on placeholders are removed because the linter had a false-positive on `placeholder="e.g. cn=Search"` for the `attr=value` syntax and it's not ideal anyways to write `e.g.` into a placeholder because a placeholder is meant to hold a sample value. - In `templates/repo/settings/options.tmpl` I simplified the logic to not conditionally create opening tags without closing tags because this stuff confuses the linter (and possibly the reader as well).
2023-06-14 20:17:58 +02:00
[virtualenvs]
in-project = true
no-pip = true
no-setuptools = true
Reference in New Issue Copy Permalink
Powered by DevStar Version: 1.25.3+324-g0772a31744 Page: 21ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API ©Mengning Software . 2024-2025 All rights reserved. 苏ICP备2024068144号-3