xqlint
Version:
XQuery & JSONiq Quality Checker
68 lines (48 loc) • 1.59 kB
Markdown
#XQLint
[](http://badge.fury.io/js/xqlint)
## JSONiq & XQuery Code Quality Tool
XQLint parses XQuery & JSONiq files and returns errors and warnings based on static code analysis.

## Installation
Install Node.js and NPM for your system (Mac, Windows or Linux). And install the command line tool using:
```bash
$ npm install xqlint -g
```
## Usage
### Lint
```bash
$ xqlint lint <path> [-s, --style-check <yes, no>]
```

### Print AST as XML
```bash
$ xqlint ast <path>
```
### Syntax Highlighting
```bash
$ xqlint highlight <path>
```
## Development
If you'd like to hack on xqlint itself:
```bash
git clone git@github.com:wcandillon/xqlint.git
cd xqlint
npm install
grunt
```
### Run tests
```bash
grunt vows
```
### Generate Parsers
```bash
grunt parsers
```
## Who is using this project?
* [28.io cli tool](https://github.com/28msec/28)
* [Atom Editor](https://atom.io/packages/language-jsoniq)
* [ACE, aka the Cloud9 editor](https://github.com/ajaxorg/ace), [view demo](http://try.zorba.io).
* [XQLint Grunt Task](https://github.com/wcandillon/grunt-xqlint)
* [XQLint Gulp Plugin](https://github.com/wcandillon/gulp-xqlint)
* [eXide](https://github.com/wolfgangmm/eXide), a web-based XQuery IDE for eXist-db, [view demo](http://exist-db.org/exist/apps/eXide/).
* [atom-existdb](https://github.com/wolfgangmm/atom-existdb), an Atom editor integration package for eXist-db.