ci: update snapshots
MODIFY
crates/rome_cli/tests/snapshots/downgrade_severity.snap
crates/rome_cli/tests/snapshots/downgrade_severity.snap
@@ -11,13 +11,12 @@ expression: content
"rules": {
"recommended": true,
"js": {
- "rules": {
+ "recommended": true,
"noDebugger": "warn"
}
}
}
}
-}
```
## `file.js`

MODIFY
crates/rome_cli/tests/snapshots/should_disable_a_rule.snap
crates/rome_cli/tests/snapshots/should_disable_a_rule.snap
---
source: crates/rome_cli/tests/snap_test.rs
-assertion_line: 107
+assertion_line: 113
expression: content
---
## `rome.json`
@@ -11,13 +11,11 @@ expression: content
"rules": {
"recommended": true,
"js": {
- "rules": {
"noDebugger": "off"
}
}
}
}
-}
```
## `fix.js`

MODIFY
crates/rome_service/src/configuration/linter/rules.rs
crates/rome_service/src/configuration/linter/rules.rs
@@ -32,7 +32,7 @@ impl Default for Rules {
}
}
impl Rules {
- #[doc = r" Checks if the code coming from [rome_diagnostic::Diagnostic] corresponds to a rule."]
+ #[doc = r" Checks if the code coming from [rome_diagnostics::Diagnostic] corresponds to a rule."]
#[doc = r" Usually the code is built like {category}/{rule_name}"]
pub fn matches_diagnostic_code<'a>(
&self,
@@ -50,8 +50,8 @@ impl Rules {
_ => None,
}
}
- #[doc = r" Given a code coming from [Diagnostic](rome_diagnostic::Diagnostic), this function returns"]
- #[doc = r" the [Severity](rome_diagnostic::Severity) associated to the rule, if the configuration changed it."]
+ #[doc = r" Given a code coming from [Diagnostic](rome_diagnostics::Diagnostic), this function returns"]
+ #[doc = r" the [Severity](rome_diagnostics::Severity) associated to the rule, if the configuration changed it."]
#[doc = r""]
#[doc = r" If not, the function returns [None]."]
pub fn get_severity_from_code(&self, code: &str) -> Option<Severity> {

MODIFY
xtask/codegen/src/generate_configuration.rs
xtask/codegen/src/generate_configuration.rs
@@ -225,7 +225,7 @@ pub(crate) fn generate_rules_configuration(mode: Mode) -> Result<()> {
}
impl Rules {
- /// Checks if the code coming from [rome_diagnostic::Diagnostic] corresponds to a rule.
+ /// Checks if the code coming from [rome_diagnostics::Diagnostic] corresponds to a rule.
/// Usually the code is built like {category}/{rule_name}
pub fn matches_diagnostic_code<'a>(
&self,
@@ -242,8 +242,8 @@ pub(crate) fn generate_rules_configuration(mode: Mode) -> Result<()> {
}
}
- /// Given a code coming from [Diagnostic](rome_diagnostic::Diagnostic), this function returns
- /// the [Severity](rome_diagnostic::Severity) associated to the rule, if the configuration changed it.
+ /// Given a code coming from [Diagnostic](rome_diagnostics::Diagnostic), this function returns
+ /// the [Severity](rome_diagnostics::Severity) associated to the rule, if the configuration changed it.
///
/// If not, the function returns [None].
pub fn get_severity_from_code(&self, code: &str) -> Option<Severity> {

ci: update snapshots (#3039)