Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2bbe6b4

Browse files
committedJul 17, 2024··
Update default settings for CodeRabbit tools
1 parent 3527575 commit 2bbe6b4

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

‎docs/guides/tools/swiftlint.md

+1-90
Original file line numberDiff line numberDiff line change
@@ -20,96 +20,7 @@ Ruff supports the following config files:
2020
- `.swiftlint.yaml`
2121
- `.swiftlint.yml`
2222

23-
CodeRabbit will use the following settings if no config file is found:
24-
25-
```yaml
26-
disabled_rules:
27-
- closure_body_length
28-
- cyclomatic_complexity
29-
- enum_case_associated_values_count
30-
- file_length
31-
- function_body_length
32-
- function_parameter_count
33-
- large_tuple
34-
- line_length
35-
- nesting
36-
- type_body_length
37-
- attributes
38-
- closing_brace
39-
- closure_end_indentation
40-
- closure_parameter_position
41-
- closure_spacing
42-
- collection_alignment
43-
- colon
44-
- comma
45-
- comma_inheritance
46-
- computed_accessors_order
47-
- conditional_returns_on_newline
48-
- control_statement
49-
- custom_rules
50-
- direct_return
51-
- empty_enum_arguments
52-
- empty_parameters
53-
- empty_parentheses_with_trailing_closure
54-
- explicit_self
55-
- file_header
56-
- file_types_order
57-
- identifier_name
58-
- implicit_getter
59-
- implicit_return
60-
- inclusive_language
61-
- indentation_width
62-
- leading_whitespace
63-
- let_var_whitespace
64-
- literal_expression_end_indentation
65-
- modifier_order
66-
- multiline_arguments
67-
- multiline_arguments_brackets
68-
- multiline_function_chains
69-
- multiline_literal_brackets
70-
- multiline_parameters
71-
- multiline_parameters_brackets
72-
- multiple_closures_with_trailing_closure
73-
- no_space_in_method_call
74-
- non_overridable_class_declaration
75-
- number_separator
76-
- opening_brace
77-
- operator_usage_whitespace
78-
- operator_whitespace
79-
- optional_enum_case_matching
80-
- period_spacing
81-
- prefer_self_in_static_references
82-
- prefer_self_type_over_type_of_self
83-
- prefixed_toplevel_constant
84-
- protocol_property_accessors_order
85-
- redundant_discardable_let
86-
- redundant_self_in_closure
87-
- return_arrow_whitespace
88-
- self_binding
89-
- shorthand_argument
90-
- shorthand_operator
91-
- single_test_class
92-
- sorted_enum_cases
93-
- sorted_imports
94-
- statement_position
95-
- superfluous_else
96-
- switch_case_alignment
97-
- switch_case_on_newline
98-
- trailing_closure
99-
- trailing_comma
100-
- trailing_newline
101-
- trailing_whitespace
102-
- type_contents_order
103-
- unneeded_parentheses_in_closure_argument
104-
- unused_optional_binding
105-
- vertical_parameter_alignment
106-
- vertical_parameter_alignment_on_call
107-
- vertical_whitespace
108-
- vertical_whitespace_between_cases
109-
- vertical_whitespace_closing_braces
110-
- vertical_whitespace_opening_braces
111-
- void_return
112-
```
23+
CodeRabbit will use the default settings if no config file is found.
11324

11425
## Links
11526

‎docs/guides/tools/yamllint.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,7 @@ Yamllint supports the following config files:
2121
- `.yamllint.yaml`
2222
- `.yamllint.yml`
2323

24-
CodeRabbit will use the following settings based on the profile selected if no config file is found:
25-
26-
### Chill
27-
28-
```yaml
29-
extends: relaxed
30-
rules:
31-
line-length: disable
32-
```
33-
34-
### Assertive
35-
36-
```yaml
37-
extends: default
38-
rules:
39-
line-length: disable
40-
document-start: disable
41-
```
24+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
4225

4326
## Links
4427

0 commit comments

Comments
 (0)
Please sign in to comment.