Skip to content

Commit 9f1d977

Browse files
author
Luke Carbis
authored
Merge pull request #896 from bhubbard/codeclimate-support
Codeclimate & Editorconfig support
2 parents 03db164 + 857344b commit 9f1d977

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed

.codeclimate.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
engines:
3+
csslint:
4+
enabled: true
5+
duplication:
6+
enabled: true
7+
config:
8+
languages:
9+
- javascript
10+
- php
11+
fixme:
12+
enabled: true
13+
phpcodesniffer:
14+
enabled: true
15+
config:
16+
standard: "WordPress-Core,WordPress-Docs,WordPress-Extra"
17+
phpmd:
18+
enabled: true
19+
checks:
20+
Controversial/CamelCaseParameterName:
21+
enabled: false
22+
Controversial/CamelCaseMethodName:
23+
enabled: false
24+
Controversial/CamelCasePropertyName:
25+
enabled: false
26+
Controversial/CamelCaseVariableName:
27+
enabled: false
28+
CleanCode/ElseExpression:
29+
enabled: false
30+
eslint:
31+
enabled: true
32+
channel: "eslint-2"
33+
scss-lint:
34+
enabled: true
35+
markdownlint:
36+
enabled: true
37+
ratings:
38+
paths:
39+
- "**.css"
40+
- "**.scss"
41+
- "**.inc"
42+
- "**.js"
43+
- "**.jsx"
44+
- "**.module"
45+
- "**.php"
46+
- "**.md"
47+
- "**.py"
48+
- "**.rb"
49+
exclude_paths:
50+
- "**.png"
51+
- "**.jpg"
52+
- "**.gif"
53+
- "gulpfile.js"
54+
- "composer.lock"
55+
- "phpcs.xml"
56+
- "**.json"
57+
- "**.pot"
58+
- "**.txt"
59+
- "**-min.js"
60+
- "**-min.css"
61+
- "**.min.js"
62+
- "**.min.css"
63+
- "**.dist"
64+
- "**.sh"

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[{.jshintrc,*.json,*.yml}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{*.txt,wp-config-sample.php}]
21+
end_of_line = crlf

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Planes have a black box, WordPress has Stream. When something goes wrong, you ne
1111
**Stable tag:** 3.1.1
1212
**License:** [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
1313

14+
[![Code Climate](https://codeclimate.com/github/xwp/stream/badges/gpa.svg)](https://codeclimate.com/github/xwp/stream)
15+
[![Test Coverage](https://codeclimate.com/github/xwp/stream/badges/coverage.svg)](https://codeclimate.com/github/xwp/stream/coverage)
16+
[![Issue Count](https://codeclimate.com/github/xwp/stream/badges/issue_count.svg)](https://codeclimate.com/github/xwp/stream)
17+
1418
## Description ##
1519

1620
With Stream, you're never left in the dark about WordPress Admin activity.

0 commit comments

Comments
 (0)