Code Monkey home page Code Monkey logo

qsslint's Introduction

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] files

Qt 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 semantics

Arguments:
  files              list of qss files to verify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.