Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdablabs/qsslint
Linter for Qt stylesheet files
https://github.com/kdablabs/qsslint
Last synced: 8 days ago
JSON representation
Linter for Qt stylesheet files
- Host: GitHub
- URL: https://github.com/kdablabs/qsslint
- Owner: KDABLabs
- License: mit
- Created: 2018-09-14T12:42:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T18:32:55.000Z (about 6 years ago)
- Last Synced: 2024-03-20T19:30:39.004Z (10 months ago)
- Language: C++
- Size: 4.88 KB
- Stars: 21
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qsslint - a linter for Qt stylesheet files
A tool that simply returns 0 if your stylesheet is valid, *non-zero* otherwise.
Ideal for hooking up in your build system or CI.Example usage:
```
$ qsslint mystylesheet.qss
QCssParser::parseHexColor: Unknown color name '#00000'
Invalid stylesheet for mystylesheet.qss
``````
$ qsslint --help
Usage: qsslint [options] filesQt stylesheet syntax verifier
NOTE: Avoid using Qt style sheets. Qt style sheets are pratically unmaintained and are being considered for deprecation or removal in Qt 6. Often they aren't flexible enough to implement complex styles and you only realize that when it's too late to rewrite with QStyle. Mixing style sheets with proxy styles would solve the above but it's currently not well supported (see https://codereview.qt-project.org/#/c/218791/ for proposed solution).
See also QTBUG-68671 for less drastic Qt 6 plans.Options:
-h, --help Displays this help.
-v, --version Displays version information.
-s, --syntax-only Only validate syntax, not semanticsArguments:
files list of qss files to verify
```