Open leonelgalan opened 10 years ago
@ethikz, comment something about the need of SCSS and JS lints on the default Travis configuration.
There needs to be SCSS and JS Linting done in the default configuration of Travis. Currently I have SCSS lint working:
.travis.yml
before_script:
- gem install scss-lint
script:
- scss-lint --config=.scss-lint.yml
This should include an scss-lint config file based off our style guide which we have outlined in the wiki.
It would have the following configuration similar to below:
.scss-lint.yml
scss_files:
- 'app/assets/stylesheets/**/*.css.scss'
exclude:
- 'app/vendor/assets/stylesheets/**'
linters:
StringQuotes:
style: single_quotes
Indentation:
width: 2
LeadingZero:
enabled: true
SelectorDepth:
enabled: true
SelectorFormat:
# Used for BEM syntax
convention: '^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?((_[a-z0-9]([-]?[a-z0-9]+)*){2})?$'
CapitalizationInSelector:
enabled: true
NameFormat:
enabled: false
PropertySortOrder:
enabled: true
SingleLinePerSelector:
enabled: true
DeclarationOrder:
enabled: true
IdWithExtraneousSelector:
enabled: false
PlaceholderInExtend:
# Used for clearfix extending
enabled: false
@ethikz should commit that code to the pr
:gun: :fire:
:smoking: :sunglasses:
I will soon, maybe later this week. I'll create a new branch
No need to create a new branch. Just commit directly to this one
Ok I'll commit it but not sure where it's supposed to go?
Okay, so this commit is regarding adding travis and Codeclimate to the GEM and not the generated apps. We need to create a seperate card for what @ethikz is requesting but I don't think this project has a trello board.