@@ -32,8 +32,8 @@ impl RegistryVisitor for LintRulesVisitor {
3232}
3333
3434pub fn generate_rules_configuration ( mode : Mode ) -> Result < ( ) > {
35- let linter_config_root = project_root ( ) . join ( "crates/pg_configuration /src/analyser/linter" ) ;
36- let push_rules_directory = project_root ( ) . join ( "crates/pg_configuration /src/generated" ) ;
35+ let linter_config_root = project_root ( ) . join ( "crates/pglt_configuration /src/analyser/linter" ) ;
36+ let push_rules_directory = project_root ( ) . join ( "crates/pglt_configuration /src/generated" ) ;
3737
3838 let mut lint_visitor = LintRulesVisitor :: default ( ) ;
3939 pglt_analyser:: visit_registry ( & mut lint_visitor) ;
@@ -102,8 +102,8 @@ fn generate_for_groups(
102102
103103 let severity_fn = if kind == RuleCategory :: Action {
104104 quote ! {
105- /// Given a category coming from [Diagnostic](pg_diagnostics ::Diagnostic), this function returns
106- /// the [Severity](pg_diagnostics ::Severity) associated to the rule, if the configuration changed it.
105+ /// Given a category coming from [Diagnostic](pglt_diagnostics ::Diagnostic), this function returns
106+ /// the [Severity](pglt_diagnostics ::Severity) associated to the rule, if the configuration changed it.
107107 /// If the severity is off or not set, then the function returns the default severity of the rule:
108108 /// [Severity::Error] for recommended rules and [Severity::Warning] for other rules.
109109 ///
@@ -133,8 +133,8 @@ fn generate_for_groups(
133133 } else {
134134 quote ! {
135135
136- /// Given a category coming from [Diagnostic](pg_diagnostics ::Diagnostic), this function returns
137- /// the [Severity](pg_diagnostics ::Severity) associated to the rule, if the configuration changed it.
136+ /// Given a category coming from [Diagnostic](pglt_diagnostics ::Diagnostic), this function returns
137+ /// the [Severity](pglt_diagnostics ::Severity) associated to the rule, if the configuration changed it.
138138 /// If the severity is off or not set, then the function returns the default severity of the rule:
139139 /// [Severity::Error] for recommended rules and [Severity::Warning] for other rules.
140140 ///
@@ -173,20 +173,20 @@ fn generate_for_groups(
173173 let use_rule_configuration = if kind == RuleCategory :: Action {
174174 quote ! {
175175 use crate :: analyser:: { RuleAssistConfiguration , RuleAssistPlainConfiguration } ;
176- use pg_analyse :: { options:: RuleOptions , RuleFilter } ;
176+ use pglt_analyse :: { options:: RuleOptions , RuleFilter } ;
177177 }
178178 } else {
179179 quote ! {
180180 use crate :: analyser:: { RuleConfiguration , RulePlainConfiguration } ;
181- use pg_analyse :: { options:: RuleOptions , RuleFilter } ;
181+ use pglt_analyse :: { options:: RuleOptions , RuleFilter } ;
182182 }
183183 } ;
184184
185185 let groups = if kind == RuleCategory :: Action {
186186 quote ! {
187187 #use_rule_configuration
188188 use biome_deserialize_macros:: Merge ;
189- use pg_diagnostics :: { Category , Severity } ;
189+ use pglt_diagnostics :: { Category , Severity } ;
190190 use rustc_hash:: FxHashSet ;
191191 use serde:: { Deserialize , Serialize } ;
192192 #[ cfg( feature = "schema" ) ]
@@ -226,7 +226,7 @@ fn generate_for_groups(
226226 }
227227
228228 impl Actions {
229- /// Checks if the code coming from [pg_diagnostics ::Diagnostic] corresponds to a rule.
229+ /// Checks if the code coming from [pglt_diagnostics ::Diagnostic] corresponds to a rule.
230230 /// Usually the code is built like {group}/{rule_name}
231231 pub fn has_rule(
232232 group: RuleGroup ,
@@ -266,7 +266,7 @@ fn generate_for_groups(
266266 quote ! {
267267 #use_rule_configuration
268268 use biome_deserialize_macros:: Merge ;
269- use pg_diagnostics :: { Category , Severity } ;
269+ use pglt_diagnostics :: { Category , Severity } ;
270270 use rustc_hash:: FxHashSet ;
271271 use serde:: { Deserialize , Serialize } ;
272272 #[ cfg( feature = "schema" ) ]
@@ -314,7 +314,7 @@ fn generate_for_groups(
314314 }
315315
316316 impl Rules {
317- /// Checks if the code coming from [pg_diagnostics ::Diagnostic] corresponds to a rule.
317+ /// Checks if the code coming from [pglt_diagnostics ::Diagnostic] corresponds to a rule.
318318 /// Usually the code is built like {group}/{rule_name}
319319 pub fn has_rule(
320320 group: RuleGroup ,
@@ -380,7 +380,7 @@ fn generate_for_groups(
380380 RuleCategory :: Lint => {
381381 quote ! {
382382 use crate :: analyser:: linter:: * ;
383- use pg_analyse :: { AnalyserRules , MetadataRegistry } ;
383+ use pglt_analyse :: { AnalyserRules , MetadataRegistry } ;
384384
385385 pub fn push_to_analyser_rules(
386386 rules: & Rules ,
@@ -404,7 +404,7 @@ fn generate_for_groups(
404404 RuleCategory :: Action => {
405405 quote ! {
406406 use crate :: analyser:: assists:: * ;
407- use pg_analyse :: { AnalyserRules , MetadataRegistry } ;
407+ use pglt_analyse :: { AnalyserRules , MetadataRegistry } ;
408408
409409 pub fn push_to_analyser_assists(
410410 rules: & Actions ,
@@ -534,7 +534,7 @@ fn generate_group_struct(
534534 #rule
535535 } ) ;
536536 let rule_option_type = quote ! {
537- pg_analyser :: options:: #rule_name
537+ pglt_analyser :: options:: #rule_name
538538 } ;
539539 let rule_option = if kind == RuleCategory :: Action {
540540 quote ! { Option <#rule_config_type<#rule_option_type>> }
0 commit comments