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
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/type_member.rs
crates/rome_js_formatter/src/ts/any/type_member.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 rome_js_syntax::AnyTsTypeMember; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsTypeMember; impl FormatRule<AnyTsTypeMember> for FormatAnyTsTypeMember { type Conte...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/property_signature_annotation.rs
crates/rome_js_formatter/src/ts/any/property_signature_annotation.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 rome_js_syntax::AnyTsPropertySignatureAnnotation; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsPropertySignatureAnnotation; impl FormatRule<AnyTsPropertySignatureAnn...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/method_signature_modifier.rs
crates/rome_js_formatter/src/ts/any/method_signature_modifier.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 rome_js_syntax::AnyTsMethodSignatureModifier; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsMethodSignatureModifier; impl FormatRule<AnyTsMethodSignatureModifier> for...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/template_element.rs
crates/rome_js_formatter/src/ts/any/template_element.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 rome_js_syntax::AnyTsTemplateElement; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsTemplateElement; impl FormatRule<AnyTsTemplateElement> for FormatAnyTsTemplateElem...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/property_signature_modifier.rs
crates/rome_js_formatter/src/ts/any/property_signature_modifier.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 rome_js_syntax::AnyTsPropertySignatureModifier; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsPropertySignatureModifier; impl FormatRule<AnyTsPropertySignatureModifie...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/type_predicate_parameter_name.rs
crates/rome_js_formatter/src/ts/any/type_predicate_parameter_name.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 rome_js_syntax::AnyTsTypePredicateParameterName; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsTypePredicateParameterName; impl FormatRule<AnyTsTypePredicateParameter...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/ts_type.rs
crates/rome_js_formatter/src/ts/any/ts_type.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 rome_js_syntax::AnyTsType; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsType; impl FormatRule<AnyTsType> for FormatAnyTsType { type Context = JsFormatContext; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/variable_annotation.rs
crates/rome_js_formatter/src/ts/any/variable_annotation.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 rome_js_syntax::AnyTsVariableAnnotation; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsVariableAnnotation; impl FormatRule<AnyTsVariableAnnotation> for FormatAnyTsVar...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/mod.rs
crates/rome_js_formatter/src/ts/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 external_module_declaration_body; pub(crate) mod index_signature_modifier; pub(crate) mod method_signature_modifier; pub(crate) mod module_name; pub(crate) mod module_reference; pub(crate) mod n...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/tuple_type_element.rs
crates/rome_js_formatter/src/ts/any/tuple_type_element.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 rome_js_syntax::AnyTsTupleTypeElement; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsTupleTypeElement; impl FormatRule<AnyTsTupleTypeElement> for FormatAnyTsTupleType...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/name.rs
crates/rome_js_formatter/src/ts/any/name.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 rome_js_syntax::AnyTsName; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsName; impl FormatRule<AnyTsName> for FormatAnyTsName { type Context = JsFormatContext; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/module_reference.rs
crates/rome_js_formatter/src/ts/any/module_reference.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 rome_js_syntax::AnyTsModuleReference; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsModuleReference; impl FormatRule<AnyTsModuleReference> for FormatAnyTsModuleRefere...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/property_annotation.rs
crates/rome_js_formatter/src/ts/any/property_annotation.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 rome_js_syntax::AnyTsPropertyAnnotation; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsPropertyAnnotation; impl FormatRule<AnyTsPropertyAnnotation> for FormatAnyTsPro...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/type_parameter_modifier.rs
crates/rome_js_formatter/src/ts/any/type_parameter_modifier.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 rome_js_syntax::AnyTsTypeParameterModifier; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsTypeParameterModifier; impl FormatRule<AnyTsTypeParameterModifier> for Forma...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/return_type.rs
crates/rome_js_formatter/src/ts/any/return_type.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 rome_js_syntax::AnyTsReturnType; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsReturnType; impl FormatRule<AnyTsReturnType> for FormatAnyTsReturnType { type Conte...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/ts/any/property_parameter_modifier.rs
crates/rome_js_formatter/src/ts/any/property_parameter_modifier.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 rome_js_syntax::AnyTsPropertyParameterModifier; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyTsPropertyParameterModifier; impl FormatRule<AnyTsPropertyParameterModifie...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/context/trailing_comma.rs
crates/rome_js_formatter/src/context/trailing_comma.rs
use crate::prelude::*; use crate::{JsFormatContext, JsFormatOptions}; use rome_deserialize::json::with_only_known_variants; use rome_deserialize::{DeserializationDiagnostic, VisitNode}; use rome_formatter::formatter::Formatter; use rome_formatter::prelude::{if_group_breaks, text}; use rome_formatter::write; use rome_fo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/tests/quick_test.rs
crates/rome_js_formatter/tests/quick_test.rs
use rome_formatter_test::check_reformat::CheckReformat; use rome_js_formatter::context::{ArrowParentheses, JsFormatOptions, QuoteStyle, Semicolons}; use rome_js_formatter::format_node; use rome_js_parser::{parse, JsParserOptions}; use rome_js_syntax::JsFileSource; mod language { include!("language.rs"); } #[ignor...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/tests/spec_test.rs
crates/rome_js_formatter/tests/spec_test.rs
use rome_formatter_test::spec::{SpecSnapshot, SpecTestFile}; use rome_js_formatter::context::JsFormatOptions; use rome_js_syntax::{JsFileSource, ModuleKind}; use std::path::Path; mod language { include!("language.rs"); } /// [insta.rs](https://insta.rs/docs) snapshot testing /// /// For better development workflo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/tests/prettier_tests.rs
crates/rome_js_formatter/tests/prettier_tests.rs
use std::{env, path::Path}; use rome_formatter::IndentStyle; use rome_formatter_test::test_prettier_snapshot::{PrettierSnapshot, PrettierTestFile}; use rome_js_formatter::context::JsFormatOptions; use rome_js_syntax::JsFileSource; mod language; tests_macros::gen_tests! {"tests/specs/prettier/{js,typescript,jsx}/**/*...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/tests/spec_tests.rs
crates/rome_js_formatter/tests/spec_tests.rs
mod quick_test; mod spec_test; mod formatter { mod js_module { tests_macros::gen_tests! {"tests/specs/js/module/**/*.js", crate::spec_test::run, "module"} } mod js_script { tests_macros::gen_tests! {"tests/specs/js/script/**/*.js", crate::spec_test::run, "script"} } mod ts_module...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/tests/language.rs
crates/rome_js_formatter/tests/language.rs
use rome_formatter::{FormatContext, FormatResult, Formatted, IndentStyle, LineWidth, Printed}; use rome_formatter_test::TestFormatLanguage; use rome_js_formatter::context::trailing_comma::TrailingComma; use rome_js_formatter::context::{ ArrowParentheses, JsFormatContext, JsFormatOptions, QuoteProperties, QuoteStyle...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/benches/iai.rs
crates/rome_js_formatter/benches/iai.rs
use rome_formatter::token::string::ToAsciiLowercaseCow; fn to_ascii_lowercase() { let _ = str::to_ascii_lowercase(iai::black_box("lowercase")); let _ = str::to_ascii_lowercase(iai::black_box("upperCASE")); } fn to_ascii_lowercase_cow() { let _ = str::to_ascii_lowercase_cow(iai::black_box("lowercase")); ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_markup/src/lib.rs
crates/rome_markup/src/lib.rs
use proc_macro2::{Delimiter, Group, Ident, TokenStream, TokenTree}; use proc_macro_error::*; use quote::{quote, ToTokens}; struct StackEntry { name: Ident, attributes: Vec<(Ident, TokenTree)>, } impl ToTokens for StackEntry { fn to_tokens(&self, tokens: &mut TokenStream) { let name = &self.name; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/utility_types.rs
crates/rome_rowan/src/utility_types.rs
use std::{fmt, ops::Deref}; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum NodeOrToken<N, T> { Node(N), Token(T), } impl<N, T> NodeOrToken<N, T> { pub fn into_node(self) -> Option<N> { match self { NodeOrToken::Node(node) => Some(node), NodeOrT...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cursor.rs
crates/rome_rowan/src/cursor.rs
//! Implementation of the cursors -- API for convenient access to syntax trees. //! //! Functional programmers will recognize that this module implements a zipper //! for a purely functional (green) tree. //! //! A cursor node (`SyntaxNode`) points to a `GreenNode` and a parent //! `SyntaxNode`. This allows cursor to p...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green.rs
crates/rome_rowan/src/green.rs
mod element; mod node; mod node_cache; mod token; mod trivia; pub(crate) use self::{ element::{GreenElement, GreenElementRef}, node::{Child, Children, GreenNode, GreenNodeData, Slot}, token::{GreenToken, GreenTokenData}, trivia::GreenTrivia, }; pub use self::node_cache::NodeCache; pub(crate) use self:...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/lib.rs
crates/rome_rowan/src/lib.rs
//! A generic library for lossless syntax trees. //! See `examples/s_expressions.rs` for a tutorial. #![forbid( // missing_debug_implementations, unconditional_recursion, future_incompatible, // missing_docs, )] #![deny(unsafe_code)] #![deny(rustdoc::broken_intra_doc_links)] #[doc(hidden)] pub mod macr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax_node_text.rs
crates/rome_rowan/src/syntax_node_text.rs
use crate::{ cursor::{SyntaxNode, SyntaxToken}, TextRange, TextSize, TokenAtOffset, }; use rome_text_size::TextLen; use std::fmt; use std::iter::FusedIterator; #[derive(Clone)] pub struct SyntaxNodeText { node: SyntaxNode, range: TextRange, } impl SyntaxNodeText { pub(crate) fn new(node: SyntaxNod...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax.rs
crates/rome_rowan/src/syntax.rs
mod element; mod node; mod rewriter; mod token; mod trivia; use crate::{AstNode, RawSyntaxKind}; pub use element::{SyntaxElement, SyntaxElementKey}; pub(crate) use node::SyntaxSlots; pub use node::{ Preorder, PreorderWithTokens, SendNode, SyntaxElementChildren, SyntaxNode, SyntaxNodeChildren, SyntaxNodeOptionE...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/tree_builder.rs
crates/rome_rowan/src/tree_builder.rs
use crate::{ cow_mut::CowMut, green::{GreenElement, NodeCache, NodeCacheNodeEntryMut}, syntax::TriviaPiece, GreenNode, Language, NodeOrToken, ParsedChildren, SyntaxFactory, SyntaxKind, SyntaxNode, }; use std::marker::PhantomData; /// A checkpoint for maybe wrapping a node. See `GreenNodeBuilder::checkp...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax_factory.rs
crates/rome_rowan/src/syntax_factory.rs
mod parsed_children; mod raw_syntax; use crate::SyntaxKind; use std::fmt; use std::iter::{FusedIterator, Peekable}; pub use self::parsed_children::{ ParsedChildren, ParsedChildrenIntoIterator, ParsedChildrenIterator, }; pub use self::raw_syntax::{ RawSyntaxElement, RawSyntaxElementRef, RawSyntaxNode, RawSynta...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cow_mut.rs
crates/rome_rowan/src/cow_mut.rs
#[derive(Debug)] pub(crate) enum CowMut<'a, T> { Owned(T), Borrowed(&'a mut T), } impl<T> std::ops::Deref for CowMut<'_, T> { type Target = T; fn deref(&self) -> &T { match self { CowMut::Owned(it) => it, CowMut::Borrowed(it) => it, } } } impl<T> std::ops::D...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/file_source.rs
crates/rome_rowan/src/file_source.rs
use crate::Language; use std::any::TypeId; use std::fmt::Display; use std::path::{Path, PathBuf}; /// Errors around the construct of the source type #[derive(Debug)] pub enum FileSourceError { /// The path has no file name MissingFileName(PathBuf), /// The path has no file extension MissingFileExtensio...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/macros.rs
crates/rome_rowan/src/macros.rs
use crate::{AstNode, Language}; /// Matches a `SyntaxNode` against an `ast` type. /// /// # Example: /// /// ``` /// use rome_rowan::{match_ast, AstNode}; /// use rome_rowan::raw_language::{LiteralExpression, RawLanguageRoot, RawLanguageKind, RawSyntaxTreeBuilder}; /// /// let mut builder = RawSyntaxTreeBuilder::new()...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/token_text.rs
crates/rome_rowan/src/token_text.rs
use crate::GreenToken; use rome_text_size::{TextRange, TextSize}; use std::ops::Deref; use std::{borrow::Borrow, fmt::Formatter}; /// Reference to the text of a SyntaxToken without having to worry about the lifetime of `&str`. #[derive(Eq, Clone)] pub struct TokenText { // Using a green token to ensure this type i...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/serde_impls.rs
crates/rome_rowan/src/serde_impls.rs
use serde::ser::{Serialize, SerializeMap, SerializeSeq, Serializer}; use std::fmt; use crate::{ syntax::{Language, SyntaxNode, SyntaxToken}, NodeOrToken, }; struct SerDisplay<T>(T); impl<T: fmt::Display> Serialize for SerDisplay<T> { fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> whe...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/raw_language.rs
crates/rome_rowan/src/raw_language.rs
//! Provides a sample language implementation that is useful in API explanation or tests use crate::raw_language::RawLanguageKind::{COMMA_TOKEN, LITERAL_EXPRESSION, ROOT}; use crate::{ AstNode, AstSeparatedList, Language, ParsedChildren, RawNodeSlots, RawSyntaxKind, RawSyntaxNode, SyntaxFactory, SyntaxKind, Syn...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/arc.rs
crates/rome_rowan/src/arc.rs
//! Vendored and stripped down version of triomphe use std::{ alloc::{self, Layout}, cmp::Ordering, hash::{Hash, Hasher}, marker::PhantomData, mem::{self, ManuallyDrop}, ops::Deref, ptr::{self, NonNull}, sync::atomic::{ self, Ordering::{Acquire, Relaxed, Release}, }, ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cursor/node.rs
crates/rome_rowan/src/cursor/node.rs
use crate::cursor::{NodeData, SyntaxElement, SyntaxToken, SyntaxTrivia}; use crate::green::{Child, Children, GreenElementRef, Slot}; use crate::{ Direction, GreenNode, GreenNodeData, NodeOrToken, RawSyntaxKind, SyntaxNodeText, TokenAtOffset, WalkEvent, }; use rome_text_size::{TextRange, TextSize}; use std::hash...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cursor/element.rs
crates/rome_rowan/src/cursor/element.rs
use crate::cursor::{SyntaxNode, SyntaxToken}; use crate::green::{GreenElement, GreenElementRef}; use crate::{NodeOrToken, RawSyntaxKind, TokenAtOffset}; use rome_text_size::{TextRange, TextSize}; use std::iter; pub(crate) type SyntaxElement = NodeOrToken<SyntaxNode, SyntaxToken>; impl SyntaxElement { pub(super) f...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cursor/trivia.rs
crates/rome_rowan/src/cursor/trivia.rs
use crate::cursor::SyntaxToken; use crate::green::GreenTrivia; use crate::TriviaPiece; use rome_text_size::{TextRange, TextSize}; use std::fmt; use std::iter::FusedIterator; #[derive(PartialEq, Eq, Clone, Hash)] pub(crate) struct SyntaxTrivia { token: SyntaxToken, is_leading: bool, } impl SyntaxTrivia { p...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/cursor/token.rs
crates/rome_rowan/src/cursor/token.rs
use crate::cursor::{NodeData, SyntaxElement, SyntaxNode, SyntaxTrivia}; use crate::green::GreenElementRef; use crate::{green, Direction, GreenToken, GreenTokenData, RawSyntaxKind, TokenText, WalkEvent}; use rome_text_size::{TextRange, TextSize}; use std::hash::{Hash, Hasher}; use std::ptr::NonNull; use std::rc::Rc; use...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax_factory/raw_syntax.rs
crates/rome_rowan/src/syntax_factory/raw_syntax.rs
use crate::green::GreenElement; use crate::{GreenNode, GreenToken, NodeOrToken, SyntaxKind}; use std::marker::PhantomData; /// New-type wrapper around a `GreenNode`. /// /// Allows third-party crates to access limited information about a `GreenNode` or construct /// a `GreenNode` in a limited places. #[derive(Debug)] ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax_factory/parsed_children.rs
crates/rome_rowan/src/syntax_factory/parsed_children.rs
use crate::green::GreenElement; use crate::syntax_factory::raw_syntax::{RawSyntaxElement, RawSyntaxElementRef}; use crate::SyntaxKind; use std::iter::FusedIterator; use std::marker::PhantomData; /// The parsed children of a node, not accounting for any missing children (required or optional) #[derive(Debug)] pub struc...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax/node.rs
crates/rome_rowan/src/syntax/node.rs
use crate::green::GreenElement; use crate::syntax::element::{SyntaxElement, SyntaxElementKey}; use crate::syntax::SyntaxTrivia; use crate::{ cursor, Direction, GreenNode, Language, NodeOrToken, SyntaxKind, SyntaxList, SyntaxNodeText, SyntaxToken, SyntaxTriviaPiece, TokenAtOffset, WalkEvent, }; use rome_text_siz...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
true
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax/element.rs
crates/rome_rowan/src/syntax/element.rs
use crate::syntax::SyntaxTrivia; use crate::{cursor, Language, NodeOrToken, SyntaxNode, SyntaxToken}; use rome_text_size::{TextRange, TextSize}; use std::iter; use std::ptr::NonNull; pub type SyntaxElement<L> = NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>; impl<L: Language> SyntaxElement<L> { pub fn key(&self) -> S...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax/trivia.rs
crates/rome_rowan/src/syntax/trivia.rs
use crate::{cursor, Language, SyntaxToken}; use rome_text_size::{TextRange, TextSize}; use std::fmt; use std::fmt::Formatter; use std::iter::FusedIterator; use std::marker::PhantomData; #[derive(Clone, Copy, Eq, PartialEq, Hash, Debug)] pub enum TriviaPieceKind { /// A line break (`\n`, `\r`, `\r\n`, ...) Newl...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax/rewriter.rs
crates/rome_rowan/src/syntax/rewriter.rs
//! A module that exports utilities to rewrite a syntax trees use crate::{Language, SyntaxNode, SyntaxSlot, SyntaxToken}; /// A visitor that re-writes a syntax tree while visiting the nodes. /// /// The rewriter visits the nodes in pre-order from top-down. /// Meaning, it first visits the `root`, and then visits the ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/syntax/token.rs
crates/rome_rowan/src/syntax/token.rs
use crate::green::{GreenToken, GreenTrivia}; use crate::syntax::element::SyntaxElementKey; use crate::syntax::SyntaxTrivia; use crate::token_text::TokenText; use crate::{ chain_trivia_pieces, cursor, Direction, Language, NodeOrToken, SyntaxElement, SyntaxKind, SyntaxNode, SyntaxTriviaPiece, TriviaPiece, TriviaP...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/ast/batch.rs
crates/rome_rowan/src/ast/batch.rs
use crate::{ chain_trivia_pieces, AstNode, Language, SyntaxElement, SyntaxKind, SyntaxNode, SyntaxSlot, SyntaxToken, }; use rome_text_edit::TextEdit; use rome_text_size::TextRange; use std::{ cmp, collections::BinaryHeap, iter::{empty, once}, }; pub trait BatchMutationExt<L>: AstNode<Language = L> ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/ast/mutation.rs
crates/rome_rowan/src/ast/mutation.rs
use std::ops; use crate::{AstNode, AstNodeList, AstSeparatedList, SyntaxToken}; pub trait AstNodeExt: AstNode { /// Return a new version of this node with the node `prev_node` replaced with `next_node` /// /// `prev_node` can be a direct child of this node, or an indirect child through any descendant node...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/ast/mod.rs
crates/rome_rowan/src/ast/mod.rs
//! AST definitions for converting untyped syntax nodes into typed AST nodes. //! //! Every field of every AST node is optional, this is to allow the parser to recover //! from any error and produce an ast from any source code. If you don't want to account for //! optionals for everything, you can use ... use rome_tex...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
true
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green/node_cache.rs
crates/rome_rowan/src/green/node_cache.rs
use hashbrown::hash_map::{RawEntryMut, RawOccupiedEntryMut, RawVacantEntryMut}; use rome_text_size::TextSize; use rustc_hash::FxHasher; use std::fmt::{self, Debug, Formatter}; use std::hash::{BuildHasherDefault, Hash, Hasher}; use std::marker::PhantomData; use std::ops::Not; use std::ptr::NonNull; use crate::green::Sl...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green/node.rs
crates/rome_rowan/src/green/node.rs
use std::convert::TryFrom; use std::fmt::Formatter; use std::iter::Enumerate; use std::{ borrow::{Borrow, Cow}, fmt, iter::FusedIterator, mem::{self, ManuallyDrop}, ops, ptr, slice, }; #[cfg(target_pointer_width = "64")] use crate::utility_types::static_assert; use countme::Count; use crate::{ ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green/element.rs
crates/rome_rowan/src/green/element.rs
use crate::{ green::{GreenNode, GreenToken, RawSyntaxKind}, GreenNodeData, NodeOrToken, TextSize, }; use std::borrow::Cow; use super::GreenTokenData; pub(crate) type GreenElement = NodeOrToken<GreenNode, GreenToken>; pub(crate) type GreenElementRef<'a> = NodeOrToken<&'a GreenNodeData, &'a GreenTokenData>; im...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green/trivia.rs
crates/rome_rowan/src/green/trivia.rs
use crate::arc::{Arc, HeaderSlice, ThinArc}; use crate::TriviaPiece; use countme::Count; use rome_text_size::TextSize; use std::fmt::Formatter; use std::mem::ManuallyDrop; use std::{fmt, mem, ptr}; #[derive(PartialEq, Eq, Hash)] pub(crate) struct GreenTriviaHead { _c: Count<GreenTrivia>, } pub(crate) fn has_live(...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/src/green/token.rs
crates/rome_rowan/src/green/token.rs
use std::{ borrow::Borrow, fmt, mem::{self, ManuallyDrop}, ops, ptr, }; use countme::Count; use crate::green::trivia::GreenTrivia; use crate::{ arc::{Arc, HeaderSlice, ThinArc}, green::RawSyntaxKind, TextSize, }; #[derive(PartialEq, Eq, Hash)] struct GreenTokenHead { kind: RawSyntaxKi...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_rowan/benches/mutation.rs
crates/rome_rowan/benches/mutation.rs
use rome_rowan::{ raw_language::{LiteralExpression, RawLanguageKind, RawLanguageRoot, RawSyntaxTreeBuilder}, AstNode, AstNodeExt, BatchMutationExt, SyntaxNodeCast, }; /// ``` /// 0: ROOT@0..1 /// 0: LITERAL_EXPRESSION@0..1 /// 0: STRING_TOKEN@0..1 "a" [] [] /// ``` fn tree_one(a: &str) -> (RawLangu...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_migrate/src/lib.rs
crates/rome_migrate/src/lib.rs
mod analyzers; mod macros; mod registry; use crate::registry::visit_migration_registry; pub use rome_analyze::ControlFlow; use rome_analyze::{ AnalysisFilter, Analyzer, AnalyzerContext, AnalyzerOptions, AnalyzerSignal, InspectMatcher, LanguageRoot, MatchQueryParams, MetadataRegistry, RuleRegistry, }; use rome_...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_migrate/src/macros.rs
crates/rome_migrate/src/macros.rs
#[macro_export] macro_rules! declare_migration { ( $vis:vis $id:ident { version: $version:literal, name: $name:tt, $( $key:ident: $value:expr, )* } ) => { $vis enum $id {} impl rome_analyze::RuleMeta for $id { type Group = $crate::analyzers::MigrationGroup; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_migrate/src/registry.rs
crates/rome_migrate/src/registry.rs
use crate::analyzers::MigrationCategory; use rome_analyze::RegistryVisitor; use rome_json_syntax::JsonLanguage; pub fn visit_migration_registry<V: RegistryVisitor<JsonLanguage>>(registry: &mut V) { registry.record_category::<MigrationCategory>(); }
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_migrate/src/analyzers.rs
crates/rome_migrate/src/analyzers.rs
use crate::analyzers::rule_set::RuleSet; use rome_analyze::{GroupCategory, RegistryVisitor, RuleCategory, RuleGroup}; use rome_json_syntax::JsonLanguage; mod rule_set; pub(crate) struct MigrationGroup; pub(crate) struct MigrationCategory; impl RuleGroup for MigrationGroup { type Language = JsonLanguage; type...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_migrate/src/analyzers/rule_set.rs
crates/rome_migrate/src/analyzers/rule_set.rs
use crate::declare_migration; use rome_analyze::context::RuleContext; use rome_analyze::{Ast, Rule}; use rome_json_syntax::JsonObjectValue; declare_migration! { pub(crate) RuleSet { version: "11.0.0", name: "ruleSet", } } impl Rule for RuleSet { type Query = Ast<JsonObjectValue>; type ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/diagnostics.rs
crates/rome_cli/src/diagnostics.rs
use rome_console::fmt::Formatter; use rome_console::markup; use rome_diagnostics::adapters::{BpafError, IoError}; use rome_diagnostics::{ Advices, Category, Diagnostic, DiagnosticTags, Error, Location, LogCategory, MessageAndDescription, Severity, Visit, }; use rome_service::WorkspaceError; use std::process::{E...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/lib.rs
crates/rome_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. use rome_console:...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/configuration.rs
crates/rome_cli/src/configuration.rs
use crate::cli_options::CliOptions; use crate::{CliDiagnostic, CliSession}; use rome_console::{markup, Console, ConsoleExt}; use rome_deserialize::json::deserialize_from_json_str; use rome_deserialize::Deserialized; use rome_diagnostics::{DiagnosticExt, Error, PrintDiagnostic}; use rome_fs::{FileSystem, OpenOptions}; u...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/panic.rs
crates/rome_cli/src/panic.rs
use std::{ fmt::Write, panic::{set_hook, PanicInfo}, 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: &PanicInfo) { // Buffer the error message t...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/vcs.rs
crates/rome_cli/src/vcs.rs
use crate::cli_options::CliOptions; use crate::diagnostics::{DisabledVcs, NoVcsFolderFound}; use crate::{CliDiagnostic, CliSession}; use rome_console::{markup, ConsoleExt}; use rome_deserialize::StringSet; use rome_diagnostics::PrintDiagnostic; use rome_service::configuration::vcs::{VcsClientKind, VcsConfiguration}; us...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/main.rs
crates/rome_cli/src/main.rs
//! This is the main binary of Rome. //! //! If you're curious about how to use it, check Rome's [website] //! //! [website]: https://rome.tools use bpaf::{Args, ParseFailure}; use rome_cli::{ open_transport, rome_command, setup_panic_handler, to_color_mode, CliDiagnostic, CliSession, RomeCommand, }; use rome_...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/metrics.rs
crates/rome_cli/src/metrics.rs
use std::{ borrow::Cow, collections::HashMap, hash::Hash, ops::Sub, ptr, time::{Duration, Instant}, }; use hdrhistogram::Histogram; use std::sync::{Mutex, RwLock}; use tracing::{span, subscriber::Interest, Level, Metadata, Subscriber}; use tracing_subscriber::{ layer::Context, prelude::...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/cli_options.rs
crates/rome_cli/src/cli_options.rs
use bpaf::Bpaf; use std::str::FromStr; /// Global options applied to all commands #[derive(Debug, Clone, Bpaf)] pub struct CliOptions { /// Set the formatting mode for markup: "off" prints everything as plain text, "force" forces the formatting of markup using ANSI even if the console output is determined to be in...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/service/unix.rs
crates/rome_cli/src/service/unix.rs
use std::{ convert::Infallible, env, fs, io::{self, ErrorKind}, path::PathBuf, time::Duration, }; use rome_lsp::{ServerConnection, ServerFactory}; use tokio::{ io::Interest, net::{ unix::{OwnedReadHalf, OwnedWriteHalf}, UnixListener, UnixStream, }, process::{Child, C...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/service/windows.rs
crates/rome_cli/src/service/windows.rs
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, }; use rome_lsp::{ServerConnection, ServerFactory}; use tokio::{ io::{Asyn...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/service/mod.rs
crates/rome_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
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/ci.rs
crates/rome_cli/src/commands/ci.rs
use crate::cli_options::CliOptions; use crate::configuration::LoadedConfiguration; use crate::vcs::store_path_to_ignore_from_vcs; use crate::{ configuration::load_configuration, execute_mode, CliDiagnostic, CliSession, Execution, TraversalMode, }; use rome_service::configuration::organize_imports::OrganizeImpor...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/version.rs
crates/rome_cli/src/commands/version.rs
use rome_console::fmt::Formatter; use rome_console::{fmt, markup, ConsoleExt}; use rome_service::workspace::ServerInfo; use crate::{CliDiagnostic, CliSession, VERSION}; /// Handle of the `version` command. Prints a more in detail version of rome. pub(crate) fn full_version(session: CliSession) -> Result<(), CliDiagno...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/rage.rs
crates/rome_cli/src/commands/rage.rs
use rome_console::fmt::{Display, Formatter}; use rome_console::{fmt, markup, ConsoleExt, HorizontalLine, Markup}; use rome_diagnostics::termcolor::{ColorChoice, WriteColor}; use rome_diagnostics::{termcolor, PrintDescription}; use rome_fs::FileSystem; use rome_service::workspace::{client, RageEntry, RageParams}; use ro...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/migrate.rs
crates/rome_cli/src/commands/migrate.rs
use crate::cli_options::CliOptions; use crate::configuration::{load_configuration, LoadedConfiguration}; use crate::diagnostics::MigrationDiagnostic; use crate::execute::{execute_mode, Execution, TraversalMode}; use crate::{CliDiagnostic, CliSession}; /// Handler for the "check" command of the Rome CLI pub(crate) fn m...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/check.rs
crates/rome_cli/src/commands/check.rs
use crate::cli_options::CliOptions; use crate::configuration::{load_configuration, LoadedConfiguration}; use crate::vcs::store_path_to_ignore_from_vcs; use crate::{execute_mode, CliDiagnostic, CliSession, Execution, TraversalMode}; use rome_service::configuration::organize_imports::OrganizeImports; use rome_service::co...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/lint.rs
crates/rome_cli/src/commands/lint.rs
use crate::cli_options::CliOptions; use crate::configuration::{load_configuration, LoadedConfiguration}; use crate::vcs::store_path_to_ignore_from_vcs; use crate::{execute_mode, CliDiagnostic, CliSession, Execution, TraversalMode}; use rome_service::workspace::{FixFileMode, UpdateSettingsParams}; use rome_service::{Con...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/mod.rs
crates/rome_cli/src/commands/mod.rs
use crate::cli_options::{cli_options, CliOptions, ColorsArg}; use crate::VERSION; use bpaf::Bpaf; use rome_service::configuration::vcs::VcsConfiguration; use rome_service::configuration::{ configuration, files_configuration, formatter_configuration, javascript::javascript_formatter, vcs::vcs_configuration, File...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/format.rs
crates/rome_cli/src/commands/format.rs
use crate::cli_options::CliOptions; use crate::configuration::{load_configuration, LoadedConfiguration}; use crate::execute::ReportMode; use crate::vcs::store_path_to_ignore_from_vcs; use crate::{execute_mode, CliDiagnostic, CliSession, Execution, TraversalMode}; use rome_service::configuration::vcs::VcsConfiguration; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/init.rs
crates/rome_cli/src/commands/init.rs
use crate::{CliDiagnostic, CliSession}; use rome_console::{markup, ConsoleExt, HorizontalLine}; use rome_service::configuration::Configuration; use rome_service::create_config; pub(crate) fn init(mut session: CliSession) -> Result<(), CliDiagnostic> { let fs = &mut session.app.fs; create_config(fs, Configurati...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/commands/daemon.rs
crates/rome_cli/src/commands/daemon.rs
use crate::{ open_transport, service::{self, ensure_daemon, open_socket, run_daemon}, CliDiagnostic, CliSession, }; use rome_console::{markup, ConsoleExt}; use rome_lsp::ServerFactory; use rome_service::{workspace::WorkspaceClient, TransportError, WorkspaceError}; use std::{env, fs, path::PathBuf}; use toki...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/reports/mod.rs
crates/rome_cli/src/reports/mod.rs
pub mod formatter; use crate::reports::formatter::{FormatterReportFileDetail, FormatterReportSummary}; use formatter::FormatterReport; use rome_diagnostics::{Category, Severity}; use rome_service::WorkspaceError; use serde::Serialize; use std::collections::HashMap; #[derive(Debug, Default, Serialize)] pub struct Repo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/reports/formatter.rs
crates/rome_cli/src/reports/formatter.rs
use serde::Serialize; use std::collections::HashMap; #[derive(Debug, Default, Serialize)] #[serde(rename_all = "camelCase")] pub struct FormatterReport { /// Useful information of the execution summary: Option<FormatterReportSummary>, /// The key is the path of the file files: HashMap<String, Formatte...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/std_in.rs
crates/rome_cli/src/execute/std_in.rs
//! In here, there are the operations that run via standard input //! use crate::execute::diagnostics::{ContentDiffAdvice, FormatDiffDiagnostic}; use crate::execute::Execution; use crate::{CliDiagnostic, CliSession}; use rome_console::{markup, ConsoleExt}; use rome_diagnostics::PrintDiagnostic; use rome_fs::RomePath; u...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/diagnostics.rs
crates/rome_cli/src/execute/diagnostics.rs
use rome_diagnostics::adapters::{IoError, StdError}; use rome_diagnostics::{Advices, Category, Diagnostic, DiagnosticExt, Error, Severity, Visit}; use rome_text_edit::TextEdit; use std::io; #[derive(Debug, Diagnostic)] #[diagnostic( category = "format", message = "File content differs from formatting output" )...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/migrate.rs
crates/rome_cli/src/execute/migrate.rs
use crate::execute::diagnostics::{ContentDiffAdvice, MigrateDiffDiagnostic}; use crate::{CliDiagnostic, CliSession}; use rome_console::{markup, ConsoleExt}; use rome_diagnostics::{category, PrintDiagnostic}; use rome_fs::OpenOptions; use rome_json_parser::JsonParserOptions; use rome_json_syntax::JsonRoot; use rome_migr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/mod.rs
crates/rome_cli/src/execute/mod.rs
mod diagnostics; mod migrate; mod process_file; mod std_in; mod traverse; use crate::cli_options::CliOptions; use crate::execute::traverse::traverse; use crate::{CliDiagnostic, CliSession}; use rome_diagnostics::{category, Category, MAXIMUM_DISPLAYABLE_DIAGNOSTICS}; use rome_fs::RomePath; use rome_service::workspace::...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/traverse.rs
crates/rome_cli/src/execute/traverse.rs
use super::process_file::{process_file, DiffKind, FileStatus, Message}; use crate::cli_options::CliOptions; use crate::execute::diagnostics::{ CIFormatDiffDiagnostic, CIOrganizeImportsDiffDiagnostic, ContentDiffAdvice, FormatDiffDiagnostic, OrganizeImportsDiffDiagnostic, PanicDiagnostic, }; use crate::{ Cli...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file.rs
crates/rome_cli/src/execute/process_file.rs
mod check; mod format; mod lint; mod organize_imports; mod workspace_file; use crate::execute::diagnostics::{ResultExt, UnhandledDiagnostic}; use crate::execute::process_file::check::check_file; use crate::execute::process_file::format::format; use crate::execute::process_file::lint::lint; use crate::execute::traverse...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file/workspace_file.rs
crates/rome_cli/src/execute/process_file/workspace_file.rs
use crate::execute::diagnostics::{ResultExt, ResultIoExt}; use crate::execute::process_file::SharedTraversalOptions; use rome_diagnostics::{category, Error}; use rome_fs::{File, OpenOptions, RomePath}; use rome_service::file_handlers::Language; use rome_service::workspace::{FileGuard, OpenFileParams}; use rome_service:...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file/check.rs
crates/rome_cli/src/execute/process_file/check.rs
use crate::execute::process_file::format::format_with_guard; use crate::execute::process_file::lint::lint_with_guard; use crate::execute::process_file::organize_imports::organize_imports_with_guard; use crate::execute::process_file::workspace_file::WorkspaceFile; use crate::execute::process_file::{FileResult, FileStatu...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file/lint.rs
crates/rome_cli/src/execute/process_file/lint.rs
use crate::execute::diagnostics::ResultExt; use crate::execute::process_file::workspace_file::WorkspaceFile; use crate::execute::process_file::{FileResult, FileStatus, Message, SharedTraversalOptions}; use crate::CliDiagnostic; use rome_diagnostics::{category, Error}; use rome_service::workspace::RuleCategories; use st...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file/organize_imports.rs
crates/rome_cli/src/execute/process_file/organize_imports.rs
use crate::execute::diagnostics::ResultExt; use crate::execute::process_file::workspace_file::WorkspaceFile; use crate::execute::process_file::{ DiffKind, FileResult, FileStatus, Message, SharedTraversalOptions, }; use rome_diagnostics::category; /// Lints a single file and returns a [FileResult] pub(crate) fn org...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/src/execute/process_file/format.rs
crates/rome_cli/src/execute/process_file/format.rs
use crate::execute::diagnostics::{ResultExt, SkippedDiagnostic}; use crate::execute::process_file::workspace_file::WorkspaceFile; use crate::execute::process_file::{ DiffKind, FileResult, FileStatus, Message, SharedTraversalOptions, }; use crate::execute::TraversalMode; use crate::FormatterReportFileDetail; use rom...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/tests/main.rs
crates/rome_cli/tests/main.rs
mod cases; mod commands; mod configs; #[cfg(test)] mod snap_test; #[cfg(test)] use snap_test::assert_cli_snapshot; use bpaf::ParseFailure; use std::path::Path; use rome_cli::{rome_command, CliDiagnostic, CliSession}; use rome_console::{markup, BufferConsole, Console, ConsoleExt}; use rome_fs::{FileSystem, MemoryFile...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_cli/tests/configs.rs
crates/rome_cli/tests/configs.rs
pub const CONFIG_FORMAT: &str = r#"{ "formatter": { "enabled": true, "lineWidth": 160, "indentStyle": "space", "indentSize": 6 } } "#; pub const CONFIG_INIT_DEFAULT: &str = r#"{ "organizeImports": { "enabled": true }, "linter": { "enabled": true, "rules": { "recommended": true } } ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false