Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit ee2da89

Browse files
committed
Merge branch 'develop'
2 parents b1d0d06 + b620804 commit ee2da89

File tree

10 files changed

+316
-161
lines changed

10 files changed

+316
-161
lines changed

.codeclimate.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
engines:
2-
duplication:
3-
enabled: true
4-
config:
5-
languages:
6-
- javascript
7-
eslint:
8-
enabled: true
9-
fixme:
10-
enabled: true
11-
ratings:
12-
paths:
1+
engines:
2+
duplication:
3+
enabled: true
4+
config:
5+
languages:
6+
- javascript
7+
eslint:
8+
enabled: true
9+
fixme:
10+
enabled: true
11+
ratings:
12+
paths:
1313
- "**.js"

.coffeelintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"max_line_length": {
3+
"level": "ignore"
4+
}
5+
}

.editorconfig

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
; EditorConfig is awesome: http://EditorConfig.org
2-
; top-most EditorConfig file
3-
root = true
4-
5-
; Unix-style
6-
[*]
7-
end_of_line = lf
8-
charset = utf-8
9-
10-
[*.js]
11-
indent_style = space
12-
indent_size = 4
13-
14-
[*.json]
15-
indent_style = space
16-
indent_size = 2
17-
18-
[*.md]
19-
indent_style = space
20-
indent_size = 2
1+
; EditorConfig is awesome: http://EditorConfig.org
2+
; top-most EditorConfig file
3+
root = true
4+
5+
; Unix-style
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
10+
[*.coffee]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.js]
15+
indent_style = space
16+
indent_size = 4
17+
18+
[*.json]
19+
indent_style = space
20+
indent_size = 2
21+
22+
[*.md]
23+
indent_style = space
24+
indent_size = 2

.eslintrc.json

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
{
2-
// From upstream https://github.com/lesshint/lesshint/blob/master/.eslintrc.json
3-
"extends": "eslint:recommended",
4-
"env": {
5-
"es6": true,
6-
"mocha": true,
7-
"node": true
8-
},
9-
"rules": {
10-
"array-bracket-spacing": 2,
11-
"brace-style": 2,
12-
"camelcase": 2,
13-
"comma-dangle": 0,
14-
"comma-spacing": 2,
15-
"comma-style": 2,
16-
"computed-property-spacing": 2,
17-
"curly": 2,
18-
"dot-location": [2, "property"],
19-
"dot-notation": 2,
20-
"eol-last": 2,
21-
"eqeqeq": 2,
22-
"guard-for-in": 2,
23-
"indent": [2, 4, {
24-
"SwitchCase": 1,
25-
"VariableDeclarator": 0
26-
}],
27-
"key-spacing": 2,
28-
"newline-after-var": 2,
29-
"no-caller": 2,
30-
"no-console": 0,
31-
"no-else-return": 2,
32-
"no-eval": 2,
33-
"no-extend-native": 2,
34-
"no-lonely-if": 2,
35-
"no-loop-func": 2,
36-
"no-multi-spaces": 2,
37-
"no-trailing-spaces": 2,
38-
"one-var": [2, "never"],
39-
"quotes": [2, "single", "avoid-escape"],
40-
"semi": 2,
41-
"space-before-blocks": 2,
42-
"space-before-function-paren": 2,
43-
"space-in-parens": 2,
44-
"space-unary-ops": [2, {
45-
"nonwords": false,
46-
"words": true
47-
}],
48-
"strict": [2, "global"],
49-
"vars-on-top": 2,
50-
"yoda": 2
51-
}
1+
{
2+
// From upstream https://github.com/lesshint/lesshint/blob/master/.eslintrc.json
3+
"extends": "eslint:recommended",
4+
"env": {
5+
"es6": true,
6+
"mocha": true,
7+
"node": true
8+
},
9+
"rules": {
10+
"array-bracket-spacing": 2,
11+
"brace-style": 2,
12+
"camelcase": 2,
13+
"comma-dangle": 0,
14+
"comma-spacing": 2,
15+
"comma-style": 2,
16+
"computed-property-spacing": 2,
17+
"curly": 2,
18+
"dot-location": [2, "property"],
19+
"dot-notation": 2,
20+
"eol-last": 2,
21+
"eqeqeq": 2,
22+
"guard-for-in": 2,
23+
"indent": [2, 4, {
24+
"SwitchCase": 1,
25+
"VariableDeclarator": 0
26+
}],
27+
"key-spacing": 2,
28+
"newline-after-var": 2,
29+
"no-caller": 2,
30+
"no-console": 0,
31+
"no-else-return": 2,
32+
"no-eval": 2,
33+
"no-extend-native": 2,
34+
"no-lonely-if": 2,
35+
"no-loop-func": 2,
36+
"no-multi-spaces": 2,
37+
"no-trailing-spaces": 2,
38+
"one-var": [2, "never"],
39+
"quotes": [2, "single", "avoid-escape"],
40+
"semi": 2,
41+
"space-before-blocks": 2,
42+
"space-before-function-paren": 2,
43+
"space-in-parens": 2,
44+
"space-unary-ops": [2, {
45+
"nonwords": false,
46+
"words": true
47+
}],
48+
"strict": [2, "global"],
49+
"vars-on-top": 2,
50+
"yoda": 2
51+
}
5252
}

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Created by https://www.gitignore.io/api/node
2+
3+
### Node ###
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# node-waf configuration
27+
.lock-wscript
28+
29+
# Compiled binary addons (http://nodejs.org/api/addons.html)
30+
build/Release
31+
32+
# Dependency directories
33+
node_modules
34+
jspm_packages
35+
36+
# Optional npm cache directory
37+
.npm
38+
39+
# Optional REPL history
40+
.node_repl_history

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
- "6"
5+
- "5"
6+
- "4"
7+
- "0.12"
8+
- "0.11"
9+
- "0.10"

Gruntfile.coffee

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = (grunt) ->
2+
3+
# =============================== Load plugins =============================== #
4+
grunt.loadNpmTasks 'grunt-eslint'
5+
grunt.loadNpmTasks 'grunt-travis-lint'
6+
grunt.loadNpmTasks 'grunt-jsonlint'
7+
grunt.loadNpmTasks 'grunt-coffeelint'
8+
grunt.loadNpmTasks 'grunt-mdlint'
9+
10+
11+
# ================================= Settings ================================= #
12+
# Force use of Unix newlines
13+
grunt.util.linefeed = '\n'
14+
15+
# Project configuration
16+
# =====================
17+
grunt.initConfig
18+
19+
# Load external configurations
20+
pkg: grunt.file.readJSON 'package.json'
21+
22+
23+
# =================================== Task =================================== #
24+
25+
# Linters
26+
# ------
27+
28+
# JS
29+
eslint:
30+
options:
31+
configFile: '.eslintrc.json'
32+
target: ['*.js']
33+
34+
# JSON
35+
jsonlint:
36+
default:
37+
src: [
38+
"*.json"
39+
".coffeelintrc"
40+
".jshintrc"
41+
]
42+
43+
# Coffee
44+
coffeelint:
45+
default: [
46+
'*.coffee'
47+
]
48+
options:
49+
configFile: '.coffeelintrc'
50+
51+
# MarkDown
52+
mdlint:
53+
default: [
54+
'*.md'
55+
]
56+
57+
58+
# ============================== Callable tasks ============================== #
59+
grunt.registerTask 'travis', [
60+
'eslint',
61+
'jsonlint',
62+
'coffeelint'
63+
'travis-lint'
64+
]
65+
66+
grunt.registerTask 'lint', [
67+
'eslint',
68+
'jsonlint',
69+
'coffeelint'
70+
'mdlint'
71+
'travis-lint'
72+
]
73+
74+
# Alias
75+
grunt.registerTask 'default', 'lint'

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
# lesshint-lint-xml-reporter
2-
[![Code Climate](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter/badges/gpa.svg)](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter)
3-
4-
A [lesshint](https://github.com/lesshint/lesshint)'s [reporter](https://github.com/lesshint/lesshint/blob/master/lib/lesshint.js#reporters) using the same lint-xml format that [CSSLint](https://github.com/CSSLint/csslint).
1+
# lesshint-lint-xml-reporter
2+
[![Build Status](https://travis-ci.org/llaumgui/lesshint-lint-xml-reporter.svg?branch=master)](https://travis-ci.org/llaumgui/lesshint-lint-xml-reporter) [![Code Climate](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter/badges/gpa.svg)](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter) [![devDependency Status](https://david-dm.org/llaumgui/lesshint-lint-xml-reporter/dev-status.svg)](https://david-dm.org/llaumgui/lesshint-lint-xml-reporter#info=devDependencies)
3+
4+
A [lesshint](https://github.com/lesshint/lesshint)'s [reporter](https://github.com/lesshint/lesshint/blob/master/lib/lesshint.js#reporters) using the same lint-xml format that [CSSLint](https://github.com/CSSLint/csslint).
5+
6+
## Installation
7+
Run the following command from the command line (add -g to install globally):
8+
9+
```
10+
npm install -V git+https://github.com/llaumgui/lesshint-lint-xml-reporter.git
11+
```
12+
13+
## Usage
14+
Use [lesshint](https://github.com/lesshint/lesshint) with `-r` or `--reporter` option:
15+
16+
```bash
17+
lesshint --reporter lint-xml file.less
18+
lesshint --reporter /path/to/lesshint-lint-xml-reporter/lint-xml .js file.less
19+
```

0 commit comments

Comments
 (0)