From 26581a048d69e471e6f8cecbe30b2cefbdf1d12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Sat, 26 Oct 2019 15:03:54 +0200 Subject: [PATCH] more erblint --- .erb-lint.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 2 +- README.md | 1 + 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .erb-lint.yml diff --git a/.erb-lint.yml b/.erb-lint.yml new file mode 100644 index 0000000..3321add --- /dev/null +++ b/.erb-lint.yml @@ -0,0 +1,30 @@ +--- + +linters: + ExtraNewline: + enabled: true + + FinalNewline: + enabled: true + + SpaceAroundErbTag: + enabled: true + + AllowedScriptType: + enabled: true + allowed_types: + - text/javascript + - text/template + + Rubocop: + enabled: true + + rubocop_config: + AllCops: + DisabledByDefault: true + + Style/StringLiterals: + EnforcedStyle: double_quotes + + Layout/SpaceInsideHashLiteralBraces: + Enabled: true diff --git a/.travis.yml b/.travis.yml index 00401a8..5a092d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,6 @@ env: script: - cd $GEM; - bundle exec rubocop - - bundle exec erblint **/app/{cells,views}/**/*.erb + - bundle exec erblint app/{cells,views}/**/*.erb - bundle exec rake test_app - SIMPLECOV=1 CODECOV=1 bundle exec rake diff --git a/README.md b/README.md index fb888df..d867c6f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/Platoniq/decidim-module-navigation_maps.svg?branch=master)](https://travis-ci.org/Platoniq/decidim-module-navigation_maps) [![Maintainability](https://api.codeclimate.com/v1/badges/f69b2b0ab0ffcd26f002/maintainability)](https://codeclimate.com/github/Platoniq/decidim-module-navigation_maps/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/f69b2b0ab0ffcd26f002/test_coverage)](https://codeclimate.com/github/Platoniq/decidim-module-navigation_maps/test_coverage) Allows to map processes to image parts using maps.