Skip to content

Commit c1d5b95

Browse files
committed
.coafile: Add a new "css" section
This commit adds a new section to coafile which will be responsible for linting the css files using CSSLintBear. Closes #755
1 parent 9b3c9bc commit c1d5b95

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.coafile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Ignoring InvalidLinkBear since coala links are broken
33
bears = coalaBear
44
files = **.yml, **.html, **.md, **.js, **.css, **.json
5-
ignore = vendor/**, resources/vendors/**, _site/**, _book/**
5+
ignore = vendor/**, resources/vendors/**, _site/**, _book/**, node_modules/**
66
# These sites all reject spiders
77
link_ignore_list =
88
https://twitter.com/**,
@@ -20,6 +20,11 @@ link_ignore_list =
2020
# See https://github.com/coala/coala-bears/issues/2126
2121
link_ignore_regex = clbin.com
2222

23+
[css]
24+
bears = CSSLintBear
25+
files = **.css
26+
ignore = resources/vendors/**.css, node_modules/**
27+
2328
[commit]
2429
bears = GitCommitBear
2530
shortlog_trailing_period = False
@@ -31,6 +36,7 @@ bears = LineCountBear
3136
ignore =
3237
vendor/**,
3338
resources/vendors/**,
39+
node_modules/**,
3440
data/projects.js,
3541
_site/**,
3642
_projects/README.md,
@@ -43,26 +49,26 @@ max_lines_per_file = 500
4349
[filenames]
4450
bears = FilenameBear
4551
files = **.yml, **.html, **.js, **.css
46-
ignore = vendor/**, resources/vendors/**, _site/**, _reports/**
52+
ignore = vendor/**, resources/vendors/**, node_modules/**, _site/**, _reports/**
4753
file_naming_convention = snake
4854

4955
[markdown_filenames]
5056
bears = FilenameBear
5157
files = **.md
52-
ignore = vendor/**, resources/vendors/**, _reports/**, _site/**, _projects/integrate-pyflakes-AST.md, data/locale/en/projects/**
58+
ignore = vendor/**, resources/vendors/**, node_modules/**, _reports/**, _site/**, _projects/integrate-pyflakes-AST.md, data/locale/en/projects/**
5359
file_naming_convention = kebab
5460

5561
[spacing]
5662
bears = SpaceConsistencyBear
5763
files = **.html, **.css, **.js, **.json, **.md
58-
ignore = vendor/**, resources/vendors/**, _site/**
64+
ignore = vendor/**, resources/vendors/**, node_modules/**, _site/**
5965
use_spaces = True
6066

6167
[html]
6268
bears = HTMLLintBear
6369
files = **.html
6470
htmllint_ignore = optional_tag, protocol, indentation, concerns_separation, capitalization
65-
ignore = vendor/**, resources/vendors/**, _site/**
71+
ignore = vendor/**, resources/vendors/**, node_modules/**, _site/**
6672

6773
[yml]
6874
bears = YAMLLintBear

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- curl "${GRAVIS}.install-jdk-travis.sh"
3636
--output ~/.install-jdk-travis.sh
3737
- source ~/.install-jdk-travis.sh
38+
- npm install -g csslint@^1.0.5
3839
install:
3940
- cOALA_ZIP_URL=https://github.com/coala/coala/archive/master.zip
4041
- curl -fsSL -o coala-master.zip $cOALA_ZIP_URL

0 commit comments

Comments
 (0)