-
Notifications
You must be signed in to change notification settings - Fork 5
/
.codeclimate.yml
46 lines (44 loc) · 1.7 KB
/
.codeclimate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
version: 2
exclude_patterns:
- ".venv/"
# These are auto-generated by querybuilder/Apollo codegen, ignore them.
- "frontend/lib/queries/*"
# These are auto-generated by Django, ignore them.
- "**/migrations/*"
# These are auto-generated by commondatabuilder, ignore them.
- "common-data/*-choices.ts"
# CodeClimate suggests excluding test files
- "**/tests"
checks:
similar-code:
# This setting is confusing, I wanted to configure it to
# only complain if 3 or more instances of similar code is
# found (it defaults to 2), but changing the threshold to
# 3 made it even *more* sensitive, so I'm just disabling
# it entirely now.
enabled: false
argument-count:
# This isn't a very useful check for Python code because
# it's perfectly fine to have functions that take lots
# of arguments, as long as most of them are passed as kwargs.
enabled: false
method-lines:
# This isn't a very useful check for JSX code because
# splitting up JSX into multiple 25-line functions often
# makes the code *harder* to read, not easier. That said,
# the default threshold of 25 lines is reasonable for
# non-JSX code, but it doesn't seem possible to change
# the threshold on a per-language basis here.
enabled: false
return-statements:
# This isn't a very useful check for Python code because
# it's mostly personal preference - sometimes it's better
# to have lots of return statements than a lot of
# nested ifs.
enabled: false
file-lines:
# Many of our typescript files are actually longer than the
# 250 lines CodeClimate recommends; this unfairly penalizes
# newer files and isn't that helpful anyway.
enabled: false