Skip to content

Commit 90d7c1c

Browse files
authored
Update default settings for CodeRabbit tools (#65)
1 parent 3527575 commit 90d7c1c

File tree

5 files changed

+5
-417
lines changed

5 files changed

+5
-417
lines changed

docs/guides/tools/biome.md

+1-162
Original file line numberDiff line numberDiff line change
@@ -29,168 +29,7 @@ Biome supports the following config files:
2929
- `biome.jsonc`
3030
- `biome.json`
3131

32-
CodeRabbit will use the following settings based on the profile selected if no config file is found:
33-
34-
### Chill
35-
36-
```json
37-
{
38-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
39-
"organizeImports": {
40-
"enabled": false
41-
},
42-
"formatter": {
43-
"enabled": false
44-
},
45-
"linter": {
46-
"enabled": true,
47-
"rules": {
48-
"all": false,
49-
"recommended": true,
50-
"a11y": {
51-
"recommended": false
52-
},
53-
"correctness": {
54-
"useExhaustiveDependencies": "off",
55-
"noInnerDeclarations": "off"
56-
},
57-
"style": {
58-
"recommended": false,
59-
"noArguments": "warn",
60-
"noCommaOperator": "warn",
61-
"noUselessElse": "warn",
62-
"useAsConstAssertion": "off",
63-
"useBlockStatements": "off",
64-
"useConsistentArrayType": "off",
65-
"useDefaultParameterLast": "warn",
66-
"useEnumInitializers": "off",
67-
"useExponentiationOperator": "warn",
68-
"useExportType": "off",
69-
"useFragmentSyntax": "off",
70-
"useImportType": "off",
71-
"useLiteralEnumMembers": "warn",
72-
"useShorthandArrayType": "off",
73-
"noUnusedTemplateLiteral": "off"
74-
},
75-
"complexity": {
76-
"noForEach": "off",
77-
"noExcessiveCognitiveComplexity": {
78-
"level": "off",
79-
"options": {
80-
"maxAllowedComplexity": 25
81-
}
82-
},
83-
"useLiteralKeys": "off",
84-
"useArrowFunction": "off",
85-
"useFlatMap": "off"
86-
},
87-
"suspicious": {
88-
"noArrayIndexKey": "off",
89-
"noExplicitAny": "off",
90-
"noImplicitAnyLet": "off",
91-
"noDoubleEquals": "off"
92-
},
93-
"nursery": {
94-
"all": false
95-
}
96-
}
97-
},
98-
"css": {
99-
"linter": {
100-
"enabled": true
101-
},
102-
"parser": {
103-
"cssModules": true
104-
}
105-
},
106-
"javascript": {
107-
"parser": {
108-
"unsafeParameterDecoratorsEnabled": true
109-
}
110-
}
111-
}
112-
```
113-
114-
### Assertive
115-
116-
```json
117-
{
118-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
119-
"organizeImports": {
120-
"enabled": false
121-
},
122-
"formatter": {
123-
"enabled": false
124-
},
125-
"linter": {
126-
"enabled": true,
127-
"rules": {
128-
"all": false,
129-
"recommended": true,
130-
"a11y": {
131-
"recommended": ""
132-
},
133-
"correctness": {
134-
"useExhaustiveDependencies": "off",
135-
"noInnerDeclarations": "warn"
136-
},
137-
"style": {
138-
"recommended": true,
139-
"noArguments": "warn",
140-
"noCommaOperator": "warn",
141-
"noUselessElse": "warn",
142-
"useAsConstAssertion": "off",
143-
"useBlockStatements": "off",
144-
"useConsistentArrayType": "off",
145-
"useDefaultParameterLast": "warn",
146-
"useEnumInitializers": "off",
147-
"useExponentiationOperator": "warn",
148-
"useExportType": "off",
149-
"useFragmentSyntax": "off",
150-
"useImportType": "off",
151-
"useLiteralEnumMembers": "warn",
152-
"useShorthandArrayType": "off",
153-
"noUnusedTemplateLiteral": "off"
154-
},
155-
"complexity": {
156-
"noForEach": "off",
157-
"noExcessiveCognitiveComplexity": {
158-
"level": "warn",
159-
"options": {
160-
"maxAllowedComplexity": 25
161-
}
162-
},
163-
"useLiteralKeys": "off",
164-
"useArrowFunction": "",
165-
"useFlatMap": ""
166-
},
167-
"suspicious": {
168-
"noArrayIndexKey": "",
169-
"noExplicitAny": "",
170-
"noImplicitAnyLet": "",
171-
"noDoubleEquals": ""
172-
},
173-
"nursery": {
174-
"all": false
175-
}
176-
}
177-
},
178-
"css": {
179-
"linter": {
180-
"enabled": true
181-
},
182-
"parser": {
183-
"cssModules": true
184-
}
185-
},
186-
"javascript": {
187-
"parser": {
188-
"unsafeParameterDecoratorsEnabled": true
189-
}
190-
}
191-
}
192-
193-
```
32+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
19433

19534
## Links
19635

docs/guides/tools/markdownlint.md

+1-46
Original file line numberDiff line numberDiff line change
@@ -22,52 +22,7 @@ Markdownlint supports the following config files:
2222
- `.markdownlint.yaml`
2323
- `.markdownlint.yml`
2424

25-
CodeRabbit will use the following settings based on the profile selected if no config file is found:
26-
27-
### Chill
28-
29-
```json
30-
{
31-
"default": true,
32-
"line-length": false,
33-
"no-duplicate-heading": {
34-
"siblings_only": true
35-
},
36-
"no-trailing-punctuation": {
37-
"punctuation": ".,;:"
38-
},
39-
"ol-prefix": false,
40-
"list-marker-space": false,
41-
"no-inline-html": false,
42-
"first-line-h1": false,
43-
"no-trailing-spaces": false,
44-
"single-h1": false,
45-
"blank_lines": false,
46-
}
47-
```
48-
49-
### Assertive
50-
51-
```json
52-
{
53-
"default": true,
54-
"line-length": false,
55-
"no-duplicate-heading": {
56-
"siblings_only": true
57-
},
58-
"no-trailing-punctuation": {
59-
"punctuation": ".,;:"
60-
},
61-
"ol-prefix": true,
62-
"list-marker-space": false,
63-
"no-inline-html": true,
64-
"first-line-h1": true,
65-
"no-trailing-spaces": true,
66-
"single-h1": true,
67-
"blank_lines": true,
68-
}
69-
70-
```
25+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
7126

7227
## Links
7328

docs/guides/tools/ruff.md

+1-101
Original file line numberDiff line numberDiff line change
@@ -20,107 +20,7 @@ Ruff supports the following config files:
2020
- `ruff.toml`
2121
- `.ruff.toml`
2222

23-
CodeRabbit will use the following settings based on the profile selected if no config file is found:
24-
25-
### Chill
26-
27-
```toml
28-
[lint]
29-
select = [
30-
# pycodestyle subset rules
31-
"E7",
32-
"E9",
33-
# Pyflakes
34-
"F",
35-
# flake8-bugbear
36-
"B",
37-
# flake8-simplify
38-
"SIM",
39-
# isort subset rules
40-
"I002",
41-
]
42-
[lint.per-file-ignores]
43-
"**/__init__.py" = ["E402"]
44-
"**/conftest.py" = ["E402"]
45-
```
46-
47-
### Assertive
48-
49-
```toml
50-
[lint]
51-
select = [
52-
# pycodestyle subset rules
53-
"E7",
54-
"E9",
55-
# Pyflakes
56-
"F",
57-
# flake8-bugbear
58-
"B",
59-
# flake8-simplify
60-
"SIM",
61-
# isort subset rules
62-
"I002",
63-
# pycodestyle subset rules
64-
"E4",
65-
"E101",
66-
# mccabe
67-
"C90",
68-
# flake8-annotations
69-
"ANN",
70-
# flake8-async
71-
"ASYNC",
72-
# flake8-trio
73-
"TRIO",
74-
# flake8-bandit
75-
"S",
76-
# flake8-blind-except
77-
"BLE",
78-
# flake8-boolean-trap
79-
"FBT",
80-
# flake8-commas
81-
"COM",
82-
# flake8-comprehensions
83-
"C4",
84-
# flake8-datetimez
85-
"DTZ",
86-
# flake8-debugger
87-
"T10",
88-
# flake8-django
89-
"DJ",
90-
# flake8-executable
91-
"EXE",
92-
# flake8-implicit-str-concat
93-
"ISC",
94-
# flake8-logging
95-
"LOG",
96-
# flake8-logging-format
97-
"G",
98-
# flake8-pie
99-
"PIE",
100-
# flake8-pytest-style
101-
"PT",
102-
# flake8-raise
103-
"RSE",
104-
# flake8-return
105-
"RET",
106-
# flake8-unused-arguments
107-
"ARG",
108-
# tryceratops
109-
"TRY",
110-
# flynt
111-
"FLY",
112-
# Ruff-specific rules
113-
"RUF",
114-
# pyupgrade
115-
"UP",
116-
]
117-
[lint.per-file-ignores]
118-
"**/__init__.py" = ["E402"]
119-
"**/conftest.py" = ["E402"]
120-
"**/*_test.py" = ["S101"]
121-
"**/test_*.py" = ["S101"]
122-
"**/{test,tests}/**/*.py" = ["S101"]
123-
```
23+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
12424

12525
## Links
12626

0 commit comments

Comments
 (0)