repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/utils.rs
crates/biome_css_analyze/src/utils.rs
use crate::keywords::{ A_NPLUS_BNOTATION_PSEUDO_CLASSES, A_NPLUS_BOF_SNOTATION_PSEUDO_CLASSES, AT_RULE_PAGE_PSEUDO_CLASSES, CSS_MODULE_PSEUDO_CLASSES, HTML_TAGS, KNOWN_CHROME_PROPERTIES, KNOWN_EDGE_PROPERTIES, KNOWN_EXPLORER_PROPERTIES, KNOWN_FIREFOX_PROPERTIES, KNOWN_PROPERTIES, KNOWN_SAFARI_PROPERTIES...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/registry.rs
crates/biome_css_analyze/src/registry.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::RegistryVisitor; use biome_css_syntax::CssLanguage; pub fn visit_registry<V: RegistryVisitor<CssLanguage>>(registry: &mut V) { registry.record_category::<crate::assist::Assi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/services/semantic.rs
crates/biome_css_analyze/src/services/semantic.rs
use biome_analyze::{ AddVisitor, FromServices, Phase, Phases, QueryKey, Queryable, RuleKey, RuleMetadata, ServiceBag, ServicesDiagnostic, SyntaxVisitor, }; use biome_css_semantic::model::SemanticModel; use biome_css_syntax::{CssLanguage, CssRoot, CssSyntaxNode}; use biome_rowan::AstNode; pub struct SemanticSer...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/services/mod.rs
crates/biome_css_analyze/src/services/mod.rs
pub mod semantic;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/complexity.rs
crates/biome_css_analyze/src/lint/complexity.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod no_important_styles; declare_lint_group! { pub Complexity { name : "complexity" , rules : [self :: no_important_styles :: NoImportantStyles ,] } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/a11y.rs
crates/biome_css_analyze/src/lint/a11y.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod use_generic_font_names; declare_lint_group! { pub A11y { name : "a11y" , rules : [self :: use_generic_font_names :: UseGenericFontNames ,] } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness.rs
crates/biome_css_analyze/src/lint/correctness.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod no_invalid_direction_in_linear_gradient; pub mod no_invalid_grid_areas; pub mod no_invalid_position_at_import_rule; pub mod no_missing_var_function; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/style.rs
crates/biome_css_analyze/src/lint/style.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod no_descending_specificity; pub mod no_value_at_rule; declare_lint_group! { pub Style { name : "style" , rules : [self :: no_descending_specificity ::...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/nursery.rs
crates/biome_css_analyze/src/lint/nursery.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod no_empty_source; declare_lint_group! { pub Nursery { name : "nursery" , rules : [self :: no_empty_source :: NoEmptySource ,] } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious.rs
crates/biome_css_analyze/src/lint/suspicious.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_lint_group; pub mod no_duplicate_at_import_rules; pub mod no_duplicate_custom_properties; pub mod no_duplicate_font_names; pub mod no_duplicate_properties; pub mod no_du...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/a11y/use_generic_font_names.rs
crates/biome_css_analyze/src/lint/a11y/use_generic_font_names.rs
use crate::fonts::{ CssFontValue, find_font_family, is_font_family_keyword, is_system_family_name_keyword, }; use crate::utils::is_css_variable; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{ AnyCssAt...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_duplicate_font_names.rs
crates/biome_css_analyze/src/lint/suspicious/no_duplicate_font_names.rs
use crate::fonts::{CssFontValue, find_font_family, is_font_family_keyword}; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::CssGenericProperty; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biom...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_irregular_whitespace.rs
crates/biome_css_analyze/src/lint/suspicious/no_irregular_whitespace.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{AnyCssRule, CssLanguage}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, Direction, SyntaxToken, TextRange}; use biome_rule_options::no_irregular_whi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_duplicate_at_import_rules.rs
crates/biome_css_analyze/src/lint/suspicious/no_duplicate_at_import_rules.rs
use std::collections::{HashMap, HashSet}; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{AnyCssAtRule, AnyCssRule, CssImportAtRule, CssRuleList}; use biome_diagnostics::Severity; use biome_rowan::AstNode; use...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_unknown_at_rules.rs
crates/biome_css_analyze/src/lint/suspicious/no_unknown_at_rules.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{CssUnknownBlockAtRule, CssUnknownValueAtRule}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange, declare_node_union}; use biome_rule_options:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_duplicate_selectors_keyframe_block.rs
crates/biome_css_analyze/src/lint/suspicious/no_duplicate_selectors_keyframe_block.rs
use std::collections::HashSet; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{AnyCssKeyframesItem, AnyCssKeyframesSelector, CssKeyframesBlock}; use biome_diagnostics::Severity; use biome_rowan::AstNode; use b...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_important_in_keyframe.rs
crates/biome_css_analyze/src/lint/suspicious/no_important_in_keyframe.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{ AnyCssDeclarationBlock, AnyCssKeyframesItem, CssDeclarationImportant, CssKeyframesBlock, }; use biome_diagnostics::Severity; use biome_rowan::AstNode; use bi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_useless_escape_in_string.rs
crates/biome_css_analyze/src/lint/suspicious/no_useless_escape_in_string.rs
use biome_analyze::{Ast, FixKind, Rule, RuleDiagnostic, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_syntax::{CssString, CssSyntaxToken}; use biome_diagnostics::Severity; use biome_rowan::{BatchMutationExt, TextRange}; use biome_rule_options::no_useless_escape_in_string::NoUselessE...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_duplicate_properties.rs
crates/biome_css_analyze/src/lint/suspicious/no_duplicate_properties.rs
use biome_analyze::{Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_syntax::{CssDeclarationOrRuleList, CssKeyframesAtRule}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange}; use biome_rule_options::no_duplicate_properties::NoDupl...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_duplicate_custom_properties.rs
crates/biome_css_analyze/src/lint/suspicious/no_duplicate_custom_properties.rs
use crate::services::semantic::Semantic; use biome_analyze::{Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_syntax::CssDeclarationOrRuleList; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange}; use biome_rule_options::no_duplicate...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_empty_block.rs
crates/biome_css_analyze/src/lint/suspicious/no_empty_block.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::stmt_ext::CssBlockLike; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biome_rule_options::no_empty_block::NoEmptyBlockOptions; declare_lint_rule!...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs
crates/biome_css_analyze/src/lint/suspicious/no_shorthand_property_overrides.rs
use crate::utils::{get_longhand_sub_properties, get_reset_to_initial_properties, vender_prefix}; use biome_analyze::{ AddVisitor, Phases, QueryMatch, Queryable, Rule, RuleDiagnostic, RuleSource, ServiceBag, Visitor, VisitorContext, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/style/no_value_at_rule.rs
crates/biome_css_analyze/src/lint/style/no_value_at_rule.rs
use biome_analyze::{Ast, Rule, RuleDiagnostic, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_syntax::CssAtRule; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biome_rule_options::no_value_at_rule::NoValueAtRuleOptions; declare_lint_rule! { /// Disallow use of `@...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/style/no_descending_specificity.rs
crates/biome_css_analyze/src/lint/style/no_descending_specificity.rs
use rustc_hash::{FxHashMap, FxHashSet}; use biome_analyze::{Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_semantic::model::{Rule as CssSemanticRule, RuleId, SemanticModel, Specificity}; use biome_css_syntax::{AnyCssSelector, CssRoot}; use biome_dia...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/complexity/no_important_styles.rs
crates/biome_css_analyze/src/lint/complexity/no_important_styles.rs
use crate::CssRuleAction; use biome_analyze::context::RuleContext; use biome_analyze::{Ast, FixKind, Rule, RuleDiagnostic, RuleSource, declare_lint_rule}; use biome_console::markup; use biome_css_factory::make::css_declaration; use biome_css_syntax::{CssDeclaration, CssDeclarationImportant}; use biome_diagnostics::Seve...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_pseudo_element.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_pseudo_element.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{AnyCssPseudoElement, CssPseudoElementSelector}; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biome_rule_options::no_unknown_pseudo_element::NoUn...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_pseudo_class.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_pseudo_class.rs
use crate::{ keywords::{WEBKIT_SCROLLBAR_PSEUDO_CLASSES, WEBKIT_SCROLLBAR_PSEUDO_ELEMENTS}, utils::{ is_css_module_pseudo_class, is_custom_selector, is_known_pseudo_class, is_page_pseudo_class, vendor_prefixed, }, }; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::Ru...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_unit.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_unit.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{ AnyCssDimension, CssFunction, CssGenericProperty, CssQueryFeaturePlain, CssSyntaxKind, }; use biome_diagnostics::Severity; use biome_rowan::{SyntaxNodeCast, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_function.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_function.rs
use crate::fonts::is_function_keyword; use crate::utils::is_custom_function; use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::CssFunction; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange}; u...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_invalid_grid_areas.rs
crates/biome_css_analyze/src/lint/correctness/no_invalid_grid_areas.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::CssDeclarationOrRuleList; use biome_diagnostics::Severity; use biome_rowan::{TextRange, TokenText}; use biome_rule_options::no_invalid_grid_areas::NoInvalidGridAre...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_type_selector.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_type_selector.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{CssPseudoElementFunctionSelector, CssTypeSelector}; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biome_rule_options::no_unknown_type_selector::N...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_property.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_property.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{CssGenericProperty, TwPluginAtRule}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange}; use biome_rule_options::no_unknown_property::NoUnknow...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unmatchable_anb_selector.rs
crates/biome_css_analyze/src/lint/correctness/no_unmatchable_anb_selector.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{ AnyCssPseudoClassNth, CssPseudoClassFunctionSelectorList, CssPseudoClassNthSelector, }; use biome_diagnostics::Severity; use biome_rowan::{AstNode, SyntaxNod...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_invalid_position_at_import_rule.rs
crates/biome_css_analyze/src/lint/correctness/no_invalid_position_at_import_rule.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{AnyCssRule, CssRuleList}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, TextRange}; use biome_rule_options::no_invalid_position_at_import_rule::NoIn...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_unknown_media_feature_name.rs
crates/biome_css_analyze/src/lint/correctness/no_unknown_media_feature_name.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{ AnyCssMediaAndCombinableCondition, AnyCssMediaCondition, AnyCssMediaInParens, AnyCssMediaOrCombinableCondition, AnyCssMediaQuery, AnyCssMediaTypeConditio...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_invalid_direction_in_linear_gradient.rs
crates/biome_css_analyze/src/lint/correctness/no_invalid_direction_in_linear_gradient.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::{CssFunction, CssParameter}; use biome_diagnostics::Severity; use biome_rowan::AstNode; use biome_rowan::AstSeparatedList; use biome_rule_options::no_invalid_direc...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/correctness/no_missing_var_function.rs
crates/biome_css_analyze/src/lint/correctness/no_missing_var_function.rs
use biome_analyze::{Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule}; use biome_console::markup; use biome_css_syntax::{AnyCssProperty, CssDashedIdentifier, CssDeclaration, CssSyntaxKind}; use biome_diagnostics::Severity; use biome_rowan::{AstNode, Text}; use biome_rule_options::no_missing_var...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/lint/nursery/no_empty_source.rs
crates/biome_css_analyze/src/lint/nursery/no_empty_source.rs
use biome_analyze::{ Ast, Rule, RuleDiagnostic, RuleSource, context::RuleContext, declare_lint_rule, }; use biome_console::markup; use biome_css_syntax::CssRoot; use biome_rowan::{AstNode, AstNodeList}; use biome_rule_options::no_empty_source::NoEmptySourceOptions; declare_lint_rule! { /// Disallow empty sourc...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/assist/source.rs
crates/biome_css_analyze/src/assist/source.rs
//! Generated file, do not edit by hand, see `xtask/codegen` //! Generated file, do not edit by hand, see `xtask/codegen` use biome_analyze::declare_assist_group; pub mod use_sorted_properties; declare_assist_group! { pub Source { name : "source" , rules : [self :: use_sorted_properties :: UseSortedProperties ,] } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/src/assist/source/use_sorted_properties.rs
crates/biome_css_analyze/src/assist/source/use_sorted_properties.rs
use crate::{ CssRuleAction, keywords::VENDOR_PREFIXES, order::PROPERTY_ORDER_MAP, utils::{get_longhand_sub_properties, get_reset_to_initial_properties, vender_prefix}, }; use biome_analyze::{ Ast, FixKind, Rule, RuleDiagnostic, context::RuleContext, declare_source_rule, }; use biome_console::markup;...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/tests/quick_test.rs
crates/biome_css_analyze/tests/quick_test.rs
use biome_analyze::{AnalysisFilter, AnalyzerOptions, ControlFlow, Never, RuleFilter}; use biome_css_parser::{CssParserOptions, parse_css}; use biome_css_syntax::{CssFileSource, TextRange}; use biome_diagnostics::{Diagnostic, DiagnosticExt, Severity, print_diagnostic_to_string}; use std::slice; use biome_css_analyze::{...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/tests/spec_tests.rs
crates/biome_css_analyze/tests/spec_tests.rs
use biome_analyze::{ AnalysisFilter, AnalyzerAction, AnalyzerPluginSlice, ControlFlow, Never, RuleFilter, }; use biome_css_analyze::CssAnalyzerServices; use biome_css_parser::{CssParserOptions, parse_css}; use biome_css_semantic::semantic_model; use biome_css_syntax::{CssFileSource, CssLanguage}; use biome_diagnost...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_analyze/benches/css_analyzer.rs
crates/biome_css_analyze/benches/css_analyzer.rs
use biome_analyze::options::JsxRuntime; use biome_analyze::{ AnalysisFilter, AnalyzerConfiguration, AnalyzerOptions, ControlFlow, Never, RuleCategoriesBuilder, }; use biome_css_parser::CssParserOptions; use biome_css_syntax::CssFileSource; use biome_test_utils::BenchCase; use criterion::{BenchmarkId, Criterion,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/suppressions.rs
crates/biome_analyze/src/suppressions.rs
use std::cmp::Ordering; use crate::{ AnalyzerSuppression, AnalyzerSuppressionDiagnostic, AnalyzerSuppressionKind, AnalyzerSuppressionVariant, MetadataRegistry, RuleCategories, RuleCategory, RuleFilter, RuleKey, }; use biome_console::markup; use biome_diagnostics::category; use biome_rowan::TextRange; use r...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/diagnostics.rs
crates/biome_analyze/src/diagnostics.rs
use crate::rule::RuleDiagnostic; use biome_console::{MarkupBuf, markup}; use biome_diagnostics::{ Advices, Category, Diagnostic, DiagnosticExt, DiagnosticTags, Error, Location, LogCategory, MessageAndDescription, Severity, Visit, advice::CodeSuggestionAdvice, category, }; use biome_rowan::{TextRange, TextSize};...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/analyzer_plugin.rs
crates/biome_analyze/src/analyzer_plugin.rs
use camino::Utf8PathBuf; use rustc_hash::FxHashSet; use std::hash::Hash; use std::{fmt::Debug, sync::Arc}; use biome_rowan::{AnySyntaxNode, Language, RawSyntaxKind, SyntaxKind, SyntaxNode, WalkEvent}; use crate::matcher::SignalRuleKey; use crate::{DiagnosticSignal, RuleCategory, RuleDiagnostic, SignalEntry, Visitor, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/visitor.rs
crates/biome_analyze/src/visitor.rs
use crate::{ AnalyzerOptions, LanguageRoot, QueryMatch, QueryMatcher, ServiceBag, SignalEntry, SuppressionAction, matcher::{MatchQueryParams, Query}, registry::{NodeLanguage, Phases}, }; use biome_rowan::{AstNode, Language, SyntaxNode, TextRange, WalkEvent}; use std::collections::BinaryHeap; /// Mutabl...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/services.rs
crates/biome_analyze/src/services.rs
use crate::{RuleKey, RuleMetadata}; use biome_console::markup; use biome_diagnostics::{Diagnostic, MessageAndDescription, Result}; use rustc_hash::FxHashMap; use std::any::{Any, TypeId}; #[derive(Debug, Diagnostic)] #[diagnostic(category = "internalError/io", tags(INTERNAL))] pub struct ServicesDiagnostic { #[mess...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/lib.rs
crates/biome_analyze/src/lib.rs
#![deny(clippy::use_self, rustdoc::broken_intra_doc_links)] use biome_console::markup; use rustc_hash::FxHashSet; use std::collections::{BTreeMap, BinaryHeap}; use std::fmt::{Debug, Display, Formatter}; use std::ops; use std::str::FromStr; mod analyzer_plugin; mod categories; pub mod context; mod diagnostics; mod mat...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/categories.rs
crates/biome_analyze/src/categories.rs
use enumflags2::{BitFlags, bitflags}; use std::borrow::Cow; use std::fmt::{Debug, Display, Formatter}; use std::str::FromStr; #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)] #[cfg_attr( feature = "serde", derive(serde::Serialize, serde::Deserialize), serde(rename_all = "camelCase") )] #[cfg_attr(feature...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/suppression_action.rs
crates/biome_analyze/src/suppression_action.rs
use crate::SuppressionCommentEmitterPayload; use biome_rowan::{ BatchMutation, Language, SyntaxToken, TextLen, TextRange, TokenAtOffset, TriviaPiece, TriviaPieceKind, }; pub trait SuppressionAction { type Language: Language; fn inline_suppression(&self, payload: SuppressionCommentEmitterPayload<Self::...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/syntax.rs
crates/biome_analyze/src/syntax.rs
use biome_rowan::{AstNode, Language, SyntaxNode, WalkEvent}; use crate::{ AddVisitor, Phases, QueryKey, QueryMatch, Queryable, ServiceBag, Visitor, VisitorContext, registry::NodeLanguage, }; /// Query type usable by lint rules to match on specific [AstNode] types #[derive(Clone)] pub struct Ast<N>(pub N); im...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/utils.rs
crates/biome_analyze/src/utils.rs
use biome_rowan::{ AstNode, AstSeparatedElement, AstSeparatedList, Language, SyntaxError, SyntaxNode, SyntaxToken, chain_trivia_pieces, trim_trailing_trivia_pieces, }; use std::cmp::Ordering; /// Returns `true` if `list` is sorted by `get_key`. /// The function returns an error if we encounter a buggy node or ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/registry.rs
crates/biome_analyze/src/registry.rs
use crate::{ AddVisitor, AnalysisFilter, GroupCategory, QueryMatcher, Rule, RuleGroup, RuleKey, RuleMetadata, ServiceBag, SignalEntry, Visitor, context::RuleContext, matcher::{GroupKey, MatchQueryParams}, query::{QueryKey, Queryable}, signals::RuleSignal, }; use biome_diagnostics::Error; use bio...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/options.rs
crates/biome_analyze/src/options.rs
use camino::Utf8PathBuf; use rustc_hash::FxHashMap; use crate::{FixKind, Rule, RuleKey}; use std::any::{Any, TypeId}; use std::borrow::Cow; use std::sync::Arc; /// A convenient new type data structure to store the options that belong to a rule #[derive(Debug)] pub struct RuleOptions(TypeId, Box<dyn Any>, Option<FixKi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/query.rs
crates/biome_analyze/src/query.rs
use std::any::TypeId; use biome_rowan::{Language, SyntaxKindSet, TextRange}; use crate::{Phases, ServiceBag, Visitor, registry::Phase, services::FromServices}; /// Trait implemented for types that lint rules can query in order to emit diagnostics or code actions. pub trait Queryable: Sized { type Input: QueryMat...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/matcher.rs
crates/biome_analyze/src/matcher.rs
use crate::{ AnalyzerOptions, AnalyzerSignal, Phases, QueryMatch, Rule, RuleCategory, RuleFilter, RuleGroup, ServiceBag, SuppressionAction, }; use biome_rowan::{Language, TextRange}; use std::fmt::Display; use std::{ any::{Any, TypeId}, cmp::Ordering, collections::BinaryHeap, }; /// The [QueryMatch...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/context.rs
crates/biome_analyze/src/context.rs
use crate::options::{JsxRuntime, PreferredIndentation, PreferredQuote}; use crate::{FromServices, Queryable, Rule, RuleKey, ServiceBag, registry::RuleRoot}; use crate::{GroupCategory, RuleCategory, RuleGroup, RuleMetadata}; use biome_diagnostics::{Error, Result}; use camino::Utf8Path; use std::ops::Deref; type RuleQue...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/rule.rs
crates/biome_analyze/src/rule.rs
use crate::categories::{ActionCategory, RuleCategory}; use crate::context::RuleContext; use crate::registry::{RegistryVisitor, RuleLanguage, RuleSuppressions}; use crate::{ Phase, Phases, Queryable, SourceActionKind, SuppressionAction, SuppressionCommentEmitterPayload, }; use biome_console::fmt::{Display, Formatter...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_analyze/src/signals.rs
crates/biome_analyze/src/signals.rs
use crate::categories::{ SUPPRESSION_INLINE_ACTION_CATEGORY, SUPPRESSION_TOP_LEVEL_ACTION_CATEGORY, }; use crate::{ AnalyzerDiagnostic, AnalyzerOptions, OtherActionCategory, Queryable, RuleGroup, ServiceBag, SuppressionAction, categories::ActionCategory, context::RuleContext, registry::{RuleLang...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_suppression/src/lib.rs
crates/biome_suppression/src/lib.rs
#![deny(clippy::use_self)] use biome_console::fmt::Formatter; use biome_console::markup; use biome_diagnostics::{Category, Diagnostic, Location, LogCategory, Severity, Visit, category}; use biome_rowan::{TextLen, TextRange, TextSize}; use std::ops::Add; /// Single instance of a suppression comment, with the following...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_wasm/build.rs
crates/biome_wasm/build.rs
use biome_js_factory::syntax::JsFileSource; use biome_js_factory::{ make, syntax::{AnyJsDeclaration, AnyJsModuleItem, AnyJsStatement}, }; use biome_js_formatter::{context::JsFormatOptions, format_node}; use biome_rowan::AstNode; use biome_service::workspace_types::{ModuleQueue, generate_type, methods}; use quot...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_wasm/src/lib.rs
crates/biome_wasm/src/lib.rs
#![deny(clippy::use_self)] use js_sys::Error; use wasm_bindgen::prelude::*; use biome_service::workspace::{ self, ChangeFileParams, CloseFileParams, FileExitsParams, FixFileParams, FormatFileParams, FormatOnTypeParams, FormatRangeParams, GetControlFlowGraphParams, GetFileContentParams, GetFormatterIRParam...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_wasm/src/utils.rs
crates/biome_wasm/src/utils.rs
use std::fmt::Display; use js_sys::Error; use wasm_bindgen::prelude::*; use biome_console::fmt::HTML; use biome_console::{fmt::Formatter, markup}; use biome_diagnostics::serde::Diagnostic; use biome_diagnostics::{DiagnosticExt, LineIndexBuf, PrintDiagnostic, SourceCode}; // IDiagnostic is generated by build.rs use s...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_wasm/tests/web.rs
crates/biome_wasm/tests/web.rs
//! Test suite for the Web and headless browsers. #![cfg(target_arch = "wasm32")] extern crate wasm_bindgen_test; use wasm_bindgen_test::*; wasm_bindgen_test_configure!(run_in_browser); #[wasm_bindgen_test] fn pass() { assert_eq!(1 + 1, 2); }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/lib.rs
crates/biome_json_syntax/src/lib.rs
#![deny(clippy::use_self)] #[macro_use] mod generated; mod file_source; pub mod member_ext; pub mod object_ext; pub mod string_ext; mod syntax_node; pub use self::generated::*; pub use biome_rowan::{TextLen, TextRange, TextSize, TokenAtOffset, TriviaPieceKind, WalkEvent}; pub use file_source::{JsonFileSource, JsonFil...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/syntax_node.rs
crates/biome_json_syntax/src/syntax_node.rs
//! This module defines the Concrete Syntax Tree used by Biome. //! //! The tree is entirely lossless, whitespace, comments, and errors are preserved. //! It also provides traversal methods including parent, children, and siblings of nodes. //! //! This is a simple wrapper around the `rowan` crate which does most of th...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/file_source.rs
crates/biome_json_syntax/src/file_source.rs
use biome_rowan::FileSourceError; use biome_string_case::StrLikeExtension; use camino::Utf8Path; use core::str; use std::fmt::{Display, Formatter}; use std::str::FromStr; #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[derive( Debug, Clone, Default, Copy, Eq, PartialEq, Hash, serde::Serialize, serd...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/member_ext.rs
crates/biome_json_syntax/src/member_ext.rs
use crate::{AnyJsonValue, JsonMember, JsonMemberName, JsonSyntaxToken, inner_string_text}; use biome_rowan::{AstNode, AstSeparatedList, SyntaxResult, TokenText}; impl JsonMemberName { pub fn inner_string_text(&self) -> SyntaxResult<TokenText> { Ok(inner_string_text(&self.value_token()?)) } } impl Json...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/string_ext.rs
crates/biome_json_syntax/src/string_ext.rs
use crate::{JsonStringValue, inner_string_text}; use biome_rowan::{SyntaxResult, TokenText}; impl JsonStringValue { pub fn inner_string_text(&self) -> SyntaxResult<TokenText> { Ok(inner_string_text(&self.value_token()?)) } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/object_ext.rs
crates/biome_json_syntax/src/object_ext.rs
use crate::{JsonMember, JsonMemberList, JsonObjectValue}; use biome_rowan::{AstNode, AstSeparatedList}; impl JsonObjectValue { pub fn find_member(&self, name: &str) -> Option<JsonMember> { self.json_member_list().find_member(name) } pub fn with_json_member_list(self, list: JsonMemberList) -> Self ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/generated.rs
crates/biome_json_syntax/src/generated.rs
#[rustfmt::skip] pub(super) mod nodes; #[rustfmt::skip] pub mod macros; #[macro_use] pub mod kind; pub use kind::*; pub use nodes::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/generated/nodes_mut.rs
crates/biome_json_syntax/src/generated/nodes_mut.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::{JsonSyntaxToken as SyntaxToken, generated::nodes::*}; use biome_rowan::AstNode; use std::iter::once; impl JsonArrayValue { pub fn with_l_brack_token(self, element: SyntaxToken) -> Self { Self::unwrap_cast( self.syntax ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/generated/kind.rs
crates/biome_json_syntax/src/generated/kind.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(bad_style, missing_docs, unreachable_pub)] #[doc = r" The kind of syntax node, e.g. `IDENT`, `FUNCTION_KW`, or `FOR_STMT`."] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] #[repr(u16)] pub enum JsonSyntaxKind { #[doc(hidden)...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/generated/macros.rs
crates/biome_json_syntax/src/generated/macros.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #[doc = r" Reconstruct an AstNode from a SyntaxNode"] #[doc = r""] #[doc = r" This macros performs a match over the [kind](biome_rowan::SyntaxNode::kind)"] #[doc = r" of the provided [biome_rowan::SyntaxNode] and constructs the appropriate"] #[doc = r" AstNo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_syntax/src/generated/nodes.rs
crates/biome_json_syntax/src/generated/nodes.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(dead_code)] #![allow(unused)] use crate::{ JsonLanguage as Language, JsonSyntaxElement as SyntaxElement, JsonSyntaxElementChildren as SyntaxElementChildren, JsonSyntaxKind::{self as SyntaxKind, *}, JsonSyntaxList as SyntaxList, JsonS...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_yaml_factory/src/lib.rs
crates/biome_yaml_factory/src/lib.rs
#![deny(clippy::use_self)] use biome_rowan::TreeBuilder; use biome_yaml_syntax::YamlLanguage; mod generated; pub mod make; pub use crate::generated::YamlSyntaxFactory; // Re-exported for tests #[doc(hidden)] pub use biome_yaml_syntax as syntax; pub type YamlSyntaxTreeBuilder = TreeBuilder<'static, YamlLanguage, Yam...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_yaml_factory/src/make.rs
crates/biome_yaml_factory/src/make.rs
pub use crate::generated::node_factory::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_yaml_factory/src/generated.rs
crates/biome_yaml_factory/src/generated.rs
#[rustfmt::skip] pub(super) mod syntax_factory; #[rustfmt::skip] pub mod node_factory; pub use syntax_factory::YamlSyntaxFactory;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_yaml_factory/src/generated/syntax_factory.rs
crates/biome_yaml_factory/src/generated/syntax_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(unused_mut)] use biome_rowan::{ AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind, }; use biome_yaml_syntax::{T, YamlSyntaxKind, YamlSyntaxKind::*, *}; #[derive(Debug)] pub struct YamlSyntaxFactory; impl SyntaxFacto...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_yaml_factory/src/generated/node_factory.rs
crates/biome_yaml_factory/src/generated/node_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(clippy::redundant_closure)] use biome_rowan::AstNode; use biome_yaml_syntax::{ YamlSyntaxElement as SyntaxElement, YamlSyntaxNode as SyntaxNode, YamlSyntaxToken as SyntaxToken, *, }; pub fn yaml_alias_node(value_token: SyntaxToken) -> YamlAl...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_unicode_table/src/bytes.rs
crates/biome_unicode_table/src/bytes.rs
use Dispatch::*; /// Every handler a byte coming in could be mapped to #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[repr(u8)] pub enum Dispatch { /// Error token ERR, /// Whitespace WHS, /// Exclamation EXL, /// Single `'` or Double quote `"` QOT, /// ASCII letter or `_`...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_unicode_table/src/lib.rs
crates/biome_unicode_table/src/lib.rs
#![deny(clippy::use_self)] use crate::bytes::DISPATCHER; use crate::tables::derived_property::{ID_Continue, ID_Start}; mod bytes; mod tables; pub use crate::bytes::Dispatch; /// Tests if `c` is a valid start of a CSS identifier #[inline] pub fn is_html_id_start(c: char) -> bool { ID_Start(c) } /// Is `c` a CSS...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_unicode_table/src/tables.rs
crates/biome_unicode_table/src/tables.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![doc = r" Autogenerated file, do not edit by hand."] #![doc = r" Run `cargo codegen unicode` and recommit this file when Unicode support has changed."] #![allow(missing_docs, non_upper_case_globals, non_snake_case)] fn bsearch_range_table(c: char, r: &[(ch...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/prelude.rs
crates/biome_js_parser/src/prelude.rs
pub(crate) use crate::parser::JsParser; pub use biome_parser::prelude::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/lib.rs
crates/biome_js_parser/src/lib.rs
//! Extremely fast, lossless, and error tolerant JavaScript Parser. //! //! The parser uses an abstraction over non-whitespace tokens. //! This allows us to losslessly or lossly parse code without requiring explicit handling of whitespace. //! The parser yields events, not an AST, the events are resolved into untyped s...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/parse.rs
crates/biome_js_parser/src/parse.rs
//! Utilities for high-level parsing of js code. use crate::*; pub use biome_js_syntax::{ AnyJsRoot, JsFileSource, JsLanguage, JsModule, JsScript, JsSyntaxNode, ModuleKind, }; use biome_parser::token_source::Trivia; use biome_parser::{AnyParse, EmbeddedNodeParse, NodeParse, event::Event}; use biome_rowan::{AstNode...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/token_source.rs
crates/biome_js_parser/src/token_source.rs
use crate::lexer::{JsLexContext, JsLexer, JsReLexContext, TextRange}; use crate::{JsParserOptions, prelude::*}; use biome_js_syntax::JsSyntaxKind; use biome_js_syntax::JsSyntaxKind::EOF; use biome_parser::lexer::BufferedLexer; use biome_parser::token_source::{TokenSourceCheckpoint, TokenSourceWithBufferedLexer, Trivia}...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/parser.rs
crates/biome_js_parser/src/parser.rs
//! The physical parser structure. //! This may not hold your expectations of a traditional parser, //! the parser yields events like `Start node`, `Error`, etc. //! These events are then applied to a `TreeSink`. use biome_parser::*; pub(crate) mod rewrite_parser; pub(crate) mod single_token_parse_recovery; use crate...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/rewrite.rs
crates/biome_js_parser/src/rewrite.rs
//! Events emitted by the Parser which are then constructed into a syntax tree use crate::JsParser; use crate::parser::JsParserCheckpoint; use crate::parser::rewrite_parser::{RewriteParser, RewriteToken}; use biome_js_syntax::JsSyntaxKind; use biome_parser::tree_sink::TreeSink; use biome_parser::{event::process, prelu...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/state.rs
crates/biome_js_parser/src/state.rs
use crate::prelude::*; use biome_js_syntax::JsFileSource; use biome_rowan::{TextRange, TextSize}; use enumflags2::{BitFlags, bitflags, make_bitflags}; use indexmap::IndexMap; use rustc_hash::FxHashSet; use std::ops::{BitOr, BitOrAssign, Deref, DerefMut, Range, Sub}; type LabelSet = IndexMap<String, LabelledItem>; #[d...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax.rs
crates/biome_js_parser/src/syntax.rs
//! The Js syntax itself and parser functions. //! //! The actual parsing is done in these modules. //! Every single function is public, this is to allow people to //! use the parser for their specific needs, for example, parsing //! only an expression. //! //! Functions emit markers, see `CompletedMarker` and `Marker`...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/span.rs
crates/biome_js_parser/src/span.rs
use biome_rowan::{Language, SyntaxElement, SyntaxNode, SyntaxToken, TextRange, TextSize}; use std::{fmt::Debug, ops::Range}; /// A value which can be used as the range inside of a diagnostic. /// /// This is essentially a hack to allow us to use SyntaxElement, SyntaxNode, etc directly pub trait Span { fn as_range(...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/options.rs
crates/biome_js_parser/src/options.rs
/// Options to pass to the JavaScript parser #[derive(Debug, Clone, Copy, Default)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[cfg_attr( feature = "serde", derive(serde::Serialize, serde::Deserialize), serde(rename_all = "camelCase") )] pub struct JsParserOptions { /// Enables parsi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/object.rs
crates/biome_js_parser/src/syntax/object.rs
use crate::JsSyntaxFeature::TypeScript; use crate::parser::ParsedSyntax::{Absent, Present}; #[expect(deprecated)] use crate::parser::single_token_parse_recovery::SingleTokenParseRecovery; use crate::parser::{ParsedSyntax, RecoveryResult}; use crate::prelude::*; use crate::state::{EnterParameters, SignatureFlags}; use c...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/expr.rs
crates/biome_js_parser/src/syntax/expr.rs
//! Expressions, these include `this`, identifiers, arrays, objects, //! binary expressions, unary expressions, and more. //! //! See the [ECMAScript spec](https://www.ecma-international.org/ecma-262/5.1/#sec-11). use std::ops::{BitOr, BitOrAssign, Sub}; use super::metavariable::{is_at_metavariable, parse_metavariabl...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/program.rs
crates/biome_js_parser/src/syntax/program.rs
//! Top level functions for parsing a script or module, also includes module specific items. use super::module::parse_module_body; use super::stmt::parse_statements; use crate::JsParser; use crate::prelude::*; use crate::state::{ChangeParserState, EnableStrictMode}; use crate::syntax::stmt::parse_directives; use biome...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/pattern.rs
crates/biome_js_parser/src/syntax/pattern.rs
//! Provides traits for parsing pattern like nodes use crate::ParsedSyntax::{Absent, Present}; use crate::prelude::*; use crate::syntax::expr::ExpressionContext; use crate::{JsParser, ParseRecoveryTokenSet, ParsedSyntax}; use biome_js_syntax::JsSyntaxKind::{EOF, JS_ARRAY_HOLE}; use biome_js_syntax::{JsSyntaxKind, T, Te...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/module.rs
crates/biome_js_parser/src/syntax/module.rs
//! Implements the parsing logic for ES Module syntax use crate::JsSyntaxFeature::TypeScript; use crate::lexer::TextSize; use crate::prelude::*; use crate::state::{EnterAmbientContext, ExportDefaultItem, ExportDefaultItemKind}; use crate::syntax::binding::{ is_at_identifier_binding, is_nth_at_identifier_binding, p...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_parser/src/syntax/typescript.rs
crates/biome_js_parser/src/syntax/typescript.rs
//! TypeScript specific functions. use crate::prelude::*; mod statement; pub mod ts_parse_error; mod types; use self::types::parse_ts_reference_type; use crate::syntax::expr::{ExpressionContext, parse_identifier, parse_unary_expr}; use crate::syntax::js_parse_error::expected_expression; use crate::syntax::typescript...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false