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/fuzz/fuzz_targets/rome_format_module.rs | fuzz/fuzz_targets/rome_format_module.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::js_module();
rome_common::fuzz_js_formatter_with_source_type(case, parse_type)
}
#[... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_module.rs | fuzz/fuzz_targets/rome_parse_module.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::js_module();
rome_common::fuzz_js_parser_with_source_type(case, parse_type)
}
#[cfg... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_d_ts.rs | fuzz/fuzz_targets/rome_parse_d_ts.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::d_ts();
rome_common::fuzz_js_parser_with_source_type(case, parse_type)
}
#[cfg(not(... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_format_script.rs | fuzz/fuzz_targets/rome_format_script.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::js_script();
rome_common::fuzz_js_formatter_with_source_type(case, parse_type)
}
#[... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_format_typescript.rs | fuzz/fuzz_targets/rome_format_typescript.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::ts();
rome_common::fuzz_js_formatter_with_source_type(case, parse_type)
}
#[cfg(not... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_all.rs | fuzz/fuzz_targets/rome_parse_all.rs | #![no_main]
mod rome_parse_d_ts;
mod rome_parse_jsx;
mod rome_parse_module;
mod rome_parse_script;
mod rome_parse_tsx;
mod rome_parse_typescript;
use libfuzzer_sys::{fuzz_target, Corpus};
fn do_fuzz(data: &[u8]) -> Corpus {
let mut keep = Corpus::Reject;
if let Corpus::Keep = rome_parse_d_ts::do_fuzz(data) {... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_script.rs | fuzz/fuzz_targets/rome_parse_script.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::js_script();
rome_common::fuzz_js_parser_with_source_type(case, parse_type)
}
#[cfg... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_format_jsx.rs | fuzz/fuzz_targets/rome_format_jsx.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::jsx();
rome_common::fuzz_js_formatter_with_source_type(case, parse_type)
}
#[cfg(no... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_common.rs | fuzz/fuzz_targets/rome_common.rs | //! Common functionality between different fuzzers. Look here if you need to inspect implementation
//! details for the fuzzer harnesses!
#![allow(dead_code)]
use libfuzzer_sys::Corpus;
use rome_analyze::{AnalysisFilter, AnalyzerOptions, ControlFlow, RuleFilter};
use rome_diagnostics::Diagnostic;
use rome_formatter::... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_format_tsx.rs | fuzz/fuzz_targets/rome_format_tsx.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::tsx();
rome_common::fuzz_js_formatter_with_source_type(case, parse_type)
}
#[cfg(no... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_tsx.rs | fuzz/fuzz_targets/rome_parse_tsx.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
use rome_js_syntax::JsFileSource;
pub fn do_fuzz(case: &[u8]) -> Corpus {
let parse_type = JsFileSource::tsx();
rome_common::fuzz_js_parser_with_source_type(case, parse_type)
}
#[cfg(not(f... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/fuzz/fuzz_targets/rome_parse_json.rs | fuzz/fuzz_targets/rome_parse_json.rs | #![cfg_attr(not(feature = "rome_all"), no_main)]
#[path = "rome_common.rs"]
mod rome_common;
use libfuzzer_sys::Corpus;
pub fn do_fuzz(case: &[u8]) -> Corpus {
rome_common::fuzz_json_parser(case)
}
#[cfg(not(feature = "rome_all"))]
libfuzzer_sys::fuzz_target!(|case: &[u8]| -> Corpus { do_fuzz(case) });
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/diagnostics.rs | crates/rome_json_analyze/src/diagnostics.rs | use rome_diagnostics::Diagnostic;
#[derive(Clone, Debug, PartialEq, Eq, Diagnostic)]
#[diagnostic(category = "suppressions/parse")]
pub struct SuppressionDiagnostic {}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/lib.rs | crates/rome_json_analyze/src/lib.rs | mod analyzers;
mod diagnostics;
mod registry;
use crate::diagnostics::SuppressionDiagnostic;
pub use crate::registry::visit_registry;
use rome_analyze::{
AnalysisFilter, AnalyzerOptions, AnalyzerSignal, ControlFlow, LanguageRoot, MatchQueryParams,
MetadataRegistry, RuleRegistry, SuppressionKind,
};
use rome_di... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/registry.rs | crates/rome_json_analyze/src/registry.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::RegistryVisitor;
use rome_json_syntax::JsonLanguage;
pub fn visit_registry<V: RegistryVisitor<JsonLanguage>>(registry: &mut V) {
registry.record_category::<crate::analyzers::Analyzers>();
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/analyzers.rs | crates/rome_json_analyze/src/analyzers.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod nursery;
::rome_analyze::declare_category! { pub (crate) Analyzers { kind : Lint , groups : [self :: nursery :: Nursery ,] } }
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/analyzers/nursery.rs | crates/rome_json_analyze/src/analyzers/nursery.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_duplicate_json_keys;
declare_group! {
pub (crate) Nursery {
name : "nursery" ,
rules : [
self :: no_duplicate_json_keys :: NoDuplicateJsonKeys ,
]
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/src/analyzers/nursery/no_duplicate_json_keys.rs | crates/rome_json_analyze/src/analyzers/nursery/no_duplicate_json_keys.rs | use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_json_syntax::{JsonMemberName, JsonObjectValue, TextRange};
use rome_rowan::{AstNode, AstSeparatedList};
use std::collections::HashMap;
declare_rule! {
/// Disallow two keys with the same name insid... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_analyze/tests/spec_tests.rs | crates/rome_json_analyze/tests/spec_tests.rs | use rome_analyze::{AnalysisFilter, AnalyzerAction, ControlFlow, Never, RuleFilter};
use rome_diagnostics::advice::CodeSuggestionAdvice;
use rome_diagnostics::{DiagnosticExt, Severity};
use rome_json_parser::{parse_json, JsonParserOptions};
use rome_json_syntax::JsonLanguage;
use rome_rowan::AstNode;
use rome_test_utils... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_macros/src/lib.rs | crates/rome_diagnostics_macros/src/lib.rs | use proc_macro::TokenStream;
use proc_macro_error::*;
use syn::{parse_macro_input, DeriveInput};
mod generate;
mod parse;
#[proc_macro_derive(
Diagnostic,
attributes(
diagnostic,
severity,
category,
description,
message,
advice,
verbose_advice,
l... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_macros/src/parse.rs | crates/rome_diagnostics_macros/src/parse.rs | use proc_macro2::{Ident, TokenStream};
use proc_macro_error::*;
use quote::{quote, ToTokens};
use syn::{
parse::{discouraged::Speculative, Error, Parse, ParseStream, Parser, Result},
punctuated::Punctuated,
spanned::Spanned,
token::Paren,
Generics, Token,
};
pub(crate) struct DeriveInput {
pub(... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_macros/src/generate.rs | crates/rome_diagnostics_macros/src/generate.rs | use proc_macro2::{Ident, Span, TokenStream};
use proc_macro_error::*;
use quote::quote;
use crate::parse::{DeriveInput, StaticOrDynamic, StringOrMarkup};
pub(crate) fn generate_diagnostic(input: DeriveInput) -> TokenStream {
let category = generate_category(&input);
let severity = generate_severity(&input);
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/lib.rs | crates/rome_css_syntax/src/lib.rs | #[macro_use]
mod generated;
mod syntax_node;
pub use self::generated::*;
pub use rome_rowan::{
SyntaxNodeText, TextLen, TextRange, TextSize, TokenAtOffset, TriviaPieceKind, WalkEvent,
};
pub use syntax_node::*;
use crate::CssSyntaxKind::*;
use rome_rowan::RawSyntaxKind;
impl From<u16> for CssSyntaxKind {
fn ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/syntax_node.rs | crates/rome_css_syntax/src/syntax_node.rs | //! This module defines the Concrete Syntax Tree used by Rome.
//!
//! The tree is entirely lossless, whitespace, comments, and errors are preserved.
//! It also provides traversal methods including parent, children, and siblings of nodes.
//!
//! This is a simple wrapper around the `rowan` crate which does most of the... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/generated.rs | crates/rome_css_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/generated/nodes_mut.rs | crates/rome_css_syntax/src/generated/nodes_mut.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use crate::{generated::nodes::*, CssSyntaxToken as SyntaxToken};
use rome_rowan::AstNode;
use std::iter::once;
impl CssAnyFunction {
pub fn with_css_simple_function(self, element: CssSimpleFunction) -> Self {
Self::unwrap_cast(
self.s... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/generated/kind.rs | crates/rome_css_syntax/src/generated/kind.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(clippy::all)]
#![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 CssSyntaxKi... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/generated/macros.rs | crates/rome_css_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](rome_rowan::SyntaxNode::kind)"]
#[doc = r" of the provided [rome_rowan::SyntaxNode] and constructs the appropriate"]
#[doc = r" AstNode... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_syntax/src/generated/nodes.rs | crates/rome_css_syntax/src/generated/nodes.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(clippy::enum_variant_names)]
#![allow(clippy::match_like_matches_macro)]
use crate::{
macros::map_syntax_node,
CssLanguage as Language, CssSyntaxElement as SyntaxElement,
CssSyntaxElementChildren as SyntaxElementChildren,
CssSyntaxKi... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_categories/build.rs | crates/rome_diagnostics_categories/build.rs | use quote::{format_ident, quote};
use std::{env, fs, io, path::PathBuf};
macro_rules! define_categories {
( $( $name_link:literal : $link:literal, )* ; $( $name:literal , )* ) => {
const CATEGORIES: &[(&str, Option<&str>)] = &[
$( ($name_link, Some($link)), )*
$( ($name, None), )*
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_categories/src/lib.rs | crates/rome_diagnostics_categories/src/lib.rs | use std::{
hash::{Hash, Hasher},
str::FromStr,
};
/// Metadata for a diagnostic category
///
/// This type cannot be instantiated outside of the `rome_diagnostics_categories`
/// crate, which serves as a registry for all known diagnostic categories
/// (currently this registry is fully static and generated at ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_diagnostics_categories/src/categories.rs | crates/rome_diagnostics_categories/src/categories.rs | // This file contains the list of all diagnostic categories for the Rome
// toolchain
//
// The `define_categories` macro is preprocessed in the build script for the
// crate in order to generate the static registry. The body of the macro
// consists of a list of key-value pairs defining the categories that have an
// ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/diagnostics.rs | crates/rome_lsp/src/diagnostics.rs | use crate::utils::into_lsp_error;
use anyhow::Error;
use rome_service::WorkspaceError;
use std::fmt::{Display, Formatter};
use tower_lsp::lsp_types::MessageType;
#[derive(Debug)]
pub enum LspError {
WorkspaceError(WorkspaceError),
Anyhow(anyhow::Error),
}
impl From<WorkspaceError> for LspError {
fn from(v... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/lib.rs | crates/rome_lsp/src/lib.rs | mod capabilities;
mod converters;
mod diagnostics;
mod documents;
mod extension_settings;
mod handlers;
mod requests;
mod server;
mod session;
mod utils;
pub use crate::extension_settings::WorkspaceSettings;
pub use crate::server::{LSPServer, ServerConnection, ServerFactory};
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/documents.rs | crates/rome_lsp/src/documents.rs | use crate::converters::line_index::LineIndex;
/// Represents an open [`textDocument`]. Can be cheaply cloned.
///
/// [`textDocument`]: https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocumentItem
#[derive(Clone)]
pub(crate) struct Document {
pub(crate) version: i32,
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/handlers.rs | crates/rome_lsp/src/handlers.rs | pub(crate) mod analysis;
pub(crate) mod formatting;
pub(crate) mod rename;
pub(crate) mod text_document;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/session.rs | crates/rome_lsp/src/session.rs | use crate::converters::{negotiated_encoding, PositionEncoding, WideEncoding};
use crate::documents::Document;
use crate::extension_settings::ExtensionSettings;
use crate::extension_settings::CONFIGURATION_SECTION;
use crate::utils;
use anyhow::Result;
use futures::stream::futures_unordered::FuturesUnordered;
use future... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/utils.rs | crates/rome_lsp/src/utils.rs | use crate::converters::line_index::LineIndex;
use crate::converters::{from_proto, to_proto, PositionEncoding};
use anyhow::{ensure, Context, Result};
use rome_analyze::ActionCategory;
use rome_console::fmt::Termcolor;
use rome_console::fmt::{self, Formatter};
use rome_console::MarkupBuf;
use rome_diagnostics::termcolor... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/server.rs | crates/rome_lsp/src/server.rs | use crate::capabilities::server_capabilities;
use crate::diagnostics::{handle_lsp_error, LspError};
use crate::requests::syntax_tree::{SyntaxTreePayload, SYNTAX_TREE_REQUEST};
use crate::session::{
CapabilitySet, CapabilityStatus, ClientInformation, Session, SessionHandle, SessionKey,
};
use crate::utils::{into_lsp... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/extension_settings.rs | crates/rome_lsp/src/extension_settings.rs | use serde::{Deserialize, Serialize};
use serde_json::{Error, Value};
use tracing::trace;
pub(crate) const CONFIGURATION_SECTION: &str = "rome";
#[derive(Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
/// The settings applied to the workspace by the LSP
pub struct Wor... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/capabilities.rs | crates/rome_lsp/src/capabilities.rs | use crate::converters::{negotiated_encoding, PositionEncoding, WideEncoding};
use tower_lsp::lsp_types::{
ClientCapabilities, CodeActionProviderCapability, PositionEncodingKind, ServerCapabilities,
TextDocumentSyncCapability, TextDocumentSyncKind,
};
/// The capabilities to send from server as part of [`Initia... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/converters/to_proto.rs | crates/rome_lsp/src/converters/to_proto.rs | use crate::converters::line_index::LineIndex;
use crate::converters::PositionEncoding;
use anyhow::{Context, Result};
use rome_rowan::{TextRange, TextSize};
use tower_lsp::lsp_types;
/// The function is used to convert TextSize to a LSP position.
pub(crate) fn position(
line_index: &LineIndex,
offset: TextSize... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/converters/line_index.rs | crates/rome_lsp/src/converters/line_index.rs | //! `LineIndex` maps flat `TextSize` offsets into `(Line, Column)`
//! representation.
use std::collections::HashMap;
use std::mem;
use crate::converters::{LineCol, WideChar, WideEncoding, WideLineCol};
use rome_rowan::TextSize;
#[derive(Clone, Debug, PartialEq, Eq)]
pub(crate) struct LineIndex {
/// Offset the ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/converters/mod.rs | crates/rome_lsp/src/converters/mod.rs | use rome_rowan::TextSize;
use tower_lsp::lsp_types::{ClientCapabilities, PositionEncodingKind};
pub(crate) mod from_proto;
pub(crate) mod line_index;
pub(crate) mod to_proto;
pub(crate) fn negotiated_encoding(capabilities: &ClientCapabilities) -> PositionEncoding {
let client_encodings = match &capabilities.gener... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/converters/from_proto.rs | crates/rome_lsp/src/converters/from_proto.rs | use crate::converters::line_index::LineIndex;
use crate::converters::{LineCol, PositionEncoding, WideLineCol};
use anyhow::{Context, Result};
use rome_rowan::{TextRange, TextSize};
use tower_lsp::lsp_types;
/// The function is used to convert a LSP position to TextSize.
pub(crate) fn offset(
line_index: &LineIndex... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/requests/syntax_tree.rs | crates/rome_lsp/src/requests/syntax_tree.rs | use crate::session::Session;
use anyhow::Result;
use rome_service::workspace::GetSyntaxTreeParams;
use serde::{Deserialize, Serialize};
use tower_lsp::lsp_types::{TextDocumentIdentifier, Url};
use tracing::info;
pub const SYNTAX_TREE_REQUEST: &str = "rome_lsp/syntaxTree";
#[derive(Deserialize, Serialize, Debug)]
#[se... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/requests/mod.rs | crates/rome_lsp/src/requests/mod.rs | pub(crate) mod syntax_tree;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/handlers/rename.rs | crates/rome_lsp/src/handlers/rename.rs | use std::collections::HashMap;
use crate::converters::from_proto;
use crate::{session::Session, utils};
use anyhow::{Context, Result};
use tower_lsp::lsp_types::{RenameParams, WorkspaceEdit};
use tracing::trace;
#[tracing::instrument(level = "debug", skip(session), err)]
pub(crate) fn rename(session: &Session, params... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/handlers/analysis.rs | crates/rome_lsp/src/handlers/analysis.rs | use crate::converters::from_proto;
use crate::converters::line_index::LineIndex;
use crate::session::Session;
use crate::utils;
use anyhow::{Context, Result};
use rome_analyze::{ActionCategory, SourceActionKind};
use rome_fs::RomePath;
use rome_service::workspace::{
FeatureName, FeaturesBuilder, FixFileMode, FixFil... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/handlers/text_document.rs | crates/rome_lsp/src/handlers/text_document.rs | use anyhow::Result;
use rome_service::workspace::{
ChangeFileParams, CloseFileParams, GetFileContentParams, Language, OpenFileParams,
};
use tower_lsp::lsp_types;
use tracing::{error, field};
use crate::utils::apply_document_changes;
use crate::{documents::Document, session::Session};
/// Handler for `textDocumen... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/src/handlers/formatting.rs | crates/rome_lsp/src/handlers/formatting.rs | use crate::converters::{from_proto, to_proto};
use crate::diagnostics::LspError;
use crate::session::Session;
use anyhow::Context;
use rome_service::workspace::{FormatFileParams, FormatOnTypeParams, FormatRangeParams};
use tower_lsp::lsp_types::*;
use tracing::debug;
#[tracing::instrument(level = "debug", skip(session... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_lsp/tests/server.rs | crates/rome_lsp/tests/server.rs | use anyhow::bail;
use anyhow::Context;
use anyhow::Error;
use anyhow::Result;
use futures::channel::mpsc::{channel, Sender};
use futures::Sink;
use futures::SinkExt;
use futures::Stream;
use futures::StreamExt;
use rome_fs::RomePath;
use rome_lsp::LSPServer;
use rome_lsp::ServerFactory;
use rome_lsp::WorkspaceSettings;... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_wasm/build.rs | crates/rome_wasm/build.rs | use std::{env, fs, io, path::PathBuf};
use quote::{format_ident, quote};
use rome_js_factory::syntax::JsFileSource;
use rome_js_factory::{
make,
syntax::{AnyJsDeclaration, AnyJsModuleItem, AnyJsStatement},
};
use rome_js_formatter::{context::JsFormatOptions, format_node};
use rome_rowan::AstNode;
use rome_ser... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_wasm/src/lib.rs | crates/rome_wasm/src/lib.rs | use js_sys::Error;
use wasm_bindgen::prelude::*;
use rome_service::workspace::{
self, ChangeFileParams, CloseFileParams, FixFileParams, FormatFileParams, FormatOnTypeParams,
FormatRangeParams, GetControlFlowGraphParams, GetFileContentParams, GetFormatterIRParams,
GetSyntaxTreeParams, OrganizeImportsParams,... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_wasm/src/utils.rs | crates/rome_wasm/src/utils.rs | use std::fmt::Display;
use js_sys::Error;
use wasm_bindgen::prelude::*;
use rome_console::fmt::HTML;
use rome_console::{fmt::Formatter, markup};
use rome_diagnostics::serde::Diagnostic;
use rome_diagnostics::{DiagnosticExt, LineIndexBuf, PrintDiagnostic, SourceCode};
use super::IDiagnostic;
pub(crate) fn set_panic_... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_wasm/tests/web.rs | crates/rome_wasm/tests/web.rs | //! Test suite for the Web and headless browsers.
#![cfg(target_arch = "wasm32")]
extern crate wasm_bindgen_test;
use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);
#[wasm_bindgen_test]
fn pass() {
assert_eq!(1 + 1, 2);
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/lib.rs | crates/rome_js_analyze/src/lib.rs | use crate::suppression_action::apply_suppression_comment;
use rome_analyze::{
AnalysisFilter, Analyzer, AnalyzerContext, AnalyzerOptions, AnalyzerSignal, ControlFlow,
InspectMatcher, LanguageRoot, MatchQueryParams, MetadataRegistry, RuleAction, RuleRegistry,
SuppressionKind,
};
use rome_aria::{AriaPropertie... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers.rs | crates/rome_js_analyze/src/semantic_analyzers.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod a11y;
pub(crate) mod complexity;
pub(crate) mod correctness;
pub(crate) mod nursery;
pub(crate) mod security;
pub(crate) mod style;
pub(crate) mod suspicious;
::rome_analyze::declare_category! { pub (crate) SemanticAnalyzers { kind : Lint , gr... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_services.rs | crates/rome_js_analyze/src/aria_services.rs | use rome_analyze::{
AddVisitor, FromServices, MissingServicesDiagnostic, Phase, Phases, QueryKey, Queryable,
RuleKey, ServiceBag, SyntaxVisitor,
};
use rome_aria::iso::{countries, is_valid_country, is_valid_language, languages};
use rome_aria::{AriaProperties, AriaRoles};
use rome_js_syntax::{AnyJsRoot, AnyJsxA... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers.rs | crates/rome_js_analyze/src/aria_analyzers.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod a11y;
pub(crate) mod nursery;
::rome_analyze::declare_category! { pub (crate) AriaAnalyzers { kind : Lint , groups : [self :: a11y :: A11y , self :: nursery :: Nursery ,] } }
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/suppression_action.rs | crates/rome_js_analyze/src/suppression_action.rs | use crate::utils::batch::JsBatchMutation;
use rome_analyze::SuppressionCommentEmitterPayload;
use rome_js_factory::make::{jsx_expression_child, jsx_ident, jsx_text, token};
use rome_js_syntax::jsx_ext::AnyJsxElement;
use rome_js_syntax::{
AnyJsxChild, JsLanguage, JsSyntaxKind, JsSyntaxToken, JsxChildList, JsxElemen... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_services.rs | crates/rome_js_analyze/src/semantic_services.rs | use rome_analyze::{
AddVisitor, FromServices, MissingServicesDiagnostic, Phase, Phases, QueryKey, QueryMatch,
Queryable, RuleKey, ServiceBag, SyntaxVisitor, Visitor, VisitorContext, VisitorFinishContext,
};
use rome_js_semantic::{SemanticEventExtractor, SemanticModel, SemanticModelBuilder};
use rome_js_syntax::... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/syntax.rs | crates/rome_js_analyze/src/syntax.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod nursery;
::rome_analyze::declare_category! { pub (crate) Syntax { kind : Syntax , groups : [self :: nursery :: Nursery ,] } }
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/ast_utils.rs | crates/rome_js_analyze/src/ast_utils.rs | use rome_js_syntax::{JsLanguage, JsSyntaxNode, JsSyntaxToken, TriviaPieceKind};
use rome_rowan::{AstNode, TriviaPiece};
/// Add any leading and trailing trivia from given source node to the token.
///
/// Adds whitespace trivia if needed for safe replacement of source node.
pub fn token_with_source_trivia<T>(token: Js... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/assists.rs | crates/rome_js_analyze/src/assists.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod correctness;
::rome_analyze::declare_category! { pub (crate) Assists { kind : Action , groups : [self :: correctness :: Correctness ,] } }
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils.rs | crates/rome_js_analyze/src/utils.rs | use rome_js_factory::make;
use rome_js_syntax::{
inner_string_text, AnyJsStatement, JsLanguage, JsModuleItemList, JsStatementList, JsSyntaxNode,
JsVariableDeclaration, JsVariableDeclarator, JsVariableDeclaratorList, JsVariableStatement, T,
};
use rome_rowan::{AstNode, AstSeparatedList, BatchMutation, Direction,... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/registry.rs | crates/rome_js_analyze/src/registry.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::RegistryVisitor;
use rome_js_syntax::JsLanguage;
pub fn visit_registry<V: RegistryVisitor<JsLanguage>>(registry: &mut V) {
registry.record_category::<crate::analyzers::Analyzers>();
registry.record_category::<crate::semantic_analyze... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/options.rs | crates/rome_js_analyze/src/options.rs | //! This module contains the rules that have options
use crate::analyzers::nursery::no_excessive_complexity::{complexity_options, ComplexityOptions};
use crate::semantic_analyzers::nursery::use_exhaustive_dependencies::{
hooks_options, HooksOptions,
};
use crate::semantic_analyzers::nursery::use_naming_convention:... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers.rs | crates/rome_js_analyze/src/analyzers.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
pub(crate) mod a11y;
pub(crate) mod complexity;
pub(crate) mod correctness;
pub(crate) mod nursery;
pub(crate) mod performance;
pub(crate) mod style;
pub(crate) mod suspicious;
::rome_analyze::declare_category! { pub (crate) Analyzers { kind : Lint , groups ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/react.rs | crates/rome_js_analyze/src/react.rs | //! A series of AST utilities to work with the React library
pub mod hooks;
use rome_js_semantic::{Binding, SemanticModel};
use rome_js_syntax::{
AnyJsCallArgument, AnyJsExpression, AnyJsMemberExpression, AnyJsNamedImportSpecifier,
JsCallExpression, JsIdentifierBinding, JsImport, JsImportNamedClause,
JsNa... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow.rs | crates/rome_js_analyze/src/control_flow.rs | use rome_analyze::QueryMatch;
use rome_analyze::{AddVisitor, Phases, Queryable, ServiceBag};
use rome_js_syntax::AnyJsRoot;
use rome_js_syntax::JsLanguage;
use rome_js_syntax::TextRange;
pub type JsControlFlowGraph = rome_control_flow::ControlFlowGraph<JsLanguage>;
pub(crate) type BasicBlock = rome_control_flow::Basic... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/complexity.rs | crates/rome_js_analyze/src/semantic_analyzers/complexity.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_useless_fragments;
declare_group! {
pub (crate) Complexity {
name : "complexity" ,
rules : [
self :: no_useless_fragments :: NoUselessFragments ,
]
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/security.rs | crates/rome_js_analyze/src/semantic_analyzers/security.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_dangerously_set_inner_html;
pub(crate) mod no_dangerously_set_inner_html_with_children;
declare_group! {
pub (crate) Security {
name : "security" ,
rules : [
self :: no_dang... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/a11y.rs | crates/rome_js_analyze/src/semantic_analyzers/a11y.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_positive_tabindex;
pub(crate) mod use_button_type;
declare_group! {
pub (crate) A11y {
name : "a11y" ,
rules : [
self :: no_positive_tabindex :: NoPositiveTabindex ,
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/correctness.rs | crates/rome_js_analyze/src/semantic_analyzers/correctness.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_children_prop;
pub(crate) mod no_const_assign;
pub(crate) mod no_global_object_calls;
pub(crate) mod no_new_symbol;
pub(crate) mod no_render_return_value;
pub(crate) mod no_undeclared_variables;
pub(crate) ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style.rs | crates/rome_js_analyze/src/semantic_analyzers/style.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_arguments;
pub(crate) mod no_parameter_assign;
pub(crate) mod no_restricted_globals;
pub(crate) mod no_shouty_constants;
pub(crate) mod no_var;
pub(crate) mod use_const;
pub(crate) mod use_fragment_syntax;
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/nursery.rs | crates/rome_js_analyze/src/semantic_analyzers/nursery.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_accumulating_spread;
pub(crate) mod no_banned_types;
pub(crate) mod no_constant_condition;
pub(crate) mod no_global_is_finite;
pub(crate) mod no_global_is_nan;
pub(crate) mod no_unsafe_declaration_merging;
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_analyze::declare_group;
pub(crate) mod no_array_index_key;
pub(crate) mod no_catch_assign;
pub(crate) mod no_class_assign;
pub(crate) mod no_console_log;
pub(crate) mod no_duplicate_parameters;
pub(crate) mod no_function_assign;
pub(crate) mod no_i... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/a11y/no_positive_tabindex.rs | crates/rome_js_analyze/src/semantic_analyzers/a11y/no_positive_tabindex.rs | use crate::react::{ReactApiCall, ReactCreateElementCall};
use crate::semantic_services::Semantic;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::SemanticModel;
use rome_js_syntax::jsx_ext::AnyJsxElement;
use rome_js_syntax:... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/a11y/use_button_type.rs | crates/rome_js_analyze/src/semantic_analyzers/a11y/use_button_type.rs | use crate::react::{ReactApiCall, ReactCreateElementCall};
use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::{
AnyJsxElementName, JsCallExpression, JsxAttribute, JsxOpeningElement, JsxSelfClosingElement,... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_array_index_key.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_array_index_key.rs | use crate::react::{is_react_call_api, ReactLibrary};
use crate::semantic_services::Semantic;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::{
AnyJsFunction, AnyJsMemberExpression, JsCallArgumentList, JsCallArguments, JsCa... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_label_var.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_label_var.rs | use crate::{semantic_services::Semantic, JsRuleAction};
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::{JsLabeledStatement, JsSyntaxNode, JsSyntaxToken};
use rome_rowan::AstNode;
declare_rule! {
/// Disallow labels that share a name with... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_catch_assign.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_catch_assign.rs | use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::ReferencesExtensions;
use rome_js_syntax::{JsCatchClause, JsSyntaxNode};
use rome_rowan::AstNode;
declare_rule! {
/// Disallow reassigning exceptions... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_class_assign.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_class_assign.rs | use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::{Reference, ReferencesExtensions};
use rome_js_syntax::AnyJsClass;
use crate::semantic_services::Semantic;
declare_rule! {
/// Disallow reassigning class members.
///... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_function_assign.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_function_assign.rs | use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::{Reference, ReferencesExtensions};
use rome_js_syntax::{JsFunctionDeclaration, JsIdentifierBinding};
use rome_rowan::AstNode;
declare_rule! {
/// Dis... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_duplicate_parameters.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_duplicate_parameters.rs | use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::parameter_ext::{AnyJsParameterList, AnyJsParameters, AnyParameter};
use rome_js_syntax::{
AnyJsArrayBindingPatternElement, AnyJsBinding, AnyJsBindingPattern,
AnyJsObjectBindingPattern... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_redeclare.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_redeclare.rs | use crate::semantic_services::SemanticServices;
use rome_analyze::declare_rule;
use rome_analyze::{context::RuleContext, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::Scope;
use rome_js_syntax::binding_ext::AnyJsBindingDeclaration;
use rome_js_syntax::{
AnyTsType, TextRange, TsIndexSignatur... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_import_assign.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_import_assign.rs | use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::ReferencesExtensions;
use rome_js_syntax::{
JsDefaultImportSpecifier, JsIdentifierAssignment, JsIdentifierBinding, JsImportDefaultClause,
JsImport... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_console_log.rs | crates/rome_js_analyze/src/semantic_analyzers/suspicious/no_console_log.rs | use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::{global_identifier, AnyJsMemberExpression, JsCallExpression};
use rome_rowan::AstNode;
declare_rule! {
/// Disallow the use of `console.log`
///
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/no_arguments.rs | crates/rome_js_analyze/src/semantic_analyzers/style/no_arguments.rs | use crate::semantic_services::SemanticServices;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::TextRange;
declare_rule! {
/// Disallow the use of ```arguments```
///
/// ## Examples
///
/// ### Invalid
///
/// ```j... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/no_parameter_assign.rs | crates/rome_js_analyze/src/semantic_analyzers/style/no_parameter_assign.rs | use crate::semantic_services::Semantic;
use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_semantic::{AllBindingWriteReferencesIter, Reference, ReferencesExtensions};
use rome_js_syntax::{AnyJsBinding, AnyJsBindingPattern, AnyJsFormalParameter, AnyJsParam... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/no_shouty_constants.rs | crates/rome_js_analyze/src/semantic_analyzers/style/no_shouty_constants.rs | use crate::{semantic_services::Semantic, utils::batch::JsBatchMutation, JsRuleAction};
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Applicability;
use rome_js_factory::make::{js_literal_member_name, js_property_object_membe... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/use_const.rs | crates/rome_js_analyze/src/semantic_analyzers/style/use_const.rs | use crate::{semantic_services::Semantic, JsRuleAction};
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Applicability;
use rome_js_factory::make;
use rome_js_semantic::{ReferencesExtensions, Scope, SemanticModel, SemanticScop... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/use_fragment_syntax.rs | crates/rome_js_analyze/src/semantic_analyzers/style/use_fragment_syntax.rs | use crate::react::{jsx_member_name_is_react_fragment, jsx_reference_identifier_is_fragment};
use crate::semantic_services::Semantic;
use crate::JsRuleAction;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Ap... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/no_restricted_globals.rs | crates/rome_js_analyze/src/semantic_analyzers/style/no_restricted_globals.rs | use crate::semantic_services::SemanticServices;
use bpaf::Bpaf;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_deserialize::json::{has_only_known_keys, VisitJsonNode};
use rome_deserialize::{DeserializationDiagnostic, VisitNode};
use ro... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/style/no_var.rs | crates/rome_js_analyze/src/semantic_analyzers/style/no_var.rs | use crate::{control_flow::AnyJsControlFlowRoot, semantic_services::Semantic, JsRuleAction};
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Applicability;
use rome_js_factory::make;
use rome_js_syntax::{JsModule, JsScript, JsS... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/complexity/no_useless_fragments.rs | crates/rome_js_analyze/src/semantic_analyzers/complexity/no_useless_fragments.rs | use crate::react::{jsx_member_name_is_react_fragment, jsx_reference_identifier_is_fragment};
use crate::semantic_services::Semantic;
use crate::JsRuleAction;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Ap... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs | crates/rome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs | use crate::JsRuleAction;
use crate::{semantic_services::Semantic, utils::rename::RenameSymbolExtensions};
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_diagnostics::Applicability;
use rome_js_semantic::{ReferencesExtensions, SemanticScop... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/correctness/use_is_nan.rs | crates/rome_js_analyze/src/semantic_analyzers/correctness/use_is_nan.rs | use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_js_semantic::SemanticModel;
use rome_js_syntax::{
global_identifier, AnyJsExpression, AnyJsMemberExpression, JsBinaryExpression, JsCaseClause,
JsSwitchStatement, TextRange,
};
use rome_rowan::{declare_node_u... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/semantic_analyzers/correctness/no_render_return_value.rs | crates/rome_js_analyze/src/semantic_analyzers/correctness/no_render_return_value.rs | use crate::react::{is_react_call_api, ReactLibrary};
use crate::semantic_services::Semantic;
use rome_analyze::context::RuleContext;
use rome_analyze::{declare_rule, Rule, RuleDiagnostic};
use rome_console::markup;
use rome_js_syntax::{JsCallExpression, JsExpressionStatement};
use rome_rowan::AstNode;
declare_rule! {
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.