Skip to content

Commit

Permalink
updated configs and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednuaman committed May 20, 2014
1 parent e62517c commit 28d66fc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .scss-lint.yml
Expand Up @@ -32,7 +32,15 @@ linters:
enabled: true
present: true

HexFormat:
HexLength:
enabled: true
style: short # or 'long'

HexNotation:
enabled: true
style: lowercase # or 'uppercase'

HexValidation:
enabled: true

IdWithExtraneousSelector:
Expand All @@ -46,6 +54,10 @@ linters:
enabled: true
style: exclude_zero # or 'include_zero'

MergeableSelector:
enabled: true
force_nesting: true

NameFormat:
enabled: true
convention: hyphenated_lowercase # or 'BEM', or a regex pattern
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -78,3 +78,6 @@ grunt.loadNpmTasks('grunt-scss-lint');

grunt.registerTask('default', ['scsslint']);
```

### Exit error codes
If you're having problems with the task exiting with an error code, then have a look here: [https://github.com/causes/scss-lint/blob/master/lib/scss_lint/cli.rb](https://github.com/causes/scss-lint/blob/master/lib/scss_lint/cli.rb)
14 changes: 13 additions & 1 deletion test/fixtures/.scss-lint-test.yml
Expand Up @@ -32,7 +32,15 @@ linters:
enabled: true
present: true

HexFormat:
HexLength:
enabled: true
style: short # or 'long'

HexNotation:
enabled: true
style: lowercase # or 'uppercase'

HexValidation:
enabled: true

IdWithExtraneousSelector:
Expand All @@ -46,6 +54,10 @@ linters:
enabled: true
style: exclude_zero # or 'include_zero'

MergeableSelector:
enabled: true
force_nesting: true

NameFormat:
enabled: true
convention: hyphenated_lowercase # or 'BEM', or a regex pattern
Expand Down
2 changes: 1 addition & 1 deletion test/scss-lint-test.js
Expand Up @@ -28,7 +28,7 @@ exports.scsslint = {
'Should report bad ordering.'
);
test.ok(
results[2].indexOf('Color `black` should be written in hexadecimal form as `#000`') !== -1,
results[2].indexOf('Color `black` should be written in hexadecimal form as `#000000`') !== -1,
'Should report string colour usage.'
);
test.ok(
Expand Down

0 comments on commit 28d66fc

Please sign in to comment.