From 16bf03e1738d8d3cc3e8ba017548751df6540d70 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Sun, 3 Jan 2016 13:54:36 -0500 Subject: [PATCH] Updates rubocop and codeclimate configuration. --- .codeclimate.yml | 9 ++++++++ .coveralls.yml | 3 --- .rubocop.yml | 59 ++++++++++++++++++++++-------------------------- .travis.yml | 1 - README.md | 2 +- 5 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 .codeclimate.yml delete mode 100644 .coveralls.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..71dbe973 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,9 @@ +--- +engines: + foodcritic: + enabled: true + rubocop: + enabled: true +ratings: + paths: + - "**.rb" diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 0abce73d..00000000 --- a/.coveralls.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -service_name: travis-ci -repo_token: Q9b8riytmhZpTbCnY4Rph03A5BXMeS9aH diff --git a/.rubocop.yml b/.rubocop.yml index 7636c8e1..97fbbdfd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,49 +1,44 @@ --- +AllCops: + Exclude: + - 'Guardfile' + - 'Rakefile' + - 'Vagrantfile' + - 'Policyfile.rb' + - 'Berksfile' + - 'Thorfile' + - 'Gemfile' + - 'metadata.rb' + - 'test/**/*' + - 'bin/**' + - 'vendor/**/*' AlignParameters: Enabled: false - -Encoding: - Enabled: false - ClassLength: Enabled: false - -MethodLength: - Enabled: false - -LineLength: +CyclomaticComplexity: Enabled: false - Documentation: Enabled: false - -PerceivedComplexity: - Enabled: false - -CyclomaticComplexity: +Encoding: Enabled: false - Style/FileName: Enabled: false - -Style/FirstParameterIndentation: - Enabled: false - -Style/ClassAndModuleChildren: +LineLength: Enabled: false - -Style/PercentLiteralDelimiters: +MethodLength: Enabled: false - Metrics/AbcSize: Enabled: false - -AllCops: - Exclude: - - 'Guardfile' - - 'test/**/*' - - 'bin/*' - - 'vendor/**/*' - +PerceivedComplexity: + Enabled: false +SingleSpaceBeforeFirstArg: + Enabled: false +Style/ClassAndModuleChildren: + Enabled: false +Style/FileName: + Enabled: false Style/GuardClause: Enabled: false +Style/PercentLiteralDelimiters: + Enabled: false diff --git a/.travis.yml b/.travis.yml index 1d059d34..0f845de9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ notifications: script: bundle exec rake travis cache: bundler rvm: - - 2.1 - 2.2 branches: only: diff --git a/README.md b/README.md index 085d0453..84c38d1d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ consul-cookbook [![Join the chat at https://gitter.im/johnbellone/consul-cookbook](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/johnbellone/consul-cookbook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![Release](http://img.shields.io/github/release/johnbellone/consul-cookbook.svg) [![Build Status](http://img.shields.io/travis/johnbellone/consul-cookbook.svg)](http://travis-ci.org/johnbellone/consul-cookbook) -[![Code Coverage](http://img.shields.io/coveralls/johnbellone/consul-cookbook.svg)](https://coveralls.io/r/johnbellone/consul-cookbook) +[![Code Coverage](http://img.shields.io/codeclimate/github/johnbellone/consul-cookbook.svg)](https://codeclimate.com/github/johnbellone/consul-cookbook) [Application cookbook][0] which installs and configures [Consul][1].