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_js_syntax/src/identifier_ext.rs | crates/biome_js_syntax/src/identifier_ext.rs | use crate::{
AnyJsExportNamedSpecifier, AnyJsName, JsIdentifierAssignment, JsLiteralExportName,
JsReferenceIdentifier, JsSyntaxKind, JsSyntaxToken, JsxReferenceIdentifier, inner_string_text,
};
use biome_rowan::{
AstNode, SyntaxError, SyntaxNodeOptionExt, SyntaxResult, TokenText, declare_node_union,
};
dec... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/generated.rs | crates/biome_js_syntax/src/generated.rs | #[rustfmt::skip]
pub(super) mod nodes;
#[rustfmt::skip]
pub(super) mod nodes_mut;
#[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_js_syntax/src/parentheses/tstype.rs | crates/biome_js_syntax/src/parentheses/tstype.rs | use biome_rowan::{AstNode, AstSeparatedList};
use crate::{
AnyTsReturnType, AnyTsType, JsSyntaxKind, JsSyntaxNode, TsConditionalType, TsConstructorType,
TsFunctionType, TsIndexedAccessType, TsInferType, TsIntersectionType,
TsIntersectionTypeElementList, TsTypeOperatorType, TsTypeofType, TsUnionType,
Ts... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/parentheses/expression.rs | crates/biome_js_syntax/src/parentheses/expression.rs | use std::borrow::Cow;
use biome_rowan::{AstNode, AstNodeList, SyntaxResult, match_ast};
use crate::{
AnyJsAssignmentPattern, AnyJsComputedMember, AnyJsExpression, AnyJsForInitializer,
AnyJsFunctionBody, AnyJsLiteralExpression, AnyJsMemberExpression, AnyJsStatement,
JsArrayExpression, JsArrowFunctionExpres... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/parentheses/mod.rs | crates/biome_js_syntax/src/parentheses/mod.rs | //! JavaScript supports parenthesizing expressions, assignments, and TypeScript types.
//! Parenthesizing an expression can be desired to change the operator precedence or to ease readability.
//!
//! Biome is opinionated about which parentheses to keep or where to insert parentheses.
//! It removes parentheses that ar... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/parentheses/assignment.rs | crates/biome_js_syntax/src/parentheses/assignment.rs | use biome_rowan::AstNode;
use crate::{
AnyJsAssignment, AnyJsAssignmentPattern, JsArrayAssignmentPattern, JsComputedMemberAssignment,
JsForOfStatement, JsIdentifierAssignment, JsObjectAssignmentPattern, JsStaticMemberAssignment,
JsSyntaxKind, JsSyntaxNode, TsAsAssignment, TsNonNullAssertionAssignment,
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/generated/nodes_mut.rs | crates/biome_js_syntax/src/generated/nodes_mut.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use crate::{JsSyntaxToken as SyntaxToken, generated::nodes::*};
use biome_rowan::AstNode;
use std::iter::once;
impl JsAccessorModifier {
pub fn with_modifier_token(self, element: SyntaxToken) -> Self {
Self::unwrap_cast(
self.syntax
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/generated/kind.rs | crates/biome_js_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 JsSyntaxKind {
#[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_js_syntax/src/generated/macros.rs | crates/biome_js_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 | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_syntax/src/generated/nodes.rs | crates/biome_js_syntax/src/generated/nodes.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(dead_code)]
#![allow(unused)]
use crate::{
JsLanguage as Language, JsSyntaxElement as SyntaxElement,
JsSyntaxElementChildren as SyntaxElementChildren,
JsSyntaxKind::{self as SyntaxKind, *},
JsSyntaxList as SyntaxList, JsSyntaxNode as... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/lib.rs | crates/biome_css_semantic/src/lib.rs | #![deny(clippy::use_self)]
mod events;
mod format_semantic_model;
mod semantic_model;
pub use events::*;
pub use semantic_model::*;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/format_semantic_model.rs | crates/biome_css_semantic/src/format_semantic_model.rs | use crate::model::{Selector, SemanticModel, Specificity};
use biome_css_syntax::CssRoot;
use biome_formatter::prelude::*;
use biome_formatter::write;
use biome_formatter::{
FormatContext, FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth,
SourceMapGeneration, TransformSourceMap,
};
use biome_rowan:... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/events.rs | crates/biome_css_semantic/src/events.rs | use biome_css_syntax::{
AnyCssDeclarationName, AnyCssProperty, AnyCssSelector, CssDeclaration, CssPropertyAtRule,
CssRelativeSelector, CssSyntaxKind::*,
};
use biome_rowan::{AstNode, SyntaxNodeOptionExt, TextRange};
use std::collections::VecDeque;
use crate::model::{AnyCssSelectorLike, AnyRuleStart};
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_css_semantic/src/semantic_model/builder.rs | crates/biome_css_semantic/src/semantic_model/builder.rs | use biome_css_syntax::CssRoot;
use biome_rowan::{AstNode, AstPtr, TextRange};
use rustc_hash::FxHashMap;
use std::collections::BTreeMap;
use super::model::{
CssGlobalCustomVariable, CssModelDeclaration, Rule, RuleId, Selector, SemanticModel,
SemanticModelData, Specificity,
};
use crate::events::SemanticEvent;
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/semantic_model/model.rs | crates/biome_css_semantic/src/semantic_model/model.rs | use biome_css_syntax::{
CssComplexSelector, CssComposesPropertyValue, CssCompoundSelector, CssContainerAtRule,
CssDashedIdentifier, CssDeclaration, CssGenericComponentValueList, CssIdentifier,
CssMediaAtRule, CssNestedQualifiedRule, CssQualifiedRule, CssRoot, CssStartingStyleAtRule,
CssSupportsAtRule,
}... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/semantic_model/mod.rs | crates/biome_css_semantic/src/semantic_model/mod.rs | pub mod builder;
pub mod model;
pub mod specificity;
use biome_css_syntax::CssRoot;
use biome_rowan::AstNode;
use builder::SemanticModelBuilder;
use model::SemanticModel;
use crate::events::SemanticEventExtractor;
pub fn semantic_model(root: &CssRoot) -> SemanticModel {
let mut extractor = SemanticEventExtractor... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_semantic/src/semantic_model/specificity.rs | crates/biome_css_semantic/src/semantic_model/specificity.rs | use crate::semantic_model::model::Specificity;
use biome_css_syntax::{
AnyCssCompoundSelector, AnyCssPseudoClass, AnyCssRelativeSelector, AnyCssSelector,
AnyCssSimpleSelector, AnyCssSubSelector, CssComplexSelector, CssCompoundSelector,
CssDeclarationOrRuleBlock, CssPseudoClassSelector, CssQualifiedRule,
};... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/prelude.rs | crates/biome_json_formatter/src/prelude.rs | //! This module provides important and useful traits to help to format tokens and nodes
//! when implementing the [crate::FormatNodeRule] trait.
#![allow(unused_imports)]
pub(crate) use crate::{
AsFormat, FormatNodeRule, FormattedIterExt as _, IntoFormat, JsonFormatContext, JsonFormatter,
format_number_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_formatter/src/lib.rs | crates/biome_json_formatter/src/lib.rs | #![deny(clippy::use_self)]
mod comments;
pub mod context;
mod cst;
mod generated;
mod json;
mod prelude;
mod separated;
mod trivia;
mod verbatim;
use crate::comments::JsonCommentStyle;
pub(crate) use crate::context::JsonFormatContext;
use crate::context::JsonFormatOptions;
use crate::cst::FormatJsonSyntaxNode;
pub(cr... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/comments.rs | crates/biome_json_formatter/src/comments.rs | use crate::prelude::*;
use biome_diagnostics::category;
use biome_formatter::comments::{
CommentKind, CommentPlacement, CommentStyle, Comments, DecoratedComment, SourceComment,
is_alignable_comment,
};
use biome_formatter::formatter::Formatter;
use biome_formatter::{FormatResult, FormatRule, write};
use biome_j... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/cst.rs | crates/biome_json_formatter/src/cst.rs | use crate::prelude::*;
use biome_formatter::{FormatOwnedWithRule, FormatRefWithRule, FormatResult};
use biome_json_syntax::{JsonSyntaxNode, map_syntax_node};
#[derive(Debug, Copy, Clone, Default)]
pub struct FormatJsonSyntaxNode;
impl FormatRule<JsonSyntaxNode> for FormatJsonSyntaxNode {
type Context = JsonFormat... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/trivia.rs | crates/biome_json_formatter/src/trivia.rs | use crate::prelude::JsonFormatContext;
use crate::{FormatJsonSyntaxToken, JsonFormatter};
use biome_formatter::formatter::Formatter;
use biome_formatter::prelude::{
NumberFormatOptions, format_trimmed_number, syntax_token_cow_slice,
};
use biome_formatter::trivia::FormatToken;
use biome_formatter::{Argument, Format... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/verbatim.rs | crates/biome_json_formatter/src/verbatim.rs | use crate::context::JsonFormatContext;
use biome_formatter::format_element::tag::VerbatimKind;
use biome_formatter::formatter::Formatter;
use biome_formatter::prelude::{Tag, text};
use biome_formatter::trivia::{FormatLeadingComments, FormatTrailingComments};
use biome_formatter::{
Buffer, CstFormatContext, Format, ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/context.rs | crates/biome_json_formatter/src/context.rs | use crate::JsonCommentStyle;
use crate::comments::{FormatJsonLeadingComment, JsonComments};
use biome_deserialize_macros::{Deserializable, Merge};
use biome_formatter::separated::TrailingSeparator;
use biome_formatter::{BracketSpacing, Expand, IndentWidth, prelude::*};
use biome_formatter::{
CstFormatContext, Forma... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/separated.rs | crates/biome_json_formatter/src/separated.rs | use crate::FormatJsonSyntaxToken;
use crate::prelude::*;
use biome_formatter::FormatRefWithRule;
use biome_formatter::separated::{
FormatSeparatedElementRule, FormatSeparatedIter, TrailingSeparator,
};
use biome_json_syntax::{JsonLanguage, JsonSyntaxToken};
use biome_rowan::{AstNode, AstSeparatedList, AstSeparatedL... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/generated.rs | crates/biome_json_formatter/src/generated.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
#![allow(clippy::use_self)]
#![expect(clippy::default_constructed_unit_structs)]
use crate::{
AsFormat, FormatBogusNodeRule, FormatNodeRule, IntoFormat, JsonFormatContext, JsonFormatter,
};
use biome_forma... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/mod.rs | crates/biome_json_formatter/src/json/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
pub(crate) mod any;
pub(crate) mod auxiliary;
pub(crate) mod bogus;
pub(crate) mod lists;
pub(crate) mod value;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/lists/array_element_list.rs | crates/biome_json_formatter/src/json/lists/array_element_list.rs | use crate::prelude::*;
use crate::separated::FormatAstSeparatedListExtension;
use biome_formatter::{Expand, FormatContext, write};
use biome_json_syntax::{AnyJsonValue, JsonArrayElementList};
use biome_rowan::{AstNode, AstSeparatedList};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonArrayElementList;
i... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/lists/mod.rs | crates/biome_json_formatter/src/json/lists/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
pub(crate) mod array_element_list;
pub(crate) mod member_list;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/lists/member_list.rs | crates/biome_json_formatter/src/json/lists/member_list.rs | use crate::prelude::*;
use crate::separated::FormatAstSeparatedListExtension;
use biome_json_syntax::JsonMemberList;
use biome_rowan::{AstNode, AstSeparatedList};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonMemberList;
impl FormatRule<JsonMemberList> for FormatJsonMemberList {
type Context = 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_formatter/src/json/bogus/bogus_value.rs | crates/biome_json_formatter/src/json/bogus/bogus_value.rs | use crate::FormatBogusNodeRule;
use biome_json_syntax::JsonBogusValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonBogusValue;
impl FormatBogusNodeRule<JsonBogusValue> for FormatJsonBogusValue {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/bogus/mod.rs | crates/biome_json_formatter/src/json/bogus/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
#[expect(clippy::module_inception)]
pub(crate) mod bogus;
pub(crate) mod bogus_value;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/bogus/bogus.rs | crates/biome_json_formatter/src/json/bogus/bogus.rs | use crate::FormatBogusNodeRule;
use biome_json_syntax::JsonBogus;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonBogus;
impl FormatBogusNodeRule<JsonBogus> for FormatJsonBogus {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/boolean_value.rs | crates/biome_json_formatter/src/json/value/boolean_value.rs | use crate::prelude::*;
use biome_json_syntax::JsonBooleanValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonBooleanValue;
impl FormatNodeRule<JsonBooleanValue> for FormatJsonBooleanValue {
fn fmt_fields(&self, node: &JsonBooleanValue, f: &mut JsonFormatter) -> FormatResult<()> {
node.valu... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/null_value.rs | crates/biome_json_formatter/src/json/value/null_value.rs | use crate::prelude::*;
use biome_json_syntax::JsonNullValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonNullValue;
impl FormatNodeRule<JsonNullValue> for FormatJsonNullValue {
fn fmt_fields(&self, node: &JsonNullValue, f: &mut JsonFormatter) -> FormatResult<()> {
node.value_token()?.form... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/string_value.rs | crates/biome_json_formatter/src/json/value/string_value.rs | use crate::prelude::*;
use biome_json_syntax::JsonStringValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonStringValue;
impl FormatNodeRule<JsonStringValue> for FormatJsonStringValue {
fn fmt_fields(&self, node: &JsonStringValue, f: &mut JsonFormatter) -> FormatResult<()> {
node.value_tok... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/mod.rs | crates/biome_json_formatter/src/json/value/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
pub(crate) mod array_value;
pub(crate) mod boolean_value;
pub(crate) mod null_value;
pub(crate) mod number_value;
pub(crate) mod object_value;
pub(crate) mod string_value;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/array_value.rs | crates/biome_json_formatter/src/json/value/array_value.rs | use crate::prelude::*;
use biome_formatter::{Expand, FormatContext, format_args, write};
use biome_json_syntax::{JsonArrayValue, JsonArrayValueFields};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonArrayValue;
impl FormatNodeRule<JsonArrayValue> for FormatJsonArrayValue {
fn fmt_fields(&self, node: ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/number_value.rs | crates/biome_json_formatter/src/json/value/number_value.rs | use crate::prelude::*;
use biome_formatter::token::number::NumberFormatOptions;
use biome_json_syntax::JsonNumberValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonNumberValue;
impl FormatNodeRule<JsonNumberValue> for FormatJsonNumberValue {
fn fmt_fields(&self, node: &JsonNumberValue, f: &mut Js... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/value/object_value.rs | crates/biome_json_formatter/src/json/value/object_value.rs | use crate::prelude::*;
use biome_formatter::{Expand, FormatContext, format_args, write};
use biome_json_syntax::JsonObjectValue;
use biome_rowan::AstNode;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonObjectValue;
impl FormatNodeRule<JsonObjectValue> for FormatJsonObjectValue {
fn fmt_fields(&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_formatter/src/json/auxiliary/member_name.rs | crates/biome_json_formatter/src/json/auxiliary/member_name.rs | use crate::prelude::*;
use biome_json_syntax::JsonMemberName;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonMemberName;
impl FormatNodeRule<JsonMemberName> for FormatJsonMemberName {
fn fmt_fields(&self, node: &JsonMemberName, f: &mut JsonFormatter) -> FormatResult<()> {
node.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_formatter/src/json/auxiliary/root.rs | crates/biome_json_formatter/src/json/auxiliary/root.rs | use crate::prelude::*;
use crate::verbatim::format_json_verbatim_node;
use biome_formatter::write;
use biome_json_syntax::{JsonRoot, JsonRootFields};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonRoot;
impl FormatNodeRule<JsonRoot> for FormatJsonRoot {
fn fmt_fields(&self, node: &JsonRoot, f: &mut ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/auxiliary/mod.rs | crates/biome_json_formatter/src/json/auxiliary/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
pub(crate) mod member;
pub(crate) mod member_name;
pub(crate) mod root;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/auxiliary/member.rs | crates/biome_json_formatter/src/json/auxiliary/member.rs | use crate::prelude::*;
use biome_formatter::{format_args, write};
use biome_json_syntax::{JsonMember, JsonMemberFields};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonMember;
impl FormatNodeRule<JsonMember> for FormatJsonMember {
fn fmt_fields(&self, node: &JsonMember, f: &mut JsonFormatter) -> For... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/src/json/any/value.rs | crates/biome_json_formatter/src/json/any/value.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
use crate::prelude::*;
use biome_json_syntax::AnyJsonValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsonValue;
impl FormatRule<AnyJsonValue> for FormatAnyJsonValue {
type Context = 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_formatter/src/json/any/mod.rs | crates/biome_json_formatter/src/json/any/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
pub(crate) mod value;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/tests/quick_test.rs | crates/biome_json_formatter/tests/quick_test.rs | use biome_formatter_test::check_reformat::CheckReformat;
use biome_json_formatter::format_node;
use biome_json_formatter::{JsonFormatLanguage, context::JsonFormatOptions};
use biome_json_parser::{JsonParserOptions, parse_json};
mod language {
include!("language.rs");
}
#[ignore]
#[test]
// use this test check if ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/tests/spec_test.rs | crates/biome_json_formatter/tests/spec_test.rs | use biome_formatter_test::spec::{SpecSnapshot, SpecTestFile};
use biome_json_formatter::JsonFormatLanguage;
use biome_json_syntax::JsonLanguage;
use biome_test_utils::create_formatting_options;
use camino::Utf8Path;
mod language {
include!("language.rs");
}
/// [insta.rs](https://insta.rs/docs) snapshot testing
/... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/tests/prettier_tests.rs | crates/biome_json_formatter/tests/prettier_tests.rs | use biome_formatter::{IndentStyle, IndentWidth};
use biome_formatter_test::test_prettier_snapshot::{PrettierSnapshot, PrettierTestFile};
use biome_json_formatter::{JsonFormatLanguage, context::JsonFormatOptions};
use camino::Utf8Path;
use std::env;
mod language;
tests_macros::gen_tests! {"tests/specs/prettier/{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_formatter/tests/spec_tests.rs | crates/biome_json_formatter/tests/spec_tests.rs | mod quick_test;
mod spec_test;
mod formatter {
mod json_module {
tests_macros::gen_tests! {"tests/specs/json/**/*.{json,jsonc}", crate::spec_test::run, ""}
}
}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_formatter/tests/language.rs | crates/biome_json_formatter/tests/language.rs | use biome_formatter::{IndentStyle, IndentWidth, LineEnding, LineWidth};
use biome_formatter_test::TestFormatLanguage;
use biome_fs::BiomePath;
use biome_json_formatter::JsonFormatLanguage;
use biome_json_formatter::context::{JsonFormatContext, JsonFormatOptions};
use biome_json_parser::{JsonParserOptions, parse_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_formatter/benches/json_formatter.rs | crates/biome_json_formatter/benches/json_formatter.rs | use biome_formatter::Printed;
use biome_json_formatter::context::JsonFormatOptions;
use biome_json_formatter::format_node;
use biome_json_parser::{JsonParserOptions, parse_json};
use biome_json_syntax::JsonRoot;
use biome_rowan::AstNode;
use biome_test_utils::BenchCase;
use criterion::{BenchmarkId, Criterion, Throughpu... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_macros/src/lib.rs | crates/biome_diagnostics_macros/src/lib.rs | #![deny(clippy::use_self)]
use proc_macro::TokenStream;
use proc_macro_error2::*;
use syn::{DeriveInput, parse_macro_input};
mod generate;
mod parse;
#[proc_macro_derive(
Diagnostic,
attributes(
diagnostic,
severity,
category,
description,
message,
advice,
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_macros/src/parse.rs | crates/biome_diagnostics_macros/src/parse.rs | use proc_macro_error2::*;
use proc_macro2::{Ident, TokenStream};
use quote::{ToTokens, quote};
use syn::{
Attribute, DataEnum, DataStruct, Generics, Token, Variant,
parse::{Error, Parse, ParseStream, Parser, Result, discouraged::Speculative},
punctuated::Punctuated,
spanned::Spanned,
token::Paren,
}... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_macros/src/generate.rs | crates/biome_diagnostics_macros/src/generate.rs | use proc_macro_error2::*;
use proc_macro2::{Ident, Span, TokenStream};
use quote::quote;
use crate::parse::{
DeriveEnumInput, DeriveInput, DeriveStructInput, StaticOrDynamic, StringOrMarkup,
};
pub(crate) fn generate_diagnostic(input: DeriveInput) -> TokenStream {
match input {
DeriveInput::DeriveStru... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_ungrammar/src/lexer.rs | crates/biome_ungrammar/src/lexer.rs | //! Simple hand-written ungrammar lexer
use crate::error::{Result, bail};
#[derive(Debug, Eq, PartialEq)]
pub(crate) enum TokenKind {
Node(String),
Token(String),
Eq,
Star,
Pipe,
QMark,
Colon,
LParen,
RParen,
DoublePipe,
DoubleAmpersand,
}
/// Utility type for quickly compa... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_ungrammar/src/lib.rs | crates/biome_ungrammar/src/lib.rs | //! Ungrammar -- a DSL for specifying concrete syntax tree grammar.
//!
//! Producing a parser is an explicit non-goal -- it's ok for this grammar to be
//! ambiguous, non LL, non LR, etc.
//!
//! See this
//! [introductory post](https://rust-analyzer.github.io/blog/2020/10/24/introducing-ungrammar.html)
//! for detail... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_ungrammar/src/parser.rs | crates/biome_ungrammar/src/parser.rs | //! Simple hand-written ungrammar parser.
use std::collections::HashMap;
use crate::{
Grammar, Node, NodeData, Rule, Token, TokenData,
error::{Result, format_err},
lexer::{self, CombinatorKind, TokenKind},
};
macro_rules! bail {
($loc:expr, $($tt:tt)*) => {{
let err = $crate::error::format_err... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_ungrammar/src/error.rs | crates/biome_ungrammar/src/error.rs | //! Boilerplate error definitions.
use std::fmt;
use crate::lexer::Location;
/// A type alias for std's Result with the Error as our error type.
pub type Result<T, E = Error> = std::result::Result<T, E>;
/// An error encountered when parsing a Grammar.
#[derive(Debug)]
pub struct Error {
pub(crate) message: Stri... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/diagnostics.rs | crates/biome_cli/src/diagnostics.rs | use biome_console::fmt::Formatter;
use biome_console::markup;
use biome_diagnostics::advice::ListAdvice;
use biome_diagnostics::{
Advices, Category, Diagnostic, Error, LogCategory, MessageAndDescription, Severity, Visit,
category,
};
use biome_diagnostics::{BpafError, IoError, SerdeJsonError};
use biome_service... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/lib.rs | crates/biome_cli/src/lib.rs | #![doc = include_str!("../README.md")]
//!
//! # Module
//!
//! This is where the main CLI session starts. The module is responsible
//! to parse commands and arguments, redirect the execution of the commands and
//! execute the traversal of directory and files, based on the command that were passed.
#![deny(clippy::u... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/panic.rs | crates/biome_cli/src/panic.rs | use std::{
fmt::Write,
panic::{PanicHookInfo, set_hook},
thread,
};
/// Installs a global panic handler to show a user-friendly error message
/// in case the CLI panics
pub fn setup_panic_handler() {
set_hook(Box::new(panic_handler))
}
fn panic_handler(info: &PanicHookInfo) {
// Buffer the error m... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/changed.rs | crates/biome_cli/src/changed.rs | use crate::CliDiagnostic;
use biome_configuration::Configuration;
use biome_fs::FileSystem;
use camino::Utf8Path;
use std::ffi::OsString;
pub(crate) fn get_changed_files(
fs: &dyn FileSystem,
configuration: &Configuration,
since: Option<&str>,
) -> Result<Vec<OsString>, CliDiagnostic> {
let default_bra... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/main.rs | crates/biome_cli/src/main.rs | //! This is the main binary of Biome.
//!
//! If you're curious about how to use it, check Biome's [website]
//!
//! [website]: https://biomejs.dev
use biome_cli::{
BiomeCommand, CliDiagnostic, CliSession, biome_command, open_transport, setup_panic_handler,
to_color_mode,
};
use biome_console::{ConsoleExt, Env... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/logging.rs | crates/biome_cli/src/logging.rs | use std::fmt::{Display, Formatter};
use std::fs::File;
use std::str::FromStr;
use crate::cli_options::ColorsArg;
use tracing::Metadata;
use tracing::subscriber::Interest;
use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::fmt::format::FmtSpan;
use tracing_subscriber::fmt::writer::MakeWriterExt;
use t... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/cli_options.rs | crates/biome_cli/src/cli_options.rs | use crate::LoggingLevel;
use crate::logging::LoggingKind;
use biome_configuration::ConfigurationPathHint;
use biome_diagnostics::Severity;
use bpaf::Bpaf;
use camino::{Utf8Path, Utf8PathBuf};
use std::fmt::{Display, Formatter};
use std::str::FromStr;
/// Global options applied to all commands
#[derive(Debug, Clone, Bp... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/service/unix.rs | crates/biome_cli/src/service/unix.rs | use biome_lsp::{ServerConnection, ServerFactory};
use camino::Utf8PathBuf;
use std::{
convert::Infallible,
env, fs,
io::{self, ErrorKind},
time::Duration,
};
use tokio::{
io::Interest,
net::{
UnixListener, UnixStream,
unix::{OwnedReadHalf, OwnedWriteHalf},
},
process::{Ch... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/service/windows.rs | crates/biome_cli/src/service/windows.rs | use biome_lsp::{ServerConnection, ServerFactory};
use camino::Utf8PathBuf;
use std::{
convert::Infallible,
env,
fs::read_dir,
io::{self, ErrorKind},
mem::swap,
os::windows::process::CommandExt,
pin::Pin,
process::Command,
sync::Arc,
task::{Context, Poll},
time::Duration,
};
u... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/service/mod.rs | crates/biome_cli/src/service/mod.rs | //! Implements the OS dependent transport layer for the server protocol. This
//! uses a domain socket created in the global temporary directory on Unix
//! systems, and a named pipe on Windows. The protocol used for message frames
//! is based on the [Language Server Protocol](https://microsoft.github.io/language-serv... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/scan_kind.rs | crates/biome_cli/src/commands/scan_kind.rs | use crate::{Execution, TraversalMode};
use biome_configuration::Configuration;
use biome_fs::BiomePath;
use biome_service::workspace::ScanKind;
use camino::Utf8Path;
/// Returns a forced scan kind based on the given `execution`.
fn get_forced_scan_kind(
execution: &Execution,
root_configuration_dir: &Utf8Path,... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/ci.rs | crates/biome_cli/src/commands/ci.rs | use crate::changed::get_changed_files;
use crate::cli_options::CliOptions;
use crate::commands::{CommandRunner, LoadEditorConfig};
use crate::{CliDiagnostic, Execution};
use biome_configuration::analyzer::LinterEnabled;
use biome_configuration::analyzer::assist::{AssistConfiguration, AssistEnabled};
use biome_configura... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/version.rs | crates/biome_cli/src/commands/version.rs | use biome_console::fmt::Formatter;
use biome_console::{ConsoleExt, fmt, markup};
use biome_service::workspace::ServerInfo;
use crate::{CliDiagnostic, CliSession, VERSION};
/// Handle of the `version` command. Prints a more in detail version of biome.
pub(crate) fn full_version(session: CliSession) -> Result<(), CliDi... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/rage.rs | crates/biome_cli/src/commands/rage.rs | use crate::commands::daemon::read_most_recent_log_file;
use crate::service::enumerate_pipes;
use crate::{CliDiagnostic, CliSession, VERSION, service};
use biome_configuration::{ConfigurationPathHint, Rules};
use biome_console::fmt::{Display, Formatter};
use biome_console::{
ConsoleExt, DebugDisplay, DisplayOption, ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/migrate.rs | crates/biome_cli/src/commands/migrate.rs | use super::{
CommandRunner, FixFileModeOptions, MigrateSubCommand, check_fix_incompatible_arguments,
};
use crate::CliDiagnostic;
use crate::cli_options::CliOptions;
use crate::diagnostics::MigrationDiagnostic;
use crate::execute::{Execution, TraversalMode};
use biome_configuration::Configuration;
use biome_console... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/check.rs | crates/biome_cli/src/commands/check.rs | use super::{FixFileModeOptions, LoadEditorConfig, determine_fix_file_mode};
use crate::cli_options::CliOptions;
use crate::commands::{CommandRunner, get_files_to_process_with_cli_options};
use crate::{CliDiagnostic, Execution, TraversalMode};
use biome_configuration::analyzer::LinterEnabled;
use biome_configuration::an... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/lint.rs | crates/biome_cli/src/commands/lint.rs | use super::{FixFileModeOptions, determine_fix_file_mode};
use crate::cli_options::CliOptions;
use crate::commands::{CommandRunner, get_files_to_process_with_cli_options};
use crate::{CliDiagnostic, Execution, TraversalMode};
use biome_configuration::analyzer::AnalyzerSelector;
use biome_configuration::css::{CssLinterCo... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/search.rs | crates/biome_cli/src/commands/search.rs | use crate::cli_options::CliOptions;
use crate::commands::CommandRunner;
use crate::{CliDiagnostic, Execution, TraversalMode};
use biome_configuration::vcs::VcsConfiguration;
use biome_configuration::{Configuration, FilesConfiguration};
use biome_console::Console;
use biome_deserialize::Merge;
use biome_fs::FileSystem;
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/explain.rs | crates/biome_cli/src/commands/explain.rs | use crate::commands::daemon::default_biome_log_path;
use crate::{CliDiagnostic, CliSession};
use biome_console::{ConsoleExt, markup};
use biome_flags::biome_env;
use biome_service::documentation::{Doc, ExplainRule};
fn print_rule(session: CliSession, metadata: &ExplainRule) {
session.app.console.log(markup! {
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/mod.rs | crates/biome_cli/src/commands/mod.rs | use crate::changed::{get_changed_files, get_staged_files};
use crate::cli_options::{CliOptions, CliReporter, ColorsArg, cli_options};
use crate::commands::scan_kind::derive_best_scan_kind;
use crate::execute::Stdin;
use crate::logging::LoggingKind;
use crate::{
CliDiagnostic, CliSession, Execution, LoggingLevel, Tr... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/format.rs | crates/biome_cli/src/commands/format.rs | use crate::cli_options::CliOptions;
use crate::commands::{CommandRunner, LoadEditorConfig, get_files_to_process_with_cli_options};
use crate::{CliDiagnostic, Execution, TraversalMode};
use biome_configuration::css::{CssFormatterConfiguration, CssParserConfiguration};
use biome_configuration::graphql::GraphqlFormatterCo... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/init.rs | crates/biome_cli/src/commands/init.rs | use crate::{CliDiagnostic, CliSession};
use biome_configuration::vcs::{GIT_IGNORE_FILE_NAME, IGNORE_FILE_NAME, VcsConfiguration};
use biome_configuration::{Configuration, FilesConfiguration};
use biome_console::fmt::{Display, Formatter};
use biome_console::{ConsoleExt, markup};
use biome_diagnostics::{Category, Diagnos... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/daemon.rs | crates/biome_cli/src/commands/daemon.rs | use crate::{
CliDiagnostic, CliSession, open_transport,
service::{self, ensure_daemon, open_socket, run_daemon},
};
use biome_console::{ConsoleExt, markup};
use biome_fs::OsFileSystem;
use biome_lsp::ServerFactory;
use biome_service::{TransportError, Watcher, WorkspaceError, workspace::WorkspaceClient};
use cam... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/commands/clean.rs | crates/biome_cli/src/commands/clean.rs | use crate::commands::daemon::default_biome_log_path;
use crate::{CliDiagnostic, CliSession};
use biome_flags::biome_env;
use camino::Utf8PathBuf;
use std::fs::{create_dir, remove_dir_all};
/// Runs the clean command
pub fn clean(_cli_session: CliSession) -> Result<(), CliDiagnostic> {
let logs_path = biome_env()
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reports/mod.rs | crates/biome_cli/src/reports/mod.rs | pub mod formatter;
use crate::reports::formatter::{FormatterReportFileDetail, FormatterReportSummary};
use biome_diagnostics::{Category, Severity};
use biome_service::WorkspaceError;
use formatter::FormatterReport;
use rustc_hash::FxHashMap;
use serde::Serialize;
#[derive(Debug, Default, Serialize)]
pub struct Report... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/junit.rs | crates/biome_cli/src/reporter/junit.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::{Console, ConsoleExt, markup};
use biome_diagnostics::display::SourceFile;
use biome_diagnostics::{Error, Resource};
use camino::{Utf8Path, Utf8PathBuf};
use quick_junit::{NonSuccessKind, Report, TestCase, TestCa... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/gitlab.rs | crates/biome_cli/src/reporter/gitlab.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::fmt::{Display, Formatter};
use biome_console::{Console, ConsoleExt, markup};
use biome_diagnostics::display::SourceFile;
use biome_diagnostics::{Error, PrintDescription, Resource, Severity};
use biome_rowan::{Tex... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/json.rs | crates/biome_cli/src/reporter/json.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::fmt::Formatter;
use camino::{Utf8Path, Utf8PathBuf};
use serde::Serialize;
#[derive(Debug, Default, Serialize)]
#[serde(rename_all = "camelCase")]
pub(crate) struct JsonReporterVisitor {
summary: TraversalSu... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/terminal.rs | crates/biome_cli/src/reporter/terminal.rs | use crate::Reporter;
use crate::execute::{Execution, TraversalMode};
use crate::reporter::{
DiagnosticsPayload, EvaluatedPathsDiagnostic, FixedPathsDiagnostic, ReporterVisitor,
TraversalSummary,
};
use biome_console::fmt::Formatter;
use biome_console::{Console, ConsoleExt, fmt, markup};
use biome_diagnostics::P... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/summary.rs | crates/biome_cli/src/reporter/summary.rs | use crate::reporter::terminal::ConsoleTraversalSummary;
use crate::reporter::{EvaluatedPathsDiagnostic, FixedPathsDiagnostic};
use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::fmt::{Display, Formatter};
use biome_console::{Console, ConsoleExt, MarkupBuf, markup... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/mod.rs | crates/biome_cli/src/reporter/mod.rs | pub(crate) mod checkstyle;
pub(crate) mod github;
pub(crate) mod gitlab;
pub(crate) mod json;
pub(crate) mod junit;
pub(crate) mod rdjson;
pub(crate) mod summary;
pub(crate) mod terminal;
use crate::cli_options::MaxDiagnostics;
use crate::execute::Execution;
use biome_diagnostics::advice::ListAdvice;
use biome_diagnos... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/checkstyle.rs | crates/biome_cli/src/reporter/checkstyle.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::{Console, ConsoleExt, markup};
use biome_diagnostics::display::SourceFile;
use biome_diagnostics::{Error, PrintDescription, Resource, Severity};
use camino::{Utf8Path, Utf8PathBuf};
use std::collections::BTreeMap... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/github.rs | crates/biome_cli/src/reporter/github.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::{Console, ConsoleExt, markup};
use biome_diagnostics::PrintGitHubDiagnostic;
use camino::{Utf8Path, Utf8PathBuf};
use std::io;
pub(crate) struct GithubReporter {
pub(crate) diagnostics_payload: DiagnosticsPa... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/reporter/rdjson.rs | crates/biome_cli/src/reporter/rdjson.rs | use crate::{DiagnosticsPayload, Execution, Reporter, ReporterVisitor, TraversalSummary};
use biome_console::fmt::{Display, Formatter};
use biome_console::{Console, ConsoleExt, MarkupBuf, markup};
use biome_diagnostics::display::{SourceFile, markup_to_string};
use biome_diagnostics::{Error, Location, LogCategory, PrintD... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/std_in.rs | crates/biome_cli/src/execute/std_in.rs | //! In here, there are the operations that run via standard input
//!
use crate::cli_options::CliOptions;
use crate::diagnostics::StdinDiagnostic;
use crate::execute::Execution;
use crate::{CliDiagnostic, CliSession, TraversalMode};
use biome_analyze::RuleCategoriesBuilder;
use biome_console::{ConsoleExt, markup};
use ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/diagnostics.rs | crates/biome_cli/src/execute/diagnostics.rs | use biome_diagnostics::{
Advices, Category, Diagnostic, DiagnosticExt, DiagnosticTags, Error, Visit,
};
use biome_diagnostics::{IoError, StdError};
use biome_text_edit::TextEdit;
use std::io;
#[derive(Debug, Diagnostic)]
#[diagnostic(
category = "format",
message = "File content differs from formatting out... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/migrate.rs | crates/biome_cli/src/execute/migrate.rs | use crate::commands::MigrateSubCommand;
use crate::diagnostics::MigrationDiagnostic;
use crate::execute::diagnostics::{ContentDiffAdvice, MigrateDiffDiagnostic};
use crate::{CliDiagnostic, CliSession};
use biome_analyze::AnalysisFilter;
use biome_configuration::Configuration;
use biome_console::fmt::{Display, Formatter... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/mod.rs | crates/biome_cli/src/execute/mod.rs | mod diagnostics;
mod migrate;
mod process_file;
mod std_in;
pub(crate) mod traverse;
use crate::cli_options::{CliOptions, CliReporter};
use crate::commands::MigrateSubCommand;
use crate::diagnostics::ReportDiagnostic;
use crate::execute::migrate::MigratePayload;
use crate::execute::traverse::{TraverseResult, traverse}... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/traverse.rs | crates/biome_cli/src/execute/traverse.rs | use super::process_file::{DiffKind, FileStatus, Message, process_file};
use super::{Execution, TraversalMode};
use crate::cli_options::CliOptions;
use crate::execute::diagnostics::{
CIFormatDiffDiagnostic, ContentDiffAdvice, FormatDiffDiagnostic, PanicDiagnostic,
};
use crate::reporter::TraversalSummary;
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_cli/src/execute/process_file.rs | crates/biome_cli/src/execute/process_file.rs | mod check;
mod format;
mod lint_and_assist;
mod search;
pub(crate) mod workspace_file;
use crate::execute::TraversalMode;
use crate::execute::diagnostics::{ResultExt, UnhandledDiagnostic};
use crate::execute::traverse::TraversalOptions;
use biome_analyze::RuleCategoriesBuilder;
use biome_diagnostics::{DiagnosticExt, D... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_cli/src/execute/process_file/workspace_file.rs | crates/biome_cli/src/execute/process_file/workspace_file.rs | use crate::execute::diagnostics::ResultExt;
use crate::execute::diagnostics::ResultIoExt;
use crate::execute::process_file::SharedTraversalOptions;
use biome_diagnostics::{Error, category};
use biome_fs::{BiomePath, File, OpenOptions};
use biome_service::workspace::{FileContent, FileExitsParams, FileGuard, OpenFilePara... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.