From 46e801b2b789272bde98442e186622350d4801f6 Mon Sep 17 00:00:00 2001 From: Gerard Caulfield Date: Mon, 4 Jul 2016 17:18:40 +1000 Subject: [PATCH] Add some codeclimate recommended config Codeclimate automatically generates a configuration and recommends applying it. I have applied some of the options they specify. The only thing I removed was the restriction of rubocop checks which we are currently failing (I'd prefer they fail) and additional languages such as php, python and javascript which had strangely been added to the config. --- .codeclimate.yml | 16 ++++++++++++++++ .rubocop.yml | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 .codeclimate.yml create mode 100644 .rubocop.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..b86b6ea --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,16 @@ +--- +engines: + duplication: + enabled: true + config: + languages: + - ruby + fixme: + enabled: true + rubocop: + enabled: true +ratings: + paths: + - "**.rb" +exclude_paths: +- spec/ diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..c96fa30 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,2 @@ +AllCops: + DisabledByDefault: false