Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit aec33ef

Browse files
committed
chore(rome_deserialize): use correct category
1 parent 6bd0a69 commit aec33ef

28 files changed

+33
-32
lines changed

crates/rome_cli/tests/snapshots/main_configuration/incorrect_globals.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Found errors in the configuration file, Rome will use its defaults for the secti
3333
```
3434

3535
```block
36-
rome.json:6:17 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
36+
rome.json:6:17 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3737
3838
! Incorrect type, expected a string
3939

crates/rome_cli/tests/snapshots/main_configuration/incorrect_rule_name.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Found errors in the configuration file, Rome will use its defaults for the secti
3838
```
3939

4040
```block
41-
rome.json:6:13 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
41+
rome.json:6:13 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4242
4343
! Found an unknown key `foo_rule`
4444

crates/rome_cli/tests/snapshots/main_configuration/line_width_error.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Found errors in the configuration file, Rome will use its defaults for the secti
3030
```
3131

3232
```block
33-
rome.json:3:18 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
33+
rome.json:3:18 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3434
3535
! The line width exceeds the maximum value (320)
3636

crates/rome_deserialize/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
88
/// Diagnostic emitted during the deserialization
99
#[derive(Debug, Serialize, Clone, Deserialize, Diagnostic)]
1010
#[diagnostic(
11-
category = "configuration",
11+
category = "deserialize",
1212
severity = Error
1313
)]
1414
pub struct DeserializationDiagnostic {

crates/rome_diagnostics_categories/src/categories.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ define_categories! {
165165
// General categories
166166
"files/missingHandler",
167167
"format",
168+
"configuration",
169+
"organizeImports",
170+
"deserialize",
168171
"internalError/io",
169172
"internalError/fs",
170173
"internalError/panic",
@@ -183,7 +186,6 @@ define_categories! {
183186
"lint/security",
184187
"lint/style",
185188
"lint/suspicious",
186-
"lint/configuration",
187189

188190
// Suppression comments
189191
"suppressions/parse",
@@ -192,8 +194,7 @@ define_categories! {
192194
"suppressions/unused",
193195
"suppressions/deprecatedSyntax",
194196

195-
"configuration",
196-
"organizeImports",
197+
197198

198199
// Used in tests and examples
199200
"args/fileNotFound",

crates/rome_js_analyze/tests/specs/nursery/useExhaustiveDependencies/malformedOptions.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ expression: malformedOptions.js
99

1010
# Diagnostics
1111
```
12-
malformedOptions.js:2:5 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
12+
malformedOptions.js:2:5 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1313
1414
× Found an unknown key `hook`
1515

crates/rome_lsp/tests/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ async fn pull_diagnostics_for_rome_json() -> Result<()> {
822822
},
823823
},
824824
severity: Some(lsp::DiagnosticSeverity::ERROR),
825-
code: Some(lsp::NumberOrString::String(String::from("configuration",))),
825+
code: Some(lsp::NumberOrString::String(String::from("deserialize",))),
826826
code_description: None,
827827
source: Some(String::from("rome")),
828828
message: String::from("Found an unknown value `magic`",),

crates/rome_service/tests/invalid/files_extraneous_field.json.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
source: crates/rome_service/tests/spec_tests.rs
33
expression: files_extraneous_field.json
44
---
5-
files_extraneous_field.json:3:3 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5+
files_extraneous_field.json:3:3 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
66

77
× Found an unknown key `foo`
88

crates/rome_service/tests/invalid/files_ignore_incorrect_type.json.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
source: crates/rome_service/tests/spec_tests.rs
33
expression: files_ignore_incorrect_type.json
44
---
5-
files_ignore_incorrect_type.json:3:13 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5+
files_ignore_incorrect_type.json:3:13 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
66

77
× The value of key ignore is incorrect. Expected array
88

crates/rome_service/tests/invalid/files_ignore_incorrect_value.json.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
source: crates/rome_service/tests/spec_tests.rs
33
expression: files_ignore_incorrect_value.json
44
---
5-
files_ignore_incorrect_value.json:3:25 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5+
files_ignore_incorrect_value.json:3:25 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
66

77
× Incorrect type, expected a string
88

0 commit comments

Comments
 (0)