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 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' ) ); }