An extremely fast Python linter and code formatter, written in Rust.
4756 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Cargo.toml | 321 | opt-level = 1 |
| LOW | .markdownlint.yaml | 21 | MD024: |
| LOW | crates/ty_site_packages/src/version.rs | 21 | |
| LOW | crates/ty_site_packages/src/lib.rs | 41 | /// `uv run --with` invocations, meanwhile, "extend" a parent environment |
| LOW | crates/ty_site_packages/src/lib.rs | 521 | include_system_site_packages: bool, |
| LOW | crates/ty_site_packages/src/lib.rs | 1061 | /// the provided path should point to the `sys.prefix` of a virtual environment, |
| LOW | crates/ty_site_packages/src/lib.rs | 1461 | // |
| LOW | crates/ty_site_packages/src/lib.rs | 1801 | // `/opt/homebrew/opt/python@3.13/bin` and indeed if you look for `../lib/python3.13/` |
| LOW | crates/ty_site_packages/src/lib.rs | 1881 | /// The `sys.prefix` path came from the `VIRTUAL_ENV` environment variable |
| LOW | crates/ty_site_packages/src/lib.rs | 1961 | } |
| LOW | crates/ty_site_packages/src/lib.rs | 1981 | /// that the `home` value will be an absolute path. |
| LOW | crates/ruff/tests/analyze_graph.rs | 821 | let root = ChildPath::new(tempdir.path()); |
| LOW | crates/ruff/tests/cli/format.rs | 561 | #[test_case::test_case("full")] |
| LOW | crates/ruff/tests/cli/lint.rs | 3121 | pass |
| LOW | crates/ruff/tests/cli/lint.rs | 3141 | /// │ ├── __init__.py |
| LOW | crates/ruff/tests/cli/main.rs | 21 | mod show_settings; |
| LOW | crates/ruff/tests/cli/main.rs | 41 | /// ```rust,no_run |
| LOW | crates/ruff/tests/cli/main.rs | 181 | /// Returns the path to a fixture file inside the crate root. |
| LOW | crates/ruff/src/cache.rs | 61 | /// `Cache` holds everything required to display the diagnostics for a single |
| LOW | crates/ruff/src/cache.rs | 321 | struct PackageCache { |
| LOW | crates/ruff/src/args.rs | 41 | #[clap(flatten)] |
| LOW | crates/ruff/src/args.rs | 61 | // |
| LOW | crates/ruff/src/args.rs | 121 | #[command(version)] |
| LOW | crates/ruff/src/args.rs | 161 | }, |
| LOW | crates/ruff/src/args.rs | 201 | /// to files that depend on it. |
| LOW | crates/ruff/src/args.rs | 221 | /// Include imports that are only used for type checking (i.e., imports within `if TYPE_CHECKING:` blocks). |
| LOW | crates/ruff/src/args.rs | 241 | no_fix: bool, |
| LOW | crates/ruff/src/args.rs | 261 | /// Apply fixes to resolve lint violations, but don't report on, or exit non-zero for, leftover violations. Implies |
| LOW | crates/ruff/src/args.rs | 401 | /// Use `--no-force-exclude` to disable. |
| LOW | crates/ruff/src/args.rs | 501 | /// List of files or directories to format. |
| LOW | crates/ruff/src/args.rs | 541 | /// Enforce exclusions, even for paths passed to Ruff directly on the command-line. |
| LOW | crates/ruff/src/args.rs | 561 | /// The minimum Python version that should be supported. |
| LOW | crates/ruff/src/args.rs | 581 | /// |
| LOW | crates/ruff/src/args.rs | 921 | } |
| LOW | crates/ruff_python_literal/src/format.rs | 181 | _ => (None, text), |
| LOW | crates/ruff_python_literal/src/format.rs | 201 | /// Nested placeholders can include additional format specifiers. |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 1 | //! Functions related to adding and removing indentation from lines of |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 21 | /// |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 41 | /// assert_eq!(indent("foo = 123\n\nprint(foo)\n", "# "), |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 81 | /// ``` |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 141 | /// ``` |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 181 | result.push_str(&line.as_full_str()[prefix_len..]); |
| LOW | crates/ruff_python_trivia/src/textwrap.rs | 201 | /// removed and the formfeeds reinstated |
| LOW | crates/ruff_python_trivia/src/pragmas.rs | 1 | /// Returns `true` if a comment appears to be a pragma comment. |
| LOW | crates/ruff_python_trivia/src/comments.rs | 61 | position.is_own_line() && matches!(Self::from_comment(slice), Some(Self::Off)) |
| LOW | crates/ruff_python_trivia/src/comments.rs | 81 | |
| LOW | crates/ruff_python_trivia/src/comment_ranges.rs | 81 | /// # This is a block comment |
| LOW | crates/ruff_workspace/src/options.rs | 41 | use ruff_options_metadata::{OptionsMetadata, Visit}; |
| LOW | crates/ruff_workspace/src/options.rs | 61 | #[option( |
| LOW | crates/ruff_workspace/src/options.rs | 141 | /// Enforce a requirement on the version of Ruff, to enforce at runtime. |
| LOW | crates/ruff_workspace/src/options.rs | 161 | default = "false", |
| LOW | crates/ruff_workspace/src/options.rs | 181 | /// (e.g., the directory containing your `pyproject.toml`). |
| LOW | crates/ruff_workspace/src/options.rs | 201 | /// - Single-path patterns, like `.mypy_cache` (to exclude any directory |
| LOW | crates/ruff_workspace/src/options.rs | 221 | /// specified by [`include`](#include). |
| LOW | crates/ruff_workspace/src/options.rs | 241 | /// respect these exclusions unequivocally. |
| LOW | crates/ruff_workspace/src/options.rs | 321 | default = r#"[]"#, |
| LOW | crates/ruff_workspace/src/options.rs | 341 | /// ```toml |
| LOW | crates/ruff_workspace/src/options.rs | 361 | default = r#""py310""#, |
| LOW | crates/ruff_workspace/src/options.rs | 381 | /// context managers on Python 3.10+. |
| LOW | crates/ruff_workspace/src/options.rs | 401 | /// These defaults ensure that Ruff supports both flat layouts and `src` layouts out-of-the-box. |
| 3923 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 4 | | this is an f-string 5 | | used as a docstring. 6 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 4 | | this is an f-string 5 | | used as a docstring. 6 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 4 | | this is an f-string 5 | | used as a docstring. 6 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 12 | | this is a t-string 13 | | used as a docstring. 14 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 12 | | this is a t-string 13 | | used as a docstring. 14 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 12 | | this is a t-string 13 | | used as a docstring. 14 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 20 | | this is a raw string 21 | | used as a docstring. 22 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 20 | | this is a raw string 21 | | used as a docstring. 22 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | 20 | | this is a raw string 21 | | used as a docstring. 22 | | |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct |
| HIGH | crates/ty_ide/src/folding_range.rs | 0 | split a date range into chunks respecting the maximum days limit. 4 | | 5 | | the api has a 1-month limit, so this funct |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is the docs for this value wow these are good docs! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great func!! args: a: first for a reason b: coming for `a`'s title |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | crates/ty_ide/src/hover.rs | 0 | this is such a great class!! don't you know? everyone loves my class!! |
| HIGH | …/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …ff_linter/src/rules/pydoclint/rules/check_docstring.rs | 0 | calculate speed as distance divided by time. /// /// args: /// distance: distance traveled. /// time: time spent traveli |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 0 | calculate speed as distance divided by time. /// /// parameters /// ---------- /// distance : float /// distance travele |
| HIGH | …rules/pydocstyle/rules/newline_after_last_paragraph.rs | 0 | return 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.rs | 0 | return 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… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ff_python_parser/resources/valid/statement/function.py | 9 | def positional_parameters_with_default_values(a, b=20, c=30): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 17 | def positional_only_and_positional_parameters(a, /, b, c): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 21 | def pos_args_with_defaults_and_varargs_and_kwargs(a, b=20, /, c=30, *args, **kwargs): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 29 | def keyword_only_parameters_with_defaults(*, a, b=20, c=30): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 33 | def kw_only_args_with_defaults_and_varargs(*args, a, b=20, c=30): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 37 | def kw_only_args_with_defaults_and_kwargs(*, a, b=20, c=30, **kwargs): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 41 | def kw_only_args_with_defaults_and_varargs_and_kwargs(*args, a, b=20, c=30, **kwargs): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 49 | def pos_and_kw_only_args_with_defaults(a, b, /, c, *, d, e=20, f=30): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 53 | def 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.py | 57 | def pos_and_kw_only_args_with_defaults_and_kwargs( |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 63 | def pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs( |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 69 | def positional_and_keyword_parameters(a, b, c, *, d, e, f): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 73 | def positional_and_keyword_parameters_with_defaults(a, b, c, *, d, e=20, f=30): |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 77 | def positional_and_keyword_parameters_with_defaults_and_varargs( |
| LOW | …ff_python_parser/resources/valid/statement/function.py | 83 | def positional_and_keyword_parameters_with_defaults_and_varargs_and_kwargs( |
| LOW | crates/ty_ide/src/rename.rs | 314 | class DataProcessor: |
| LOW | crates/ty_ide/src/semantic_tokens.rs | 2666 | def function_with_annotations(param1: int, param2: str) -> Optional[List[str]]: |
| LOW | crates/ty_ide/src/find_references.rs | 1075 | class DataProcessor: |
| LOW | crates/ty_ide/src/find_references.rs | 1092 | 4 | class DataProcessor: |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 424 | def test_select_multiple_items_by_index(ds3): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 434 | def test_select_multiple_items_by_slice(ds3): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 444 | def test_select_item_by_iteminfo(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 986 | def test_int_is_valid_type_info(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 995 | def test_int_is_valid_unit_info(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1003 | def test_default_unit_from_type(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 57 | def test_create_wrong_data_type_error(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 169 | def test_index_with_attribute(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 228 | def test_getitem_multi_indexing_attempted(ds3): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 277 | def test_select_subset_isel_axis_out_of_range_error(ds2): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 294 | def test_select_temporal_subset_by_idx(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 314 | def test_temporal_subset_fancy(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 343 | def test_subset_with_datetime(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 401 | def test_select_multiple_items_by_name(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 463 | def test_select_subset_isel_multiple_idxs(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 511 | def test_create_named_undefined(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 528 | def test_to_dataframe_single_timestep(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 562 | def test_multidimensional_to_dataframe_no_supported(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 610 | def test_interp_time_to_other_dataset(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 673 | def test_extrapolate_not_allowed(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 719 | def test_modify_selected_variable(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 764 | def test_aggregation_workflows(tmpdir): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 782 | def test_aggregation_dataset_no_time(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 813 | def test_to_dfs_extension_validation(tmpdir): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 895 | def test_aggregate_across_items(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 914 | def test_aggregate_selected_items_dfsu_save_to_new_file(tmpdir): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1021 | def test_default_name_from_type(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1036 | def test_iteminfo_string_type_should_fail_with_helpful_message(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1152 | def test_create_infer_name_from_eum(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1177 | def test_add_inconsistent_dataset(ds1): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1269 | def test_concat_dataarray_by_time(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1312 | def test_concat_by_time_inconsistent_shape_not_possible(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1320 | def test_concat_by_time_no_time(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1350 | def test_renamed_dataset_has_updated_attributes(ds1: mikeio.Dataset): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1458 | def test_merge_same_name_error(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1469 | def test_incompatible_data_not_allowed(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1535 | def test_create_dataset_with_many_items(): |
| LOW | crates/ruff_benchmark/resources/large/dataset.py | 1552 | def test_create_array_with_defaults_from_dataset(): |
| LOW | crates/ruff_benchmark/resources/tomllib/_parser.py | 275 | def skip_comments_and_array_ws(src: str, pos: Pos) -> Pos: |
| LOW | crates/ruff_benchmark/resources/tomllib/_parser.py | 497 | def parse_basic_str_escape_multiline(src: str, pos: Pos) -> tuple[Pos, str]: |
| LOW | crates/ruff_benchmark/resources/numpy/ctypeslib.py | 398 | def _ctype_from_dtype_subarray(dtype): |
| 270 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 1 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 2 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 3 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 4 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 4 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 4 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 5 | |
| LOW | …ruff_python_parser/resources/valid/statement/import.py | 5 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 1 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 2 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 3 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 3 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 4 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 5 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 6 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 7 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 8 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 8 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 8 | |
| LOW | …python_parser/resources/valid/statement/from_import.py | 9 | |
| LOW | …n_parser/resources/inline/ok/import_stmt_terminator.py | 1 | |
| LOW | …n_parser/resources/inline/ok/import_stmt_terminator.py | 1 | |
| LOW | …n_parser/resources/inline/ok/import_stmt_terminator.py | 2 | |
| LOW | …n_parser/resources/inline/ok/import_stmt_terminator.py | 2 | |
| LOW | …hon_parser/resources/inline/ok/valid_future_feature.py | 1 | |
| LOW | …er/resources/inline/ok/simple_stmts_with_semicolons.py | 1 | |
| LOW | …er/resources/inline/ok/simple_stmts_with_semicolons.py | 1 | |
| LOW | …hon_parser/resources/inline/ok/from_import_no_space.py | 1 | |
| LOW | …hon_parser/resources/inline/ok/from_import_no_space.py | 2 | |
| LOW | …thon_parser/resources/inline/ok/debug_rename_import.py | 1 | |
| LOW | …thon_parser/resources/inline/ok/debug_rename_import.py | 2 | |
| LOW | …thon_parser/resources/inline/ok/debug_rename_import.py | 3 | |
| LOW | …r/resources/inline/ok/dotted_name_normalized_spaces.py | 1 | |
| LOW | …r/resources/inline/ok/dotted_name_normalized_spaces.py | 2 | |
| LOW | …ser/resources/inline/ok/import_as_name_soft_keyword.py | 1 | |
| LOW | …ser/resources/inline/ok/import_as_name_soft_keyword.py | 2 | |
| LOW | …ser/resources/inline/ok/import_as_name_soft_keyword.py | 3 | |
| LOW | …ser/resources/inline/ok/import_as_name_soft_keyword.py | 4 | |
| LOW | …rces/inline/ok/from_import_soft_keyword_module_name.py | 1 | |
| LOW | …rces/inline/ok/from_import_soft_keyword_module_name.py | 2 | |
| LOW | …rces/inline/ok/from_import_soft_keyword_module_name.py | 3 | |
| LOW | …rces/inline/ok/from_import_soft_keyword_module_name.py | 4 | |
| LOW | …rces/inline/ok/from_import_soft_keyword_module_name.py | 5 | |
| LOW | …_python_parser/resources/inline/ok/import_from_star.py | 1 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 1 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 1 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 2 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 2 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 3 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 3 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 4 | |
| LOW | …ser/resources/inline/ok/from_import_stmt_terminator.py | 4 | |
| LOW | …rces/inline/ok/lazy_import_soft_keyword_split_py315.py | 3 | |
| LOW | …rces/inline/ok/lazy_import_soft_keyword_split_py315.py | 6 | |
| LOW | …hon_parser/resources/inline/err/debug_shadow_import.py | 1 | |
| LOW | …hon_parser/resources/inline/err/debug_shadow_import.py | 2 | |
| LOW | …hon_parser/resources/inline/err/debug_shadow_import.py | 3 | |
| LOW | …hon_parser/resources/inline/err/debug_shadow_import.py | 4 | |
| LOW | …_parser/resources/inline/err/invalid_future_feature.py | 1 | |
| LOW | …_parser/resources/inline/err/invalid_future_feature.py | 2 | |
| 74 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …es/ruff_python_parser/resources/valid/statement/try.py | 15 | except Exception as e: |
| LOW | …esources/inline/ok/except_stmt_as_name_soft_keyword.py | 2 | except Exception as match: ... |
| LOW | …esources/inline/ok/except_stmt_as_name_soft_keyword.py | 3 | except Exception as case: ... |
| LOW | …esources/inline/ok/except_stmt_as_name_soft_keyword.py | 4 | except Exception as type: ... |
| LOW | …python_parser/resources/inline/err/debug_shadow_try.py | 2 | except Exception as __debug__: ... |
| LOW | crates/ruff_python_formatter/src/comments/mod.rs | 744 | except Exception as ex: |
| LOW | crates/ruff_python_formatter/src/comments/mod.rs | 771 | except Exception as ex: |
| MEDIUM | crates/ruff_python_formatter/src/comments/mod.rs | 766 | def test(): |
| LOW | …es/ty_python_core/src/builder/loop_bindings_visitor.rs | 357 | except Exception as exc_var: |
| LOW | crates/ty_ide/src/semantic_tokens.rs | 4195 | except Exception as e: |
| MEDIUM | crates/ty_ide/src/find_references.rs | 252 | print(f'Error: {err}') |
| MEDIUM | crates/ty_ide/src/find_references.rs | 268 | 5 | print(f'Error: {err}') |
| LOW | crates/ruff_python_codegen/src/generator.rs | 1832 | except Exception as e: |
| LOW | crates/ruff_benchmark/resources/numpy/ctypeslib.py | 305 | except Exception as e: |
| LOW | …python_semantic/resources/corpus/62_try_except_cond.py | 3 | except Exception as exc: |
| LOW | …thon_semantic/resources/corpus/62_try_except_return.py | 4 | except Exception as e: |
| MEDIUM | …thon_semantic/resources/corpus/62_try_except_return.py | 1 | def foo(): |
| LOW | …ython_semantic/resources/mdtest/pep695_type_aliases.md | 154 | except Exception: |
| LOW | …resources/mdtest/diagnostics/semantic_syntax_errors.md | 556 | except Exception: |
| MEDIUM | …resources/mdtest/diagnostics/semantic_syntax_errors.md | 553 | def i(a): |
| LOW | …thon_semantic/src/types/ide_support/unused_bindings.rs | 239 | except Exception as dead_exc: |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 137 | def bad_yield_in_finally_not_last(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 173 | def bad_yield_in_except_with_cleanup(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 191 | def bad_yield_in_else_with_cleanup(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 337 | def good_async_try_finally(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 355 | def good_nested_try_finally(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 385 | def good_try_except_with_else(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 395 | def good_yield_in_except_no_finally(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 403 | def good_yield_in_except_with_finally(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 413 | def good_yield_in_else_with_finally(): |
| MEDIUM | …nter/resources/mdtest/ruff/fallible-context-manager.md | 425 | def good_yield_in_finally(): |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 380 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 388 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 398 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 406 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 416 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 445 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 158 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 176 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 194 | except Exception: |
| LOW | …nter/resources/mdtest/ruff/fallible-context-manager.md | 348 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pylint/helpers.rs | 614 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pylint/helpers.rs | 664 | except Exception: |
| MEDIUM | crates/ruff_linter/src/rules/pylint/helpers.rs | 611 | def f(): |
| MEDIUM | crates/ruff_linter/src/rules/pylint/helpers.rs | 625 | def f(): |
| LOW | …r/src/rules/pylint/rules/too_many_return_statements.rs | 232 | except Exception: |
| LOW | crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs | 280 | except Exception: |
| LOW | crates/ruff_linter/src/rules/flake8_tidy_imports/mod.rs | 306 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 862 | except Exception as x: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 912 | except Exception as e: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 1145 | except Exception as exc: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 1428 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 1446 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 1859 | except Exception: |
| LOW | crates/ruff_linter/src/rules/pyflakes/mod.rs | 2716 | except Exception as fu: pass |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …resources/valid/statement/ambiguous_lpar_with_items.py | 10 | # ------------------------ |
| MEDIUM | …resources/valid/statement/ambiguous_lpar_with_items.py | 43 | # ------------------------ |
| MEDIUM | …resources/valid/statement/ambiguous_lpar_with_items.py | 71 | # ---------------- |
| MEDIUM | …resources/valid/statement/ambiguous_lpar_with_items.py | 99 | # ---------------------------------- |
| MEDIUM | …es/ruff_annotate_snippets/src/renderer/display_list.rs | 551 | // │ ┏━━━━━┛ │ │ < We are writing these lines |
| MEDIUM | …es/ruff_annotate_snippets/src/renderer/display_list.rs | 552 | // │ ┃┌───────┘ │ < by reverting the "depth" of |
| MEDIUM | …es/ruff_annotate_snippets/src/renderer/display_list.rs | 553 | // │ ┃│┌─────────┘ < their multiline spans. |
| MEDIUM | …es/ruff_annotate_snippets/src/renderer/display_list.rs | 557 | // │ ┃└─────│──┤ |
| MEDIUM | …es/ruff_annotate_snippets/src/renderer/display_list.rs | 558 | // │ ┗━━━━━━┥ `Y` is a good letter too |
| MEDIUM | crates/ty_python_semantic/src/types/typevar.rs | 103 | /// # ╰─────╰─────────── [2] |
| MEDIUM | crates/ty_python_semantic/src/types/typevar.rs | 103 | /// # ╰─────╰─────────── [2] |
| MEDIUM | crates/ty_python_semantic/src/types/typevar.rs | 104 | /// # ╰─────────────────────── [1] |
| MEDIUM | crates/ty_python_semantic/src/types/typevar.rs | 104 | /// # ╰─────────────────────── [1] |
| MEDIUM | crates/ruff_python_ast/generate.py | 78 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 89 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 282 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 296 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 497 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 590 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 763 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 919 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 964 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 1012 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 1081 | # ------------------------------------------------------------------------------ |
| MEDIUM | crates/ruff_python_ast/generate.py | 1103 | # ------------------------------------------------------------------------------ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …/ruff_linter/src/rules/pydocstyle/rules/not_missing.rs | 312 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 46 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 67 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 234 | Calculate speed as distance divided by time. /// /// args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 255 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 320 | Calculate speed as distance divided by time. /// /// Parameters: /// ----------- /// distance : float /// |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 1131 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 1199 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// /// Retu |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 1219 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 1284 | Calculate speed as distance divided by time. /// /// Args: /// /// distance: Distance traveled. /// |
| HIGH | …tes/ruff_linter/src/rules/pydocstyle/rules/sections.rs | 1306 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …ff_linter/src/rules/pydoclint/rules/check_docstring.rs | 354 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| HIGH | …ff_linter/src/rules/pydoclint/rules/check_docstring.rs | 410 | Calculate speed as distance divided by time. /// /// Args: /// distance: Distance traveled. /// time |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/ty_python_semantic/src/types/member.rs | 80 | // Otherwise, we need to check if the symbol has bindings |
| LOW | crates/ty_python_semantic/src/types/constraints.rs | 3658 | // the BDD. If we encounter one of those cases, we need to check if we can simplify things |
| LOW | crates/ty_python_semantic/src/types/class.rs | 1818 | // Step 3: If the return type of the `__new__` evaluates to a type that is not a subclass of this class, |
| LOW | crates/ty_python_semantic/src/types/call/bind.rs | 3006 | // Step 1: Check the result of the arity check which is done by `match_parameters` |
| LOW | crates/ty_python_semantic/src/types/call/bind.rs | 3056 | // Step 2: Evaluate each remaining overload as a regular (non-overloaded) call to determine |
| LOW | crates/ty_python_semantic/src/types/call/bind.rs | 3128 | // Step 3: Perform "argument type expansion". Reference: |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2304 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2307 | // Step 3: Clean-up |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2317 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2324 | // Step 1: Binding. |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2331 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2336 | // Step 1: Binding. |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2346 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2351 | // Step 1: Binding |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2372 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2375 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2380 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2383 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 964 | // Step 0: Pre-processing |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1046 | // Step 1: Binding |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1238 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1645 | // Step 3: Clean-up |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1647 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1665 | // Step 0: Pre-processing |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1716 | // Step 1: Binding |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 1751 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2243 | // Step 3: Clean-up |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2256 | // Step 4: Analysis |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2276 | // Step 1: Binding |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2401 | // Step 1: Binding |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2414 | // Step 2: Traversal |
| LOW | crates/ruff_linter/src/checkers/ast/mod.rs | 2548 | // Step 4: Analysis |
| LOW | …_linter/src/rules/refurb/rules/isinstance_type_none.rs | 85 | // the union operator, so we need to check if we're in a union. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …resources/valid/statement/ambiguous_lpar_with_items.py | 6 | # The following sections basically separates between which node does the |
| MEDIUM | …s/invalid/statements/with/ambiguous_lpar_with_items.py | 1 | # This file contains test cases where the with items has an ambiguous left parenthesis. |
| MEDIUM | …c/rules/flake8_bugbear/rules/loop_iterator_mutation.rs | 33 | /// # Create an infinite loop by appending to the list. |
| MEDIUM | …s/ruff_linter/src/rules/flake8_comprehensions/fixes.rs | 867 | // # The above code will be converted to: |
| MEDIUM | crates/ruff_python_ast/ast.toml | 1 | # This file is used by generate.py to autogenerate our Python AST data model. |
| MEDIUM | playground/ruff/src/constants.ts | 4 | "# Define a function that takes an integer n and returns the nth number in the Fibonacci\n" + |
| MEDIUM | scripts/update_schemastore.py | 76 | # Create a new branch tagged with the current ruff commit up to date with the latest |
| MEDIUM | scripts/add_plugin.py | 21 | # Create the test fixture folder. |
| MEDIUM | scripts/add_plugin.py | 26 | # Create the Plugin rules module. |
| MEDIUM | scripts/add_plugin.py | 61 | # Create a subdirectory for rules and create a `mod.rs` placeholder |
| MEDIUM | scripts/add_plugin.py | 67 | # Create the snapshots subdirectory |
| MEDIUM | scripts/add_rule.py | 24 | # Create a test fixture. |
| MEDIUM | scripts/ty_benchmark/src/benchmark/lsp_client.py | 16 | # Define a union type that cattrs struggles with. |
| MEDIUM | .github/workflows/release.yml | 276 | # Create a GitHub Release while uploading all files to it |
| MEDIUM | .github/workflows/release.yml | 300 | # Create a GitHub Release while uploading all files to it |
| MEDIUM | .github/workflows/build-docker.yml | 231 | # Initialize a variable to store all tag docker metadata patterns |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/ty_ide/src/hover.rs | 5039 | """Lorem ipsum dolor sit amet.<CURSOR>""" |
| LOW | crates/ty_ide/src/hover.rs | 5039 | """Lorem ipsum dolor sit amet.<CURSOR>""" |
| LOW | …ython_semantic/resources/mdtest/external/sqlalchemy.md | 28 | user = User(name="John Doe") |
| LOW | …/ty_python_semantic/resources/mdtest/external/attrs.md | 22 | user = User(id=1, name="John Doe") |
| LOW | …/ty_python_semantic/resources/mdtest/external/attrs.md | 38 | user = User(id=1, name="John Doe") |
| LOW | …_python_semantic/resources/mdtest/external/pydantic.md | 23 | user = User(id=1, name="John Doe") |
| LOW | …_python_semantic/resources/mdtest/external/sqlmodel.md | 21 | user = User(id=1, name="John Doe") |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 43 | /// """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.rs | 43 | /// """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.rs | 50 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit. |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 50 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit. |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 62 | /// """Lorem ipsum dolor sit amet. |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 62 | /// """Lorem ipsum dolor sit amet. |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 64 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | …inter/src/rules/pycodestyle/rules/doc_line_too_long.rs | 64 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | …ff_linter/src/rules/pycodestyle/rules/line_too_long.rs | 59 | /// """Lorem ipsum dolor sit amet. |
| LOW | …ff_linter/src/rules/pycodestyle/rules/line_too_long.rs | 59 | /// """Lorem ipsum dolor sit amet. |
| LOW | …ff_linter/src/rules/pycodestyle/rules/line_too_long.rs | 61 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | …ff_linter/src/rules/pycodestyle/rules/line_too_long.rs | 61 | /// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | docs/linter.md | 315 | """Lorem ipsum dolor sit amet. |
| LOW | docs/linter.md | 315 | """Lorem ipsum dolor sit amet. |
| LOW | docs/linter.md | 317 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | docs/linter.md | 317 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. |
| LOW | docs/linter.md | 409 | VALUE_1 = "Lorem ipsum dolor sit amet ..." |
| LOW | docs/linter.md | 409 | VALUE_1 = "Lorem ipsum dolor sit amet ..." |
| LOW | docs/linter.md | 410 | VALUE_2 = "Lorem ipsum dolor sit amet ..." |
| LOW | docs/linter.md | 410 | VALUE_2 = "Lorem ipsum dolor sit amet ..." |
| LOW | docs/linter.md | 411 | VALUE_3 = "Lorem ipsum dolor sit amet ..." |
| LOW | docs/linter.md | 411 | VALUE_3 = "Lorem ipsum dolor sit amet ..." |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | crates/ruff/src/commands/format.rs | 830 | // a snippet to measure. If we commit to staying on our fork, a more robust way of |
| MEDIUM | crates/ty_python_core/src/predicate.rs | 210 | /// will be visible from all control-flow paths or not. Essentially, we model `importer.py` as |
| MEDIUM | crates/ty_ide/src/docstring.rs | 186 | // Here lies a monumemnt to robust parsing and escaping: |
| LOW | crates/ruff_benchmark/resources/pydantic/types.py | 461 | # hence we just use `secret_display` |
| MEDIUM | crates/ty_python_semantic/src/types/special_form.rs | 232 | /// This is much more robust than having a manual `from_string` method that matches |
| MEDIUM | …s/ty_python_semantic/src/types/class/static_literal.rs | 2954 | // we want to be robust against new qualifiers |
| MEDIUM | …rules/ruff/rules/access_annotations_from_class_dict.rs | 30 | /// robust (e.g., correctly handling the Python 3.14 behavior mentioned |
| MEDIUM | …ff_linter/src/rules/flake8_pytest_style/rules/patch.rs | 20 | /// `return_value` is also robust to changes in the patched function's |
| MEDIUM | …e_annotations/rules/future_required_type_annotation.rs | 26 | /// does not impact your ability to leverage PEP 604-style unions (e.g., to |
| MEDIUM | …annotations/rules/future_rewritable_type_annotation.rs | 31 | /// does not impact your ability to leverage PEP 604-style unions (e.g., to |
| MEDIUM | crates/ruff_python_semantic/src/model.rs | 832 | // could actually be referred to. This is not as robust as back-tracking |
| MEDIUM | crates/ty_project/src/db/changes.rs | 157 | // a more robust cache invalidation |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 23 | /// x = x + 1 # Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 28 | /// x = x + 1 # Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 29 | /// x = x + 1 # Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 58 | /// x = x + 1 #Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 59 | /// x = x + 1 # Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 65 | /// x = x + 1 # Increment x |
| LOW | …style/rules/logical_lines/whitespace_before_comment.rs | 66 | /// x = x + 1 # Increment x |
| LOW | scripts/update_schemastore.py | 111 | # Check if the schema has changed |
| LOW | scripts/check_ecosystem.py | 462 | # Check if addition or removal depending on the first character |
| LOW | scripts/ty_benchmark/src/benchmark/snapshot.py | 97 | # Check if snapshot exists. |
| LOW | .github/workflows/ci.yaml | 671 | # Set pipefail to avoid hiding errors with tee |
| LOW | .github/workflows/ci.yaml | 684 | # Set pipefail to avoid hiding errors with tee |
| LOW | .github/workflows/ci.yaml | 697 | # Set pipefail to avoid hiding errors with tee |
| LOW | .github/workflows/ci.yaml | 710 | # Set pipefail to avoid hiding errors with tee |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/ruff_benchmark/resources/typeis_narrowing.py | 210 | |
| LOW | crates/ruff_benchmark/resources/tomllib/_parser.py | 69 | |
| LOW | crates/ruff_benchmark/resources/numpy/ctypeslib.py | 235 | |
| LOW | crates/ty_python_semantic/mdtest.py | 221 | |
| LOW | …s/67_with_inside_try_finally_multiple_terminal_elif.py | 1 | |
| LOW | crates/ruff_python_ast/generate.py | 300 | |
| LOW | crates/ruff_python_ast/generate.py | 968 | |
| LOW | crates/ruff_python_ast/generate.py | 1016 | |
| LOW | python/ruff-ecosystem/ruff_ecosystem/check.py | 347 | |
| LOW | python/py-fuzzer/fuzz.py | 223 | |
| LOW | python/py-fuzzer/fuzz.py | 326 | |
| LOW | scripts/add_plugin.py | 19 | |
| LOW | scripts/generate_mkdocs.py | 172 | |
| LOW | scripts/conformance.py | 448 | |
| LOW | scripts/conformance.py | 589 | |
| LOW | scripts/conformance.py | 673 | |
| LOW | scripts/conformance.py | 745 | |
| LOW | scripts/add_rule.py | 22 | |
| LOW | scripts/generate_builtin_modules.py | 55 | |
| LOW | scripts/check_ecosystem.py | 242 | |
| LOW | scripts/check_ecosystem.py | 299 | |
| LOW | scripts/check_ecosystem.py | 349 | |
| LOW | scripts/ty_benchmark/src/benchmark/snapshot.py | 63 | |
| LOW | scripts/ty_benchmark/src/benchmark/lsp_client.py | 13 | |
| LOW | scripts/ty_benchmark/src/benchmark/lsp_client.py | 25 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | playground/ty/src/Playground.tsx | 313 | elif style == "bold": |
| HIGH | playground/ty/src/Playground.tsx | 322 | print(with_style("ty is a fast type checker for Python.", "fast", "underlined")) |
| HIGH | playground/ty/src/Editor/runPython.ts | 45 | print(f"Runtime value is '{obj}'") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | dist-workspace.toml | 58 | # Whether CI should include auto-generated code to build local artifacts |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/ecosystem_all_check.sh | 8 | # Usage: |
| LOW | scripts/benchmarks/run_formatter.sh | 12 | # Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …tes/ty_python_semantic/resources/corpus/93_deadcode.py | 3 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Cargo.toml | 161 | # When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml` |