From 3128f11c433f95d81b8a837404849ac2203aee1b Mon Sep 17 00:00:00 2001 From: Angela Evans Date: Fri, 10 Jun 2016 11:01:26 -0700 Subject: [PATCH 1/2] add sortable key to p2p connection type add sortable key to p2p connection type agents_to_listings --- includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index c1063ac..c1d8503 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -32,7 +32,8 @@ function impa_employee_connection_types() { p2p_register_connection_type( array( 'name' => 'agents_to_listings', 'from' => 'employee', - 'to' => 'listing' + 'to' => 'listing', + 'sortable' => 'any' ) ); } From 7050239cfa1f68f4f28ad7a705af0090c0538984 Mon Sep 17 00:00:00 2001 From: Brandon Hubbard Date: Fri, 10 Jun 2016 12:13:08 -0700 Subject: [PATCH 2/2] add config for codeclimate --- .codeclimate.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 5 +++++ 2 files changed, 61 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 f0ea3df..0811880 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ # IMPress Agents # + +[![Code Climate](https://codeclimate.com/github/agentevolution/impress-agents/badges/gpa.svg)](https://codeclimate.com/github/agentevolution/impress-agents) +[![Test Coverage](https://codeclimate.com/github/agentevolution/impress-agents/badges/coverage.svg)](https://codeclimate.com/github/agentevolution/impress-agents/coverage) +[![Issue Count](https://codeclimate.com/github/agentevolution/impress-agents/badges/issue_count.svg)](https://codeclimate.com/github/agentevolution/impress-agents) + Author: Agent Evolution Author URL: http://www.agentevolution.com/ **Contributors:** agentevolution, davebonds, chadajohnson, idxco