Skip to content

Commit

Permalink
[ci] Add rubocop cache and also in Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Moises Deniz Aleman committed Nov 24, 2016
1 parent af2e099 commit 2f3130e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ matrix:
install: ''
before_script: ''
- env: TEST_SUITE=rubocop
cache:
bundler: true
directories:
- tmp/rubocop_cache
before_install: ''
before_script: ''
notifications:
Expand Down
7 changes: 5 additions & 2 deletions src/api/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
inherit_from: .rubocop_todo.yml

AllCops:
UseCache: true
CacheRootDirectory: tmp/rubocop_cache
MaxFilesInCache: 2000
Exclude:
- 'tmp/**/*'
- 'lib/templates/**/*'
Expand Down Expand Up @@ -61,7 +64,7 @@ Style/Not:
# Checks for redundant uses of `self`
Style/RedundantSelf:
Enabled: true

# Checks for the presence of parentheses around ternary conditions
Style/TernaryParentheses:
Enabled: true
Expand Down Expand Up @@ -112,7 +115,7 @@ Lint/UnusedBlockArgument:
# Checks for access modifiers without any code
Lint/UselessAccessModifier:
Enabled: true

# Checks for every useless assignment to local variable in every scope
Lint/UselessAssignment:
Enabled: true
Expand Down

0 comments on commit 2f3130e

Please sign in to comment.