From de2233857661633d7aef99d31b94ea1a9f72fedc Mon Sep 17 00:00:00 2001 From: Brandon Hubbard Date: Fri, 10 Jun 2016 12:18:33 -0700 Subject: [PATCH] CodeClimate Support --- .codeclimate.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 60 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..3dcb626 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,56 @@ +--- +engines: + csslint: + enabled: true + duplication: + enabled: true + config: + languages: + - javascript + - php + fixme: + enabled: true + phpcodesniffer: + enabled: true + config: + standard: "Wordpress" + phpmd: + enabled: true + checks: + Controversial/CamelCaseMethodName: + enabled: false + Controversial/CamelCaseVariableName: + enabled: false + eslint: + enabled: true + channel: "eslint-2" + scss-lint: + enabled: true + markdownlint: + enabled: true +ratings: + paths: + - "**.css" + - "**.scss" + - "**.inc" + - "**.js" + - "**.jsx" + - "**.module" + - "**.php" + - "**.md" + - "**.py" + - "**.rb" +exclude_paths: + - "**.png" + - "**.jpg" + - "**.gif" + - "gulpfile.js" + - "composer.lock" + - "phpcs.xml" + - "**.json" + - "**.pot" + - "**.txt" + - "**-min.js" + - "**-min.css" + - "**.dist" + - "**.sh" diff --git a/README.md b/README.md index bc85753..66032ca 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ # IMPress Listings # + +[![Code Climate](https://codeclimate.com/github/agentevolution/wp-listings/badges/gpa.svg)](https://codeclimate.com/github/agentevolution/wp-listings) +[![Test Coverage](https://codeclimate.com/github/agentevolution/wp-listings/badges/coverage.svg)](https://codeclimate.com/github/agentevolution/wp-listings/coverage) + **Author:** Agent Evolution **Author URL:** http://www.agentevolution.com/