From 3ee0f218d567711f67e4d76e680e0c95e28734a7 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Fri, 10 Jul 2015 23:42:28 -0400 Subject: [PATCH] add travis, rubocop, and ignore files --- .gitignore | 45 ++++++++++++++------------------------------- .rubocop.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 19 +++++++++++++++++++ 3 files changed, 63 insertions(+), 31 deletions(-) create mode 100644 .rubocop.yml create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 28f4849..f92e714 100644 --- a/.gitignore +++ b/.gitignore @@ -1,35 +1,18 @@ -*.gem -*.rbc -/.config +/.bundle/ +/.yardoc +/Gemfile.lock +/_yardoc/ /coverage/ -/InstalledFiles +/doc/ /pkg/ /spec/reports/ -/test/tmp/ -/test/version_tmp/ /tmp/ - -## Specific to RubyMotion: -.dat* -.repl_history -build/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalisation: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc +*.bundle +*.so +*.o +*.a +mkmf.log +.vagrant/* +.DS_Store +.idea/* +*.gem diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..3cfc80c --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,30 @@ + +MethodLength: + Max: 200 + +LineLength: + Max: 160 + +AbcSize: + Max: 75 + +FileName: + Enabled: false + +PerceivedComplexity: + Enabled: false + +CyclomaticComplexity: + Enabled: false + +ClassLength: + Enabled: false + +IfUnlessModifier: + Enabled: false + +RegexpLiteral: + Enabled: false + +Style/Documentation: + Enabled: false diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..67f8cef --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: ruby +cache: + - bundler +install: + - bundle install +rvm: + - 1.9.3 + - 2.0 + - 2.1 + - 2.2 +notifications: + email: + recipients: + - sensu-plugin@sensu-plugins.io + on_success: change + on_failure: always + +script: + - 'bundle exec rake default'