Repository Analysis

astral-sh/ruff

An extremely fast Python linter and code formatter, written in Rust.

5.6 Low AI signal View on GitHub
5.6
Adjusted Score
5.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
47,735
Stars
Rust
Language
908,420
Lines of Code
3539
Files
4756
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 96MEDIUM 70LOW 4590

Pattern Findings

4756 matches across 18 categories. Click a row to expand file-level details.

Over-Commented Block3983 hits · 3712 pts
SeverityFileLineSnippet
LOWCargo.toml321opt-level = 1
LOW.markdownlint.yaml21MD024:
LOWcrates/ty_site_packages/src/version.rs21
LOWcrates/ty_site_packages/src/lib.rs41/// `uv run --with` invocations, meanwhile, "extend" a parent environment
LOWcrates/ty_site_packages/src/lib.rs521 include_system_site_packages: bool,
LOWcrates/ty_site_packages/src/lib.rs1061 /// the provided path should point to the `sys.prefix` of a virtual environment,
LOWcrates/ty_site_packages/src/lib.rs1461 //
LOWcrates/ty_site_packages/src/lib.rs1801 // `/opt/homebrew/opt/python@3.13/bin` and indeed if you look for `../lib/python3.13/`
LOWcrates/ty_site_packages/src/lib.rs1881 /// The `sys.prefix` path came from the `VIRTUAL_ENV` environment variable
LOWcrates/ty_site_packages/src/lib.rs1961 }
LOWcrates/ty_site_packages/src/lib.rs1981/// that the `home` value will be an absolute path.
LOWcrates/ruff/tests/analyze_graph.rs821 let root = ChildPath::new(tempdir.path());
LOWcrates/ruff/tests/cli/format.rs561#[test_case::test_case("full")]
LOWcrates/ruff/tests/cli/lint.rs3121 pass
LOWcrates/ruff/tests/cli/lint.rs3141/// │ ├── __init__.py
LOWcrates/ruff/tests/cli/main.rs21mod show_settings;
LOWcrates/ruff/tests/cli/main.rs41/// ```rust,no_run
LOWcrates/ruff/tests/cli/main.rs181 /// Returns the path to a fixture file inside the crate root.
LOWcrates/ruff/src/cache.rs61/// `Cache` holds everything required to display the diagnostics for a single
LOWcrates/ruff/src/cache.rs321struct PackageCache {
LOWcrates/ruff/src/args.rs41 #[clap(flatten)]
LOWcrates/ruff/src/args.rs61 //
LOWcrates/ruff/src/args.rs121#[command(version)]
LOWcrates/ruff/src/args.rs161 },
LOWcrates/ruff/src/args.rs201 /// to files that depend on it.
LOWcrates/ruff/src/args.rs221 /// Include imports that are only used for type checking (i.e., imports within `if TYPE_CHECKING:` blocks).
LOWcrates/ruff/src/args.rs241 no_fix: bool,
LOWcrates/ruff/src/args.rs261 /// Apply fixes to resolve lint violations, but don't report on, or exit non-zero for, leftover violations. Implies
LOWcrates/ruff/src/args.rs401 /// Use `--no-force-exclude` to disable.
LOWcrates/ruff/src/args.rs501 /// List of files or directories to format.
LOWcrates/ruff/src/args.rs541 /// Enforce exclusions, even for paths passed to Ruff directly on the command-line.
LOWcrates/ruff/src/args.rs561 /// The minimum Python version that should be supported.
LOWcrates/ruff/src/args.rs581 ///
LOWcrates/ruff/src/args.rs921 }
LOWcrates/ruff_python_literal/src/format.rs181 _ => (None, text),
LOWcrates/ruff_python_literal/src/format.rs201/// Nested placeholders can include additional format specifiers.
LOWcrates/ruff_python_trivia/src/textwrap.rs1//! Functions related to adding and removing indentation from lines of
LOWcrates/ruff_python_trivia/src/textwrap.rs21///
LOWcrates/ruff_python_trivia/src/textwrap.rs41/// assert_eq!(indent("foo = 123\n\nprint(foo)\n", "# "),
LOWcrates/ruff_python_trivia/src/textwrap.rs81/// ```
LOWcrates/ruff_python_trivia/src/textwrap.rs141/// ```
LOWcrates/ruff_python_trivia/src/textwrap.rs181 result.push_str(&line.as_full_str()[prefix_len..]);
LOWcrates/ruff_python_trivia/src/textwrap.rs201/// removed and the formfeeds reinstated
LOWcrates/ruff_python_trivia/src/pragmas.rs1/// Returns `true` if a comment appears to be a pragma comment.
LOWcrates/ruff_python_trivia/src/comments.rs61 position.is_own_line() && matches!(Self::from_comment(slice), Some(Self::Off))
LOWcrates/ruff_python_trivia/src/comments.rs81
LOWcrates/ruff_python_trivia/src/comment_ranges.rs81 /// # This is a block comment
LOWcrates/ruff_workspace/src/options.rs41use ruff_options_metadata::{OptionsMetadata, Visit};
LOWcrates/ruff_workspace/src/options.rs61 #[option(
LOWcrates/ruff_workspace/src/options.rs141 /// Enforce a requirement on the version of Ruff, to enforce at runtime.
LOWcrates/ruff_workspace/src/options.rs161 default = "false",
LOWcrates/ruff_workspace/src/options.rs181 /// (e.g., the directory containing your `pyproject.toml`).
LOWcrates/ruff_workspace/src/options.rs201 /// - Single-path patterns, like `.mypy_cache` (to exclude any directory
LOWcrates/ruff_workspace/src/options.rs221 /// specified by [`include`](#include).
LOWcrates/ruff_workspace/src/options.rs241 /// respect these exclusions unequivocally.
LOWcrates/ruff_workspace/src/options.rs321 default = r#"[]"#,
LOWcrates/ruff_workspace/src/options.rs341 /// ```toml
LOWcrates/ruff_workspace/src/options.rs361 default = r#""py310""#,
LOWcrates/ruff_workspace/src/options.rs381 /// context managers on Python 3.10+.
LOWcrates/ruff_workspace/src/options.rs401 /// These defaults ensure that Ruff supports both flat layouts and `src` layouts out-of-the-box.
3923 more matches not shown…
Cross-File Repetition79 hits · 395 pts
SeverityFileLineSnippet
HIGHcrates/ty_ide/src/folding_range.rs04 | | this is an f-string 5 | | used as a docstring. 6 | |
HIGHcrates/ty_ide/src/folding_range.rs04 | | this is an f-string 5 | | used as a docstring. 6 | |
HIGHcrates/ty_ide/src/folding_range.rs04 | | this is an f-string 5 | | used as a docstring. 6 | |
HIGHcrates/ty_ide/src/folding_range.rs012 | | this is a t-string 13 | | used as a docstring. 14 | |
HIGHcrates/ty_ide/src/folding_range.rs012 | | this is a t-string 13 | | used as a docstring. 14 | |
HIGHcrates/ty_ide/src/folding_range.rs012 | | this is a t-string 13 | | used as a docstring. 14 | |
HIGHcrates/ty_ide/src/folding_range.rs020 | | this is a raw string 21 | | used as a docstring. 22 | |
HIGHcrates/ty_ide/src/folding_range.rs020 | | this is a raw string 21 | | used as a docstring. 22 | |
HIGHcrates/ty_ide/src/folding_range.rs020 | | this is a raw string 21 | | used as a docstring. 22 | |
HIGHcrates/ty_ide/src/folding_range.rs0split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct
HIGHcrates/ty_ide/src/folding_range.rs0split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct
HIGHcrates/ty_ide/src/folding_range.rs0split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is the docs for this value wow these are good docs!
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great func!! args: a: first for a reason b: coming for `a`'s title
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGHcrates/ty_ide/src/hover.rs0this is such a great class!! don't you know? everyone loves my class!!
HIGH…/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…ff_linter/src/rules/pydoclint/rules/check_docstring.rs0calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs0calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele
HIGH…rules/pydocstyle/rules/newline_after_last_paragraph.rs0return a sorted copy of the list. /// /// sort the list in ascending order and return a copy of the result using the bub
HIGH…src/rules/pydocstyle/rules/multi_line_summary_start.rs0return a sorted copy of the list. /// /// sort the list in ascending order and return a copy of the result using the bub
19 more matches not shown…
Hyper-Verbose Identifiers330 hits · 355 pts
SeverityFileLineSnippet
LOW…ff_python_parser/resources/valid/statement/function.py9def positional_parameters_with_default_values(a, b=20, c=30):
LOW…ff_python_parser/resources/valid/statement/function.py17def positional_only_and_positional_parameters(a, /, b, c):
LOW…ff_python_parser/resources/valid/statement/function.py21def pos_args_with_defaults_and_varargs_and_kwargs(a, b=20, /, c=30, *args, **kwargs):
LOW…ff_python_parser/resources/valid/statement/function.py29def keyword_only_parameters_with_defaults(*, a, b=20, c=30):
LOW…ff_python_parser/resources/valid/statement/function.py33def kw_only_args_with_defaults_and_varargs(*args, a, b=20, c=30):
LOW…ff_python_parser/resources/valid/statement/function.py37def kw_only_args_with_defaults_and_kwargs(*, a, b=20, c=30, **kwargs):
LOW…ff_python_parser/resources/valid/statement/function.py41def kw_only_args_with_defaults_and_varargs_and_kwargs(*args, a, b=20, c=30, **kwargs):
LOW…ff_python_parser/resources/valid/statement/function.py49def pos_and_kw_only_args_with_defaults(a, b, /, c, *, d, e=20, f=30):
LOW…ff_python_parser/resources/valid/statement/function.py53def pos_and_kw_only_args_with_defaults_and_varargs(a, b, /, c, *args, d, e=20, f=30):
LOW…ff_python_parser/resources/valid/statement/function.py57def pos_and_kw_only_args_with_defaults_and_kwargs(
LOW…ff_python_parser/resources/valid/statement/function.py63def pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs(
LOW…ff_python_parser/resources/valid/statement/function.py69def positional_and_keyword_parameters(a, b, c, *, d, e, f):
LOW…ff_python_parser/resources/valid/statement/function.py73def positional_and_keyword_parameters_with_defaults(a, b, c, *, d, e=20, f=30):
LOW…ff_python_parser/resources/valid/statement/function.py77def positional_and_keyword_parameters_with_defaults_and_varargs(
LOW…ff_python_parser/resources/valid/statement/function.py83def positional_and_keyword_parameters_with_defaults_and_varargs_and_kwargs(
LOWcrates/ty_ide/src/rename.rs314class DataProcessor:
LOWcrates/ty_ide/src/semantic_tokens.rs2666def function_with_annotations(param1: int, param2: str) -> Optional[List[str]]:
LOWcrates/ty_ide/src/find_references.rs1075class DataProcessor:
LOWcrates/ty_ide/src/find_references.rs1092 4 | class DataProcessor:
LOWcrates/ruff_benchmark/resources/large/dataset.py424def test_select_multiple_items_by_index(ds3):
LOWcrates/ruff_benchmark/resources/large/dataset.py434def test_select_multiple_items_by_slice(ds3):
LOWcrates/ruff_benchmark/resources/large/dataset.py444def test_select_item_by_iteminfo():
LOWcrates/ruff_benchmark/resources/large/dataset.py986def test_int_is_valid_type_info():
LOWcrates/ruff_benchmark/resources/large/dataset.py995def test_int_is_valid_unit_info():
LOWcrates/ruff_benchmark/resources/large/dataset.py1003def test_default_unit_from_type():
LOWcrates/ruff_benchmark/resources/large/dataset.py57def test_create_wrong_data_type_error():
LOWcrates/ruff_benchmark/resources/large/dataset.py169def test_index_with_attribute():
LOWcrates/ruff_benchmark/resources/large/dataset.py228def test_getitem_multi_indexing_attempted(ds3):
LOWcrates/ruff_benchmark/resources/large/dataset.py277def test_select_subset_isel_axis_out_of_range_error(ds2):
LOWcrates/ruff_benchmark/resources/large/dataset.py294def test_select_temporal_subset_by_idx():
LOWcrates/ruff_benchmark/resources/large/dataset.py314def test_temporal_subset_fancy():
LOWcrates/ruff_benchmark/resources/large/dataset.py343def test_subset_with_datetime():
LOWcrates/ruff_benchmark/resources/large/dataset.py401def test_select_multiple_items_by_name():
LOWcrates/ruff_benchmark/resources/large/dataset.py463def test_select_subset_isel_multiple_idxs():
LOWcrates/ruff_benchmark/resources/large/dataset.py511def test_create_named_undefined():
LOWcrates/ruff_benchmark/resources/large/dataset.py528def test_to_dataframe_single_timestep():
LOWcrates/ruff_benchmark/resources/large/dataset.py562def test_multidimensional_to_dataframe_no_supported():
LOWcrates/ruff_benchmark/resources/large/dataset.py610def test_interp_time_to_other_dataset():
LOWcrates/ruff_benchmark/resources/large/dataset.py673def test_extrapolate_not_allowed():
LOWcrates/ruff_benchmark/resources/large/dataset.py719def test_modify_selected_variable():
LOWcrates/ruff_benchmark/resources/large/dataset.py764def test_aggregation_workflows(tmpdir):
LOWcrates/ruff_benchmark/resources/large/dataset.py782def test_aggregation_dataset_no_time():
LOWcrates/ruff_benchmark/resources/large/dataset.py813def test_to_dfs_extension_validation(tmpdir):
LOWcrates/ruff_benchmark/resources/large/dataset.py895def test_aggregate_across_items():
LOWcrates/ruff_benchmark/resources/large/dataset.py914def test_aggregate_selected_items_dfsu_save_to_new_file(tmpdir):
LOWcrates/ruff_benchmark/resources/large/dataset.py1021def test_default_name_from_type():
LOWcrates/ruff_benchmark/resources/large/dataset.py1036def test_iteminfo_string_type_should_fail_with_helpful_message():
LOWcrates/ruff_benchmark/resources/large/dataset.py1152def test_create_infer_name_from_eum():
LOWcrates/ruff_benchmark/resources/large/dataset.py1177def test_add_inconsistent_dataset(ds1):
LOWcrates/ruff_benchmark/resources/large/dataset.py1269def test_concat_dataarray_by_time():
LOWcrates/ruff_benchmark/resources/large/dataset.py1312def test_concat_by_time_inconsistent_shape_not_possible():
LOWcrates/ruff_benchmark/resources/large/dataset.py1320def test_concat_by_time_no_time():
LOWcrates/ruff_benchmark/resources/large/dataset.py1350def test_renamed_dataset_has_updated_attributes(ds1: mikeio.Dataset):
LOWcrates/ruff_benchmark/resources/large/dataset.py1458def test_merge_same_name_error():
LOWcrates/ruff_benchmark/resources/large/dataset.py1469def test_incompatible_data_not_allowed():
LOWcrates/ruff_benchmark/resources/large/dataset.py1535def test_create_dataset_with_many_items():
LOWcrates/ruff_benchmark/resources/large/dataset.py1552def test_create_array_with_defaults_from_dataset():
LOWcrates/ruff_benchmark/resources/tomllib/_parser.py275def skip_comments_and_array_ws(src: str, pos: Pos) -> Pos:
LOWcrates/ruff_benchmark/resources/tomllib/_parser.py497def parse_basic_str_escape_multiline(src: str, pos: Pos) -> tuple[Pos, str]:
LOWcrates/ruff_benchmark/resources/numpy/ctypeslib.py398 def _ctype_from_dtype_subarray(dtype):
270 more matches not shown…
Unused Imports134 hits · 134 pts
SeverityFileLineSnippet
LOW…ruff_python_parser/resources/valid/statement/import.py1
LOW…ruff_python_parser/resources/valid/statement/import.py2
LOW…ruff_python_parser/resources/valid/statement/import.py3
LOW…ruff_python_parser/resources/valid/statement/import.py4
LOW…ruff_python_parser/resources/valid/statement/import.py4
LOW…ruff_python_parser/resources/valid/statement/import.py4
LOW…ruff_python_parser/resources/valid/statement/import.py5
LOW…ruff_python_parser/resources/valid/statement/import.py5
LOW…python_parser/resources/valid/statement/from_import.py1
LOW…python_parser/resources/valid/statement/from_import.py2
LOW…python_parser/resources/valid/statement/from_import.py3
LOW…python_parser/resources/valid/statement/from_import.py3
LOW…python_parser/resources/valid/statement/from_import.py4
LOW…python_parser/resources/valid/statement/from_import.py5
LOW…python_parser/resources/valid/statement/from_import.py6
LOW…python_parser/resources/valid/statement/from_import.py7
LOW…python_parser/resources/valid/statement/from_import.py8
LOW…python_parser/resources/valid/statement/from_import.py8
LOW…python_parser/resources/valid/statement/from_import.py8
LOW…python_parser/resources/valid/statement/from_import.py9
LOW…n_parser/resources/inline/ok/import_stmt_terminator.py1
LOW…n_parser/resources/inline/ok/import_stmt_terminator.py1
LOW…n_parser/resources/inline/ok/import_stmt_terminator.py2
LOW…n_parser/resources/inline/ok/import_stmt_terminator.py2
LOW…hon_parser/resources/inline/ok/valid_future_feature.py1
LOW…er/resources/inline/ok/simple_stmts_with_semicolons.py1
LOW…er/resources/inline/ok/simple_stmts_with_semicolons.py1
LOW…hon_parser/resources/inline/ok/from_import_no_space.py1
LOW…hon_parser/resources/inline/ok/from_import_no_space.py2
LOW…thon_parser/resources/inline/ok/debug_rename_import.py1
LOW…thon_parser/resources/inline/ok/debug_rename_import.py2
LOW…thon_parser/resources/inline/ok/debug_rename_import.py3
LOW…r/resources/inline/ok/dotted_name_normalized_spaces.py1
LOW…r/resources/inline/ok/dotted_name_normalized_spaces.py2
LOW…ser/resources/inline/ok/import_as_name_soft_keyword.py1
LOW…ser/resources/inline/ok/import_as_name_soft_keyword.py2
LOW…ser/resources/inline/ok/import_as_name_soft_keyword.py3
LOW…ser/resources/inline/ok/import_as_name_soft_keyword.py4
LOW…rces/inline/ok/from_import_soft_keyword_module_name.py1
LOW…rces/inline/ok/from_import_soft_keyword_module_name.py2
LOW…rces/inline/ok/from_import_soft_keyword_module_name.py3
LOW…rces/inline/ok/from_import_soft_keyword_module_name.py4
LOW…rces/inline/ok/from_import_soft_keyword_module_name.py5
LOW…_python_parser/resources/inline/ok/import_from_star.py1
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py1
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py1
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py2
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py2
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py3
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py3
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py4
LOW…ser/resources/inline/ok/from_import_stmt_terminator.py4
LOW…rces/inline/ok/lazy_import_soft_keyword_split_py315.py3
LOW…rces/inline/ok/lazy_import_soft_keyword_split_py315.py6
LOW…hon_parser/resources/inline/err/debug_shadow_import.py1
LOW…hon_parser/resources/inline/err/debug_shadow_import.py2
LOW…hon_parser/resources/inline/err/debug_shadow_import.py3
LOW…hon_parser/resources/inline/err/debug_shadow_import.py4
LOW…_parser/resources/inline/err/invalid_future_feature.py1
LOW…_parser/resources/inline/err/invalid_future_feature.py2
74 more matches not shown…
Excessive Try-Catch Wrapping55 hits · 72 pts
SeverityFileLineSnippet
LOW…es/ruff_python_parser/resources/valid/statement/try.py15except Exception as e:
LOW…esources/inline/ok/except_stmt_as_name_soft_keyword.py2except Exception as match: ...
LOW…esources/inline/ok/except_stmt_as_name_soft_keyword.py3except Exception as case: ...
LOW…esources/inline/ok/except_stmt_as_name_soft_keyword.py4except Exception as type: ...
LOW…python_parser/resources/inline/err/debug_shadow_try.py2except Exception as __debug__: ...
LOWcrates/ruff_python_formatter/src/comments/mod.rs744except Exception as ex:
LOWcrates/ruff_python_formatter/src/comments/mod.rs771 except Exception as ex:
MEDIUMcrates/ruff_python_formatter/src/comments/mod.rs766def test():
LOW…es/ty_python_core/src/builder/loop_bindings_visitor.rs357 except Exception as exc_var:
LOWcrates/ty_ide/src/semantic_tokens.rs4195except Exception as e:
MEDIUMcrates/ty_ide/src/find_references.rs252 print(f'Error: {err}')
MEDIUMcrates/ty_ide/src/find_references.rs268 5 | print(f'Error: {err}')
LOWcrates/ruff_python_codegen/src/generator.rs1832except Exception as e:
LOWcrates/ruff_benchmark/resources/numpy/ctypeslib.py305 except Exception as e:
LOW…python_semantic/resources/corpus/62_try_except_cond.py3except Exception as exc:
LOW…thon_semantic/resources/corpus/62_try_except_return.py4 except Exception as e:
MEDIUM…thon_semantic/resources/corpus/62_try_except_return.py1def foo():
LOW…ython_semantic/resources/mdtest/pep695_type_aliases.md154except Exception:
LOW…resources/mdtest/diagnostics/semantic_syntax_errors.md556 except Exception:
MEDIUM…resources/mdtest/diagnostics/semantic_syntax_errors.md553def i(a):
LOW…thon_semantic/src/types/ide_support/unused_bindings.rs239 except Exception as dead_exc:
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md137def bad_yield_in_finally_not_last():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md173def bad_yield_in_except_with_cleanup():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md191def bad_yield_in_else_with_cleanup():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md337def good_async_try_finally():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md355def good_nested_try_finally():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md385def good_try_except_with_else():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md395def good_yield_in_except_no_finally():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md403def good_yield_in_except_with_finally():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md413def good_yield_in_else_with_finally():
MEDIUM…nter/resources/mdtest/ruff/fallible-context-manager.md425def good_yield_in_finally():
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md380 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md388 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md398 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md406 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md416 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md445 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md158 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md176 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md194 except Exception:
LOW…nter/resources/mdtest/ruff/fallible-context-manager.md348 except Exception:
LOWcrates/ruff_linter/src/rules/pylint/helpers.rs614 except Exception:
LOWcrates/ruff_linter/src/rules/pylint/helpers.rs664 except Exception:
MEDIUMcrates/ruff_linter/src/rules/pylint/helpers.rs611def f():
MEDIUMcrates/ruff_linter/src/rules/pylint/helpers.rs625def f():
LOW…r/src/rules/pylint/rules/too_many_return_statements.rs232except Exception:
LOWcrates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs280 except Exception:
LOWcrates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs306 except Exception:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs862 except Exception as x:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs912 except Exception as e:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs1145 except Exception as exc:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs1428 except Exception:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs1446 except Exception:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs1859 except Exception:
LOWcrates/ruff_linter/src/rules/pyflakes/mod.rs2716 except Exception as fu: pass
Decorative Section Separators25 hits · 70 pts
SeverityFileLineSnippet
MEDIUM…resources/valid/statement/ambiguous_lpar_with_items.py10# ------------------------
MEDIUM…resources/valid/statement/ambiguous_lpar_with_items.py43# ------------------------
MEDIUM…resources/valid/statement/ambiguous_lpar_with_items.py71# ----------------
MEDIUM…resources/valid/statement/ambiguous_lpar_with_items.py99# ----------------------------------
MEDIUM…es/ruff_annotate_snippets/src/renderer/display_list.rs551 // │ ┏━━━━━┛ │ │ < We are writing these lines
MEDIUM…es/ruff_annotate_snippets/src/renderer/display_list.rs552 // │ ┃┌───────┘ │ < by reverting the "depth" of
MEDIUM…es/ruff_annotate_snippets/src/renderer/display_list.rs553 // │ ┃│┌─────────┘ < their multiline spans.
MEDIUM…es/ruff_annotate_snippets/src/renderer/display_list.rs557 // │ ┃└─────│──┤
MEDIUM…es/ruff_annotate_snippets/src/renderer/display_list.rs558 // │ ┗━━━━━━┥ `Y` is a good letter too
MEDIUMcrates/ty_python_semantic/src/types/typevar.rs103/// # ╰─────╰─────────── [2]
MEDIUMcrates/ty_python_semantic/src/types/typevar.rs103/// # ╰─────╰─────────── [2]
MEDIUMcrates/ty_python_semantic/src/types/typevar.rs104/// # ╰─────────────────────── [1]
MEDIUMcrates/ty_python_semantic/src/types/typevar.rs104/// # ╰─────────────────────── [1]
MEDIUMcrates/ruff_python_ast/generate.py78# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py89# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py282# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py296# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py497# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py590# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py763# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py919# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py964# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py1012# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py1081# ------------------------------------------------------------------------------
MEDIUMcrates/ruff_python_ast/generate.py1103# ------------------------------------------------------------------------------
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippet
HIGH…/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs312Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs46Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. ///
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs67Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs234Calculate speed as distance divided by time. /// /// args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs255Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs320Calculate speed as distance divided by time. /// /// Parameters: /// ----------- /// distance : float ///
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs1131Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs1199Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// /// Retu
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs1219Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs1284Calculate speed as distance divided by time. /// /// Args: /// /// distance: Distance traveled. ///
HIGH…tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs1306Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…ff_linter/src/rules/pydoclint/rules/check_docstring.rs354Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
HIGH…ff_linter/src/rules/pydoclint/rules/check_docstring.rs410Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time
Verbosity Indicators33 hits · 54 pts
SeverityFileLineSnippet
LOWcrates/ty_python_semantic/src/types/member.rs80 // Otherwise, we need to check if the symbol has bindings
LOWcrates/ty_python_semantic/src/types/constraints.rs3658 // the BDD. If we encounter one of those cases, we need to check if we can simplify things
LOWcrates/ty_python_semantic/src/types/class.rs1818 // Step 3: If the return type of the `__new__` evaluates to a type that is not a subclass of this class,
LOWcrates/ty_python_semantic/src/types/call/bind.rs3006 // Step 1: Check the result of the arity check which is done by `match_parameters`
LOWcrates/ty_python_semantic/src/types/call/bind.rs3056 // Step 2: Evaluate each remaining overload as a regular (non-overloaded) call to determine
LOWcrates/ty_python_semantic/src/types/call/bind.rs3128 // Step 3: Perform "argument type expansion". Reference:
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2304 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2307 // Step 3: Clean-up
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2317 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2324 // Step 1: Binding.
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2331 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2336 // Step 1: Binding.
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2346 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2351 // Step 1: Binding
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2372 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2375 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2380 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2383 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs964 // Step 0: Pre-processing
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1046 // Step 1: Binding
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1238 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1645 // Step 3: Clean-up
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1647 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1665 // Step 0: Pre-processing
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1716 // Step 1: Binding
LOWcrates/ruff_linter/src/checkers/ast/mod.rs1751 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2243 // Step 3: Clean-up
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2256 // Step 4: Analysis
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2276 // Step 1: Binding
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2401 // Step 1: Binding
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2414 // Step 2: Traversal
LOWcrates/ruff_linter/src/checkers/ast/mod.rs2548 // Step 4: Analysis
LOW…_linter/src/rules/refurb/rules/isinstance_type_none.rs85 // the union operator, so we need to check if we're in a union.
Self-Referential Comments16 hits · 48 pts
SeverityFileLineSnippet
MEDIUM…resources/valid/statement/ambiguous_lpar_with_items.py6# The following sections basically separates between which node does the
MEDIUM…s/invalid/statements/with/ambiguous_lpar_with_items.py1# This file contains test cases where the with items has an ambiguous left parenthesis.
MEDIUM…c/rules/flake8_bugbear/rules/loop_iterator_mutation.rs33/// # Create an infinite loop by appending to the list.
MEDIUM…s/ruff_linter/src/rules/flake8_comprehensions/fixes.rs867 // # The above code will be converted to:
MEDIUMcrates/ruff_python_ast/ast.toml1# This file is used by generate.py to autogenerate our Python AST data model.
MEDIUMplayground/ruff/src/constants.ts4 "# Define a function that takes an integer n and returns the nth number in the Fibonacci\n" +
MEDIUMscripts/update_schemastore.py76 # Create a new branch tagged with the current ruff commit up to date with the latest
MEDIUMscripts/add_plugin.py21 # Create the test fixture folder.
MEDIUMscripts/add_plugin.py26 # Create the Plugin rules module.
MEDIUMscripts/add_plugin.py61 # Create a subdirectory for rules and create a `mod.rs` placeholder
MEDIUMscripts/add_plugin.py67 # Create the snapshots subdirectory
MEDIUMscripts/add_rule.py24 # Create a test fixture.
MEDIUMscripts/ty_benchmark/src/benchmark/lsp_client.py16 # Define a union type that cattrs struggles with.
MEDIUM.github/workflows/release.yml276 # Create a GitHub Release while uploading all files to it
MEDIUM.github/workflows/release.yml300 # Create a GitHub Release while uploading all files to it
MEDIUM.github/workflows/build-docker.yml231 # Initialize a variable to store all tag docker metadata patterns
Fake / Example Data29 hits · 45 pts
SeverityFileLineSnippet
LOWcrates/ty_ide/src/hover.rs5039 """Lorem ipsum dolor sit amet.<CURSOR>"""
LOWcrates/ty_ide/src/hover.rs5039 """Lorem ipsum dolor sit amet.<CURSOR>"""
LOW…ython_semantic/resources/mdtest/external/sqlalchemy.md28user = User(name="John Doe")
LOW…/ty_python_semantic/resources/mdtest/external/attrs.md22user = User(id=1, name="John Doe")
LOW…/ty_python_semantic/resources/mdtest/external/attrs.md38user = User(id=1, name="John Doe")
LOW…_python_semantic/resources/mdtest/external/pydantic.md23user = User(id=1, name="John Doe")
LOW…_python_semantic/resources/mdtest/external/sqlmodel.md21user = User(id=1, name="John Doe")
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs43/// """Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis auctor purus ut ex fermentum, at maximus est he
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs43/// """Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis auctor purus ut ex fermentum, at maximus est he
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs50/// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs50/// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs62/// """Lorem ipsum dolor sit amet.
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs62/// """Lorem ipsum dolor sit amet.
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs64/// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOW…inter/src/rules/pycodestyle/rules/doc_line_too_long.rs64/// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOW…ff_linter/src/rules/pycodestyle/rules/line_too_long.rs59/// """Lorem ipsum dolor sit amet.
LOW…ff_linter/src/rules/pycodestyle/rules/line_too_long.rs59/// """Lorem ipsum dolor sit amet.
LOW…ff_linter/src/rules/pycodestyle/rules/line_too_long.rs61/// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOW…ff_linter/src/rules/pycodestyle/rules/line_too_long.rs61/// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOWdocs/linter.md315"""Lorem ipsum dolor sit amet.
LOWdocs/linter.md315"""Lorem ipsum dolor sit amet.
LOWdocs/linter.md317Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOWdocs/linter.md317Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.
LOWdocs/linter.md409VALUE_1 = "Lorem ipsum dolor sit amet ..."
LOWdocs/linter.md409VALUE_1 = "Lorem ipsum dolor sit amet ..."
LOWdocs/linter.md410VALUE_2 = "Lorem ipsum dolor sit amet ..."
LOWdocs/linter.md410VALUE_2 = "Lorem ipsum dolor sit amet ..."
LOWdocs/linter.md411VALUE_3 = "Lorem ipsum dolor sit amet ..."
LOWdocs/linter.md411VALUE_3 = "Lorem ipsum dolor sit amet ..."
AI Slop Vocabulary12 hits · 34 pts
SeverityFileLineSnippet
MEDIUMcrates/ruff/src/commands/format.rs830 // a snippet to measure. If we commit to staying on our fork, a more robust way of
MEDIUMcrates/ty_python_core/src/predicate.rs210/// will be visible from all control-flow paths or not. Essentially, we model `importer.py` as
MEDIUMcrates/ty_ide/src/docstring.rs186 // Here lies a monumemnt to robust parsing and escaping:
LOWcrates/ruff_benchmark/resources/pydantic/types.py461 # hence we just use `secret_display`
MEDIUMcrates/ty_python_semantic/src/types/special_form.rs232 /// This is much more robust than having a manual `from_string` method that matches
MEDIUM…s/ty_python_semantic/src/types/class/static_literal.rs2954 // we want to be robust against new qualifiers
MEDIUM…rules/ruff/rules/access_annotations_from_class_dict.rs30/// robust (e.g., correctly handling the Python 3.14 behavior mentioned
MEDIUM…ff_linter/src/rules/flake8_pytest_style/rules/patch.rs20/// `return_value` is also robust to changes in the patched function's
MEDIUM…e_annotations/rules/future_required_type_annotation.rs26/// does not impact your ability to leverage PEP 604-style unions (e.g., to
MEDIUM…annotations/rules/future_rewritable_type_annotation.rs31/// does not impact your ability to leverage PEP 604-style unions (e.g., to
MEDIUMcrates/ruff_python_semantic/src/model.rs832 // could actually be referred to. This is not as robust as back-tracking
MEDIUMcrates/ty_project/src/db/changes.rs157 // a more robust cache invalidation
Redundant / Tautological Comments14 hits · 26 pts
SeverityFileLineSnippet
LOW…style/rules/logical_lines/whitespace_before_comment.rs23/// x = x + 1 # Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs28/// x = x + 1 # Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs29/// x = x + 1 # Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs58/// x = x + 1 #Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs59/// x = x + 1 # Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs65/// x = x + 1 # Increment x
LOW…style/rules/logical_lines/whitespace_before_comment.rs66/// x = x + 1 # Increment x
LOWscripts/update_schemastore.py111 # Check if the schema has changed
LOWscripts/check_ecosystem.py462 # Check if addition or removal depending on the first character
LOWscripts/ty_benchmark/src/benchmark/snapshot.py97 # Check if snapshot exists.
LOW.github/workflows/ci.yaml671 # Set pipefail to avoid hiding errors with tee
LOW.github/workflows/ci.yaml684 # Set pipefail to avoid hiding errors with tee
LOW.github/workflows/ci.yaml697 # Set pipefail to avoid hiding errors with tee
LOW.github/workflows/ci.yaml710 # Set pipefail to avoid hiding errors with tee
Deep Nesting25 hits · 25 pts
SeverityFileLineSnippet
LOWcrates/ruff_benchmark/resources/typeis_narrowing.py210
LOWcrates/ruff_benchmark/resources/tomllib/_parser.py69
LOWcrates/ruff_benchmark/resources/numpy/ctypeslib.py235
LOWcrates/ty_python_semantic/mdtest.py221
LOW…s/67_with_inside_try_finally_multiple_terminal_elif.py1
LOWcrates/ruff_python_ast/generate.py300
LOWcrates/ruff_python_ast/generate.py968
LOWcrates/ruff_python_ast/generate.py1016
LOWpython/ruff-ecosystem/ruff_ecosystem/check.py347
LOWpython/py-fuzzer/fuzz.py223
LOWpython/py-fuzzer/fuzz.py326
LOWscripts/add_plugin.py19
LOWscripts/generate_mkdocs.py172
LOWscripts/conformance.py448
LOWscripts/conformance.py589
LOWscripts/conformance.py673
LOWscripts/conformance.py745
LOWscripts/add_rule.py22
LOWscripts/generate_builtin_modules.py55
LOWscripts/check_ecosystem.py242
LOWscripts/check_ecosystem.py299
LOWscripts/check_ecosystem.py349
LOWscripts/ty_benchmark/src/benchmark/snapshot.py63
LOWscripts/ty_benchmark/src/benchmark/lsp_client.py13
LOWscripts/ty_benchmark/src/benchmark/lsp_client.py25
Cross-Language Confusion (JS/TS)3 hits · 15 pts
SeverityFileLineSnippet
HIGHplayground/ty/src/Playground.tsx313 elif style == "bold":
HIGHplayground/ty/src/Playground.tsx322print(with_style("ty is a fast type checker for Python.", "fast", "underlined"))
HIGHplayground/ty/src/Editor/runPython.ts45 print(f"Runtime value is '{obj}'")
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHdist-workspace.toml58# Whether CI should include auto-generated code to build local artifacts
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/ecosystem_all_check.sh8# Usage:
LOWscripts/benchmarks/run_formatter.sh12# Example usage:
Dead Code1 hit · 2 pts
SeverityFileLineSnippet
MEDIUM…tes/ty_python_semantic/resources/corpus/93_deadcode.py3
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWCargo.toml161# When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml`