Repository Analysis

reflex-dev/reflex

🕸️ Web apps in pure Python 🐍

22.2 Moderate AI signal View on GitHub
22.2
Adjusted Score
22.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
28,457
Stars
Python
Language
239,007
Lines of Code
1280
Files
3218
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 502MEDIUM 122LOW 2594

Pattern Findings

3218 matches across 16 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1712 hits · 1575 pts
SeverityFileLineSnippet
LOWtests/integration/test_auto_memo.py51def test_auto_memo_shared_across_pages(auto_memo_app: AppHarness):
LOWtests/integration/test_lighthouse.py21def lighthouse_landing_app_root(
LOWtests/integration/test_lighthouse.py35def test_landing_page_lighthouse_scores(
LOWtests/integration/test_linked_state.py545def test_modify_shared_state_by_shared_token(
LOWtests/integration/test_linked_state.py587def test_get_state_returns_linked_state(
LOWtests/integration/test_linked_state.py634def test_unrelated_reset_does_not_break_shared_event_link_context(
LOWtests/integration/test_linked_state.py675def test_concurrent_async_vars_do_not_deadlock_linked_token(
LOWtests/integration/test_input.py84def test_fully_controlled_input(fully_controlled_input: AppHarness):
LOW…ts/integration/test_memory_state_manager_expiration.py81def test_memory_state_manager_expires_state_end_to_end(
LOW…ts/integration/test_memory_state_manager_expiration.py116def test_memory_state_manager_delays_expiration_after_use_end_to_end(
LOWtests/integration/test_event_actions.py304def test_event_actions_throttle_debounce(
LOWtests/integration/test_event_actions.py350def test_event_actions_dialog_form_in_form(
LOWtests/integration/test_event_chain.py139 async def click_yield_interim_value_async(self):
LOWtests/integration/test_event_chain.py146 def click_yield_interim_value(self):
LOWtests/integration/test_event_chain.py601def test_event_chain_on_mount(
LOWtests/integration/test_event_chain.py696def test_event_chain_on_mount_strict(
LOWtests/integration/test_event_chain.py750def test_mixed_cond_event_lambda(event_chain: AppHarness, driver: WebDriver):
LOWtests/integration/test_exception_handlers.py115def test_frontend_exception_handler_during_runtime(
LOWtests/integration/test_exception_handlers.py143def test_backend_exception_handler_during_runtime(
LOWtests/integration/test_exception_handlers.py171def test_frontend_exception_handler_with_react(
LOWtests/integration/utils.py131 def _has_number_of_expected_events():
LOWtests/integration/utils.py145def assert_relative_event_order(
LOWtests/integration/utils.py194def poll_assert_relative_event_order(
LOWtests/integration/utils.py210 def _has_number_of_expected_events():
LOWtests/integration/test_call_script.py56 def call_script_callback_other_arg(self, result, other_arg):
LOWtests/integration/test_call_script.py60 def call_scripts_inline_yield(self):
LOWtests/integration/test_call_script.py67 def call_script_inline_return(self):
LOWtests/integration/test_call_script.py71 def call_scripts_inline_yield_callback(self):
LOWtests/integration/test_call_script.py86 def call_script_inline_return_callback(self):
LOWtests/integration/test_call_script.py92 def call_script_inline_return_lambda(self):
LOWtests/integration/test_call_script.py108 def call_scripts_external_yield(self):
LOWtests/integration/test_call_script.py115 def call_script_external_return(self):
LOWtests/integration/test_call_script.py119 def call_scripts_external_yield_callback(self):
LOWtests/integration/test_call_script.py134 def call_script_external_return_callback(self):
LOWtests/integration/test_call_script.py140 def call_script_external_return_lambda(self):
LOWtests/integration/test_call_script.py170 def call_with_var_f_string_wrapped(self):
LOWtests/integration/test_call_script.py177 def call_with_var_str_cast_wrapped(self):
LOWtests/integration/test_prod_build_pipeline.py42def all_compression_formats_env() -> Generator[None, None, None]:
LOWtests/integration/test_prod_build_pipeline.py95def test_js_bundles_have_sidecars(
LOWtests/integration/test_prod_build_pipeline.py114def test_css_bundles_have_sidecars(
LOWtests/integration/test_upload.py435def _wrap_find_elements_by_xpath(
LOWtests/integration/test_upload.py480async def poll_for_stopped_progress(
LOWtests/integration/test_upload.py616async def test_upload_file_multiple(tmp_path, upload_file: AppHarness, driver):
LOWtests/integration/test_upload.py861def test_upload_download_file(
LOWtests/integration/test_upload.py936def test_uploaded_file_security_headers(
LOWtests/integration/test_lifespan.py70 async def assert_register_blocked_during_lifespan(app):
LOWtests/integration/test_lifespan.py226def test_lifespan_modify_state(lifespan_app: AppHarness):
LOWtests/integration/test_lifespan.py250def test_lifespan_raw_asyncio_task(lifespan_app: AppHarness):
LOWtests/integration/test_dynamic_routes.py322def test_on_load_navigate_non_dynamic(
LOWtests/integration/test_telemetry_compile.py102def telemetry_compile_harness(
LOWtests/integration/test_telemetry_compile.py151def test_compile_event_features_used_initial_and_hot_reload(
LOWtests/integration/test_precompressed_frontend.py36def all_compression_formats_env() -> Generator[None, None, None]:
LOWtests/integration/test_precompressed_frontend.py71def test_prod_frontend_serves_precompressed_index_html(
LOWtests/integration/test_background_task.py118 async def disconnect_reconnect_background(self):
LOWtests/integration/test_background_task.py342def test_nested_async_with_self(
LOWtests/integration/test_background_task.py400def test_yield_in_async_with_self(
LOWtests/integration/test_background_task.py433def test_disconnect_reconnect(
LOWtests/integration/test_large_state.py11def _large_state_app_template(var_count: int) -> str:
LOWtests/integration/test_client_storage.py771 def _assert_json_cookie_with_refresh(cookie_id: str, json_value: str):
LOWtests/integration/lighthouse_utils.py647def format_lighthouse_summary(
1652 more matches not shown…
Cross-File Repetition195 hits · 975 pts
SeverityFileLineSnippet
HIGHtests/units/test_state.py0set the attribute foo. args: val: the value to set.
HIGHtests/units/test_state.py0set the attribute foo. args: val: the value to set.
HIGHtests/units/test_state.py0set the attribute foo. args: val: the value to set.
HIGHtests/units/reflex_cli/v2/test_cli.py0the `python-dotenv` package is required to load environment variables from a file. run `pip install "python-dotenv>=1.0.
HIGHpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py0the `python-dotenv` package is required to load environment variables from a file. run `pip install "python-dotenv>=1.0.
HIGH…ckages/reflex-hosting-cli/src/reflex_cli/v2/secrets.py0the `python-dotenv` package is required to load environment variables from a file. run `pip install "python-dotenv>=1.0.
HIGH…/units/components/test_component_future_annotations.py0test controlled triggers. returns: test controlled triggers.
HIGHtests/units/components/test_component.py0test controlled triggers. returns: test controlled triggers.
HIGHtests/units/components/test_component.py0test controlled triggers. returns: test controlled triggers.
HIGHtests/units/components/test_component.py0test controlled triggers. returns: test controlled triggers.
HIGHtests/units/components/datadisplay/conftest.py0get a data table state. returns: the data table state class.
HIGHtests/units/components/datadisplay/conftest.py0get a data table state. returns: the data table state class.
HIGHtests/units/components/datadisplay/conftest.py0get a data table state. returns: the data table state class.
HIGHtests/units/states/upload.py0handle the upload of a file. args: files: the uploaded files.
HIGHtests/units/states/upload.py0handle the upload of a file. args: files: the uploaded files.
HIGHtests/units/states/upload.py0handle the upload of a file. args: files: the uploaded files.
HIGHtests/units/states/upload.py0handle the upload of a file. args: files: the uploaded files.
HIGHdocs/library/forms/upload.md0handle the upload of file(s). args: files: the uploaded files.
HIGHdocs/library/forms/upload.md0handle the upload of file(s). args: files: the uploaded files.
HIGHdocs/library/forms/upload.md0handle the upload of file(s). args: files: the uploaded files.
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0legibility describes how easily individual characters can be distinguished from one another. it is described by walter t
HIGHdocs/library/data-display/scroll_area.md0three fundamental aspects of typography are legibility, readability, and aesthetics. although in a non-technical sense "
HIGHdocs/library/data-display/scroll_area.md0three fundamental aspects of typography are legibility, readability, and aesthetics. although in a non-technical sense "
HIGHdocs/library/data-display/scroll_area.md0three fundamental aspects of typography are legibility, readability, and aesthetics. although in a non-technical sense "
HIGHdocs/getting_started/dashboard_tutorial.md0transform user gender group data into a format suitable for visualization in graphs.
HIGHdocs/getting_started/dashboard_tutorial.md0transform user gender group data into a format suitable for visualization in graphs.
HIGHdocs/getting_started/dashboard_tutorial.md0transform user gender group data into a format suitable for visualization in graphs.
HIGHdocs/getting_started/dashboard_tutorial.md0transform user gender group data into a format suitable for visualization in graphs.
HIGHdocs/getting_started/dashboard_tutorial.md0transform user gender group data into a format suitable for visualization in graphs.
HIGHpackages/reflex-base/src/reflex_base/vars/color.py0create a var from a string value. args: value: the value to create the var from. _var_type: the type of the var. _var_da
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0create a var from a string value. args: value: the value to create the var from. _var_type: the type of the var. _var_da
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0create a var from a string value. args: value: the value to create the var from. _var_type: the type of the var. _var_da
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0create a var from a string value. args: value: the value to create the var from. _var_type: the type of the var. _var_da
HIGHpackages/reflex-base/src/reflex_base/vars/color.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/object.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0get the hash of the var. returns: the hash of the var.
HIGH…es/reflex-base/src/reflex_base/components/component.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/event/__init__.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/event/__init__.py0get the hash of the var. returns: the hash of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0get the json representation of the var. returns: the json representation of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py0get the json representation of the var. returns: the json representation of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/number.py0get the json representation of the var. returns: the json representation of the var.
HIGHpackages/reflex-base/src/reflex_base/vars/number.py0calculate the hash value of the object. returns: int: the hash value of the object.
HIGHpackages/reflex-base/src/reflex_base/vars/number.py0calculate the hash value of the object. returns: int: the hash value of the object.
HIGHpackages/reflex-base/src/reflex_base/vars/base.py0calculate the hash value of the object. returns: int: the hash value of the object.
HIGHpackages/reflex-base/src/reflex_base/vars/base.py0represent the field in a readable format. returns: the string representation of the field.
HIGH…ckages/reflex-base/src/reflex_base/components/props.py0represent the field in a readable format. returns: the string representation of the field.
HIGH…es/reflex-base/src/reflex_base/components/component.py0represent the field in a readable format. returns: the string representation of the field.
HIGH…ges/reflex-base/src/reflex_base/plugins/tailwind_v4.py0get the packages required by the plugin. args: **context: the context for the plugin. returns: a list of packages requir
HIGH…reflex-base/src/reflex_base/plugins/shared_tailwind.py0get the packages required by the plugin. args: **context: the context for the plugin. returns: a list of packages requir
HIGH…ges/reflex-base/src/reflex_base/plugins/tailwind_v3.py0get the packages required by the plugin. args: **context: the context for the plugin. returns: a list of packages requir
135 more matches not shown…
Docstring Block Structure191 hits · 922 pts
SeverityFileLineSnippet
HIGHtests/integration/utils.py325Get a key from local storage. Args: key: The key to get. Returns: The value of
HIGHtests/integration/test_upload.py486Poll for progress dictionaries to stop updating. Args: get_progress_dicts: A callable that returns the list
HIGHtests/benchmarks/test_event_creation.py75Parametrized event-like input accepted by ``Event.from_event_type``. Args: request: The pytest fixture requ
HIGH…kages/reflex-hosting-cli/src/reflex_cli/core/config.py191Creates a Config instance from a YAML file. Args: yaml_path: The path to the YAML file. Defaults to
HIGH…kages/reflex-hosting-cli/src/reflex_cli/core/config.py227Creates a Config instance from a TOML file. Args: pyproject_path: The path to the TOML file. Defaul
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py60Create a ScaleAppCliArgs object. Args: regions: The regions to scale to. vm_type: The V
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py169Set the scale type from CLI arguments. Args: cli_args: The CLI arguments. Returns:
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py283Get an authenticated client. Args: token: The authentication token. interactive: If running in inte
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py393Validate the token with the control plane. Args: token: The access token to validate. Returns:
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py488Create a new access token. Args: name: The name of the token. expiration: The expiration time in se
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py619Search for an application by name within a specific project. Args: app_name: The name of the application to
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py684Search for a project by name. Args: project_name: The name of the application to search for. client
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py742Retrieve details of a specific application by its ID. Args: app_id: The ID of the application to retrieve.
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py784Create a new application. Args: app_name: The name of the application. description: The description
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py823Retrieve or reserve a hostname for a specific application. Args: app_id: The ID of the application.
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py908Retrieve secrets for a given application. Args: app_id: The ID of the application. client: The auth
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py946Update secrets for a given application. Args: app_id: The ID of the application. secrets: The secre
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py982Delete a secret for a given application. Args: app_id: The ID of the application. key: The key of t
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1020Create a new project. Args: name: The name of the project. client: The authenticated client Re
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1114Retrieve a list of projects. Args: client: The authenticated client. Returns: The list of proj
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1141Retrieve a single project given the project ID. Args: project_id: The ID of the project. client: Th
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1169Retrieve the roles for a project. Args: project_id: The ID of the project. client: The authenticate
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1201Retrieve the permissions for a specific role in a project. Args: project_id: The ID of the project.
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1233Retrieve the users for a project. Args: project_id: The ID of the project. client: The authenticate
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1265Invite a user to a project with a specific role. Args: role_id: The ID of the role to assign to the user.
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1368Create a new deployment for an application. Args: app_name: The name of the application. project_id
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1460Stop a running application. Args: app_id: The ID of the application. client: The authenticated clie
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1491Start a stopped application. Args: app_id: The ID of the application. client: The authenticated cli
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1522Delete an application. Args: app_id: The ID of the application. client: The authenticated client
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1564Retrieve logs for a given application. Args: app_id: The ID of the application. offset: The offset
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1627List all the hosted deployments of the authenticated user. Args: project: The project ID to filter deployme
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1664Retrieve the deployment history for a given application. Args: app_id: The ID of the application. c
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1705Retrieve the status of a specific app. Args: app_id: The ID of the app. client: The authenticated c
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1742Scale an application. Args: app_id: The ID of the application. scale_params: The scaling parameters
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1776Retrieve the status of a specific deployment. Args: deployment_id: The ID of the deployment. client
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1842Continuously watch the status of a specific deployment. Args: deployment_id: The ID of the deployment.
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1891Retrieve the build logs for a specific deployment. Args: deployment_id: The ID of the deployment. c
HIGH…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py2054Process the environment variables. Args: envs: The environment variables expected in key=value format.
HIGH…/reflex-hosting-cli/src/reflex_cli/utils/dependency.py18Detect the encoding of the given file. Args: filename: The file to detect encoding for. Raises:
HIGHpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py25Authenticate with Reflex hosting service. Args: loglevel: The log level to use. Returns: Infor
HIGHpackages/reflex-hosting-cli/src/reflex_cli/v2/gcp.py392Fetch the Dockerfile + deploy script from Reflex. Args: token: The Reflex API token to authenticate with.
HIGHpackages/reflex-hosting-cli/src/reflex_cli/v2/gcp.py459Generate a Cloud Build config that materializes the Dockerfile inline. The Dockerfile body is dropped into a bash h
HIGHpackages/reflex-hosting-cli/src/reflex_cli/v2/gcp.py510Rewrite the Reflex script's `gcloud builds submit` invocation to use --config=. Replaces the (possibly multi-line)
HIGHpackages/reflex-base/src/reflex_base/style.py112Format a single value in a style dictionary. Args: style_item: The style item to format. Returns:
HIGHpackages/reflex-base/src/reflex_base/environment.py32Get the default value for a field. Args: field: The field. Returns: The default value. Ra
HIGHpackages/reflex-base/src/reflex_base/environment.py53Interpret a boolean environment variable value. Args: value: The environment variable value. field_
HIGHpackages/reflex-base/src/reflex_base/environment.py77Interpret an integer environment variable value. Args: value: The environment variable value. field
HIGHpackages/reflex-base/src/reflex_base/environment.py97Interpret a float environment variable value. Args: value: The environment variable value. field_na
HIGHpackages/reflex-base/src/reflex_base/environment.py117Interpret a path environment variable value as an existing path. Args: value: The environment variable valu
HIGHpackages/reflex-base/src/reflex_base/environment.py150Interpret an environment variable value as a Plugin subclass. Resolves a fully qualified import path to the Plugin
HIGHpackages/reflex-base/src/reflex_base/environment.py190Interpret a plugin environment variable value. Resolves a fully qualified import path and returns an instance of th
HIGHpackages/reflex-base/src/reflex_base/environment.py214Interpret an enum environment variable value. Args: value: The environment variable value. field_ty
HIGHpackages/reflex-base/src/reflex_base/environment.py248Interpret an environment variable value based on the field type. Args: value: The environment variable valu
HIGHpackages/reflex-base/src/reflex_base/breakpoints.py55Create a new instance of the helper. Only provide a custom component OR use named props. Args: cust
HIGHpackages/reflex-base/src/reflex_base/vars/object.py314Get an attribute of the var. Args: name: The name of the attribute. Returns: T
HIGHpackages/reflex-base/src/reflex_base/vars/object.py481Create the literal object var. Args: _var_value: The value of the var. _var_type: The t
HIGHpackages/reflex-base/src/reflex_base/vars/sequence.py421Apply a function to each element of the array. Args: fn: The function to apply. Returns:
HIGHpackages/reflex-base/src/reflex_base/vars/number.py448Format the number. Args: format_spec: The format specifier. Returns: The forma
HIGHpackages/reflex-base/src/reflex_base/vars/base.py201Merge multiple var data objects. Args: *all: The var data objects to merge. Returns:
HIGHpackages/reflex-base/src/reflex_base/vars/base.py565Make a copy of this Var with updated fields. Args: _var_type: The new type of the Var.
131 more matches not shown…
Cross-Language Confusion116 hits · 668 pts
SeverityFileLineSnippet
HIGHtests/integration/test_var_operations.py649 rx.text(VarOperationState.list3.length()),
HIGHtests/integration/test_var_operations.py653 rx.text(VarOperationState.obj.length()),
HIGHtests/integration/test_var_operations.py659 VarOperationState.list3.length(),
HIGHtests/integration/test_var_operations.py673 rx.text(VarOperationState.list3.length()),
HIGHtests/integration/test_call_script.py455 == f'["{script}1",null,{{"{script}3":42,"a":[1,2,3],"s":"js","o":{{"a":1,"b":2}}}},"async {script}4"]'
HIGHtests/integration/test_call_script.py474 call_script.poll_for_value(results, exp_not_equal="[]") == '[["lambda",null]]'
HIGHtests/units/test_state.py1121 assert ds1.dynamic_int.equals(DynamicState.dynamic_int) # pyright: ignore [reportAttributeAccessIssue]
HIGHtests/units/test_state.py1126 assert ds1.dynamic_list.equals(DynamicState.dynamic_list) # pyright: ignore [reportAttributeAccessIssue]
HIGHtests/units/test_state.py1134 assert ds1.dynamic_dict.equals(DynamicState.dynamic_dict) # pyright: ignore [reportAttributeAccessIssue]
HIGHtests/units/test_state.py1135 assert ds2.dynamic_dict.equals(DynamicState.dynamic_dict) # pyright: ignore [reportAttributeAccessIssue]
HIGHtests/units/test_event.py221 == 'ReflexEvent("_call_function", {function:(() => (console?.["log"]("message"))),callback:null})'
HIGHtests/units/test_event.py226 == 'ReflexEvent("_call_function", {function:(() => (console?.["log"](message))),callback:null})'
HIGHtests/units/test_event.py231 == 'ReflexEvent("_call_function", {function:(() => (console?.["log"](message2))),callback:null})'
HIGHtests/units/test_event.py246 == 'ReflexEvent("_call_function", {function:(() => (window?.["alert"]("message"))),callback:null})'
HIGHtests/units/test_event.py251 == 'ReflexEvent("_call_function", {function:(() => (window?.["alert"](message))),callback:null})'
HIGHtests/units/test_event.py256 == 'ReflexEvent("_call_function", {function:(() => (window?.["alert"](message2))),callback:null})'
HIGHtests/units/test_event.py743 assert frontend_handler.equals(chain_event)
HIGHtests/units/test_event.py756 assert not frontend_handler.equals(chain_event)
HIGHtests/units/test_event.py931 assert frontend_handler.equals(chain_event)
HIGHtests/units/test_event.py776 assert frontend_handler.equals(chain_event)
HIGHtests/units/test_event.py825 assert chain_event.equals(Var.create(inner))
HIGHtests/units/test_event.py885 assert frontend_handler.equals(chain_event)
HIGHtests/units/test_event.py903 assert frontend_handler.equals(chain_event)
HIGHtests/units/test_style.py93 assert value.equals(d2[key])
HIGHtests/units/test_var.py645 assert str(var[:1]) == f"{var._js_expr}.slice(undefined, 1)"
HIGHtests/units/test_var.py646 assert str(var[1:]) == f"{var._js_expr}.slice(1, undefined)"
HIGHtests/units/test_var.py647 assert str(var[:]) == f"{var._js_expr}.slice(undefined, undefined)"
HIGHtests/units/test_var.py659 assert str(str_var[:1]) == 'str.split("").slice(undefined, 1).join("")'
HIGHtests/units/test_var.py660 assert str(str_var[1:]) == 'str.split("").slice(1, undefined).join("")'
HIGHtests/units/test_var.py661 assert str(str_var[:]) == 'str.split("").slice(undefined, undefined).join("")'
HIGHtests/units/test_var.py665 assert str(str_var[:-1]) == 'str.split("").slice(undefined, -1).join("")'
HIGHtests/units/test_var.py666 assert str(str_var[-1:]) == 'str.split("").slice(-1, undefined).join("")'
HIGHtests/units/test_var.py667 assert str(str_var[:-2]) == 'str.split("").slice(undefined, -2).join("")'
HIGHtests/units/test_var.py668 assert str(str_var[-2:]) == 'str.split("").slice(-2, undefined).join("")'
HIGHtests/units/test_var.py278 assert prop.equals(expected)
HIGHtests/units/test_var.py906 == '[({ ["a"] : 1, ["b"] : 2, ["c"] : ({ ["d"] : 3, ["e"] : 4 }) }), [1, 2, 3, 4], 9, "string", true, false, nul
HIGHtests/units/test_var.py1002 assert str(basic_string.length()) == '"Hello, World!".split("").length'
HIGHtests/units/test_var.py1064 == "[1, 2, 3, 4, 5].slice(0, [1, 2, 3, 4, 5].length).slice().reverse().slice(undefined, undefined).filter((_, i)
HIGHtests/units/test_var.py1089 assert str(array_var.length()) == "[1, 2, 3, 4, 5].length"
HIGHtests/units/test_app.py2093 """fallbackRender:((event_args) => (jsx("div", ({css:({ ["height"] : "100%", ["width"] : "100%", ["position"] :
HIGHtests/units/test_app.py2338 """fallbackRender:((event_args) => (jsx("div", ({css:({ ["height"] : "100%", ["width"] : "100%", ["position"] :
HIGHtests/units/reflex_cli/utils/test_hosting.py190 ('{"project": null}', None),
HIGHtests/units/components/test_component.py1964 "const hook3 = useRef(null)",
HIGHtests/units/components/test_component.py1971 "const hook3 = useRef(null)": None,
HIGHtests/units/components/test_component.py1977 _js_expr="const hook3 = useRef(null)",
HIGHtests/units/components/test_component.py1983 "const hook3 = useRef(null)",
HIGHtests/units/components/test_component.py609 assert c1.number.equals(test_state.num)
HIGHtests/units/components/test_component.py1369 assert comp_var.equals(exp_var)
HIGHtests/units/components/test_component.py1726 assert v1.equals(v2)
HIGHtests/units/components/core/test_colors.py40 f'("var(--"+{color_state_name!s}.color{FIELD_MARKER}+"-"+(((__to_string) => __to_string.toString())({color_s
HIGHtests/units/components/core/test_colors.py47 f'("var(--"+{color_state_name!s}.color{FIELD_MARKER}+"-"+({color_state_name!s}.alpha{FIELD_MARKER} ? "a" : "
HIGHtests/units/components/core/test_colors.py52 f'("var(--"+{color_state_name!s}.color{FIELD_MARKER}+"-"+(((__to_string) => __to_string.toString())({color_s
HIGHtests/units/components/core/test_colors.py62 f'("var(--"+({color_state_name!s}.color_part{FIELD_MARKER}+"ato")+"-"+(((__to_string) => __to_string.toStrin
HIGHtests/units/components/markdown/test_markdown.py72 Var(_js_expr="(({node, children, ...props}) => undefined)"),
HIGHtests/units/components/markdown/test_markdown.py114 Var(_js_expr="(({node, children, ...props}) => undefined)"),
HIGHtests/units/compiler/test_compiler.py438 assert lang.equals(Var.create("en"))
HIGHtests/units/compiler/test_compiler.py444 assert char_set.equals(Var.create("utf-8"))
HIGHtests/units/compiler/test_compiler.py448 assert name.equals(Var.create("viewport"))
HIGHtests/units/compiler/test_compiler.py480 assert lang.equals(Var.create("rx"))
HIGHtests/units/compiler/test_memoize_plugin.py393 Bare.create(SpecialFormMemoState.items.length()),
56 more matches not shown…
Unused Imports607 hits · 551 pts
SeverityFileLineSnippet
LOWtests/__init__.py3
LOWtests/__init__.py5
LOWtests/test_node_version.py3
LOWtests/integration/test_deploy_url.py3
LOWtests/integration/test_lighthouse.py3
LOWtests/integration/test_linked_state.py3
LOWtests/integration/test_event_actions.py3
LOWtests/integration/test_computed_vars.py3
LOWtests/integration/test_shared_state.py3
LOWtests/integration/test_state_inheritance.py3
LOWtests/integration/test_event_chain.py3
LOWtests/integration/test_exception_handlers.py3
LOWtests/integration/utils.py3
LOWtests/integration/test_call_script.py3
LOWtests/integration/test_prod_build_pipeline.py6
LOWtests/integration/test_upload.py3
LOWtests/integration/test_login_flow.py3
LOWtests/integration/test_dynamic_routes.py3
LOWtests/integration/test_precompressed_frontend.py3
LOWtests/integration/test_client_storage.py3
LOWtests/integration/lighthouse_utils.py3
LOW…sts/integration/tests_playwright/test_frontend_path.py10
LOWtests/integration/tests_playwright/test_mount_target.py9
LOWtests/integration/tests_playwright/test_backend_path.py9
LOWtests/units/test_attribute_access_type.py1
LOWtests/units/test_model.py20
LOWtests/units/__init__.py3
LOWtests/units/__init__.py5
LOWtests/units/test_state.py1
LOWtests/units/test_style.py1
LOWtests/units/test_app.py1
LOWtests/units/middleware/test_hydrate_middleware.py1
LOWtests/units/vars/test_dep_tracking.py3
LOWtests/units/vars/test_dep_tracking_integration.py3
LOW…sts/units/reflex_base/utils/pyi_generator/test_unit.py8
LOW…its/reflex_base/utils/pyi_generator/test_regression.py13
LOWtests/units/plugins/test_embed.py3
LOWtests/units/reflex_cli/utils/test_hosting.py1
LOWtests/units/reflex_cli/v2/test_apps.py1
LOWtests/units/reflex_cli/v2/test_gcp.py1
LOWtests/units/reflex_cli/v2/test_cli.py1
LOWtests/units/app_mixins/test_lifespan.py3
LOWtests/units/utils/test_precompressed_staticfiles.py3
LOWtests/units/utils/test_build.py3
LOWtests/units/utils/test_format.py1
LOWtests/units/utils/test_export.py3
LOWtests/units/utils/test_streaming_response.py1
LOW…/units/components/test_component_future_annotations.py1
LOWtests/units/components/test_props.py1
LOWtests/units/components/test_memo.py3
LOWtests/units/compiler/test_compiler_utils.py1
LOWtests/benchmarks/conftest.py1
LOWtests/benchmarks/conftest.py1
LOWtests/benchmarks/test_compilation.py18
LOWdocs/app/tests/test_doc_links.py14
LOWdocs/app/reflex_docs/templates/__init__.py1
LOWdocs/app/reflex_docs/templates/docpage/__init__.py1
LOWdocs/app/reflex_docs/templates/docpage/docpage.py14
LOWdocs/app/reflex_docs/templates/docpage/docpage.py15
LOWdocs/app/reflex_docs/templates/docpage/docpage.py16
547 more matches not shown…
Self-Referential Comments57 hits · 167 pts
SeverityFileLineSnippet
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py66 # Create a tiny valid 1x1 red PNG.
MEDIUMtests/units/test_state.py1995 # Create a mocked redis client instead of skipping.
MEDIUMtests/units/mock_redis.py272 # Create a pubsub to keep the internal event log for assertions.
MEDIUMtests/units/vars/test_dep_tracking.py498 # Create a closure to get a cell object
MEDIUMtests/units/utils/test_processes.py27 # Create a server socket to occupy a port
MEDIUMtests/units/components/graphing/test_plotly.py23 # Create a graph.
MEDIUMtests/units/assets/test_assets.py25 # Create a temporary directory to act as the current working directory.
MEDIUMdocs/app/reflex_docs/reflex_docs.py36# Create the app.
MEDIUMpackages/reflex-base/src/reflex_base/style.py291 # Create a Var to collapse VarData encoded in f-string.
MEDIUM…kages/reflex-base/src/reflex_base/vars/dep_tracking.py344 # Create a python source string snippet.
MEDIUMpackages/reflex-base/src/reflex_base/utils/format.py48 # Create a matrix of size (len(str1) + 1) x (len(str2) + 1)
MEDIUM…es/reflex-base/src/reflex_base/components/component.py1110 # Create the base tag.
MEDIUM…es/reflex-base/src/reflex_base/components/component.py1115 # Create the base tag.
MEDIUMpackages/reflex-base/src/reflex_base/event/__init__.py150 # Create an event and append it to the list.
MEDIUMpackages/reflex-base/src/reflex_base/event/__init__.py2250 # Create an event and append it to the list.
MEDIUM…ase/src/reflex_base/event/processor/event_processor.py743 # Create a new task in the same context to invoke the exception handler.
MEDIUM…s-radix/src/reflex_components_radix/primitives/form.py172# This class is created mainly for reflex-web docs.
MEDIUM…d/src/reflex_site_shared/components/blocks/headings.py20 # This function is imported from 'hast-util-to-string' package.
MEDIUM…d/src/reflex_site_shared/components/blocks/headings.py25 # This function is defined by add_custom_code.
MEDIUM…hared/src/reflex_site_shared/components/blocks/demo.py57 # Create the code snippet.
MEDIUM…hared/src/reflex_site_shared/components/blocks/demo.py132 # Create the demo.
MEDIUM…reflex-site-shared/src/reflex_site_shared/lib/route.py60 # Create a path based on the module name.
MEDIUM…ponents-core/src/reflex_components_core/core/upload.py306 # Create the component.
MEDIUM…omponents-core/src/reflex_components_core/core/html.py44 # Create the component.
MEDIUM…omponents-core/src/reflex_components_core/core/cond.py193 # Create the conditional var.
MEDIUM…aeditor/src/reflex_components_dataeditor/dataeditor.py472 # Define the id of the component in case multiple are used in the same page.
MEDIUM…aeditor/src/reflex_components_dataeditor/dataeditor.py475 # Define the name of the getData callback associated with this component and assign to get_cell_content.
MEDIUM…ts-markdown/src/reflex_components_markdown/markdown.py259 # Create the component.
MEDIUM…c/reflex_components_internal/components/base/select.py612 # Create the items children
MEDIUM…nents-gridjs/src/reflex_components_gridjs/datatable.py94 # Create the component.
MEDIUM…lex-components-code/src/reflex_components_code/code.py488 # Create the component.
MEDIUMreflex/assets.py199 # Create the asset folder in the currently compiling app.
MEDIUMreflex/app.py510 # Create the socket app. Note event endpoint constant replaces the default 'socket.io' path.
MEDIUMreflex/app.py514 # Create the event namespace and attach the main app. Not related to any paths.
MEDIUMreflex/app.py634 # Create the event processor.
MEDIUMreflex/app.py1605 # Creating a task prevents the update from being blocked behind other coroutines.
MEDIUMreflex/state.py467 # Create a fresh copy of only the non-inherited backend variables for this instance.
MEDIUMreflex/state.py689 # Create the setvar event handler for this state
MEDIUMreflex/istate/proxy.py431 # Create a new class that has the __dataclass_fields__ defined
MEDIUMreflex/istate/manager/disk.py183 # Create a new root state tree with all substates instantiated.
MEDIUMreflex/istate/manager/redis.py502 # Create the lease break task since we got the lock.
MEDIUMreflex/istate/manager/redis.py719 # Create the task now if one didn't sneak past us.
MEDIUMreflex/istate/manager/redis.py892 # Create a new or get existing set of waiters in manager lock.
MEDIUMreflex/utils/build.py109 # Create a progress bar for zipping the component.
MEDIUMreflex/utils/build.py293 # Create a subdirectory that matches the configured frontend_path.
MEDIUMreflex/utils/js_runtimes.py1"""This module provides utilities for managing JavaScript runtimes like Node.js and Bun."""
MEDIUMreflex/utils/prerequisites.py619 # Create the reflex directory.
MEDIUMreflex/utils/rename.py1"""This module provides utilities for renaming directories and files in a Reflex app."""
MEDIUMreflex/utils/path_ops.py236 # Create the parent directory if it doesn't exist.
MEDIUMreflex/utils/path_ops.py239 # Create the file if it doesn't exist.
MEDIUMreflex/utils/path_ops.py242 # Create an empty json object if file is empty
MEDIUMreflex/utils/templates.py1"""This module provides utilities for managing Reflex app templates."""
MEDIUMreflex/utils/templates.py125 # Create a temp directory for the zip download.
MEDIUMreflex/utils/templates.py149 # Create a temp directory for the zip extraction.
MEDIUMreflex/utils/frontend_skeleton.py1"""This module provides utility functions to initialize the frontend skeleton."""
MEDIUMreflex/compiler/compiler.py536 # Create the document root.
MEDIUMreflex/compiler/compiler.py576 # Create the theme.
Decorative Section Separators54 hits · 147 pts
SeverityFileLineSnippet
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py21# ---------------------------------------------------------------------------
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py23# ---------------------------------------------------------------------------
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py233# ---------------------------------------------------------------------------
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py235# ---------------------------------------------------------------------------
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py319# ---------------------------------------------------------------------------
MEDIUM…sts/integration/tests_playwright/test_frontend_path.py321# ---------------------------------------------------------------------------
MEDIUMtests/units/components/test_memo.py759# ---------------------------------------------------------------------------
MEDIUMtests/units/components/test_memo.py763# ---------------------------------------------------------------------------
MEDIUMtests/units/docgen/test_class_and_component.py94# ---------------------------------------------------------------------------
MEDIUMtests/units/docgen/test_class_and_component.py96# ---------------------------------------------------------------------------
MEDIUMtests/units/docgen/test_markdown.py485# ---------------------------------------------------------------------------
MEDIUMtests/units/docgen/test_markdown.py487# ---------------------------------------------------------------------------
MEDIUMdocs/app/tests/test_docgen_double_eval.py84# ---------------------------------------------------------------------------
MEDIUMdocs/app/tests/test_docgen_double_eval.py86# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py410 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py412 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py57# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py59# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py145# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py147# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py201# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py203# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py218 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py220 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py237 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py239 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py380 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py383 # ------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py763# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/docgen_pipeline.py765# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/pages/docs/__init__.py97# ---------------------------------------------------------------------------
MEDIUMdocs/app/reflex_docs/pages/docs/__init__.py99# ---------------------------------------------------------------------------
MEDIUM…ges/reflex-docgen/src/reflex_docgen/markdown/_types.py7# ---------------------------------------------------------------------------
MEDIUM…ges/reflex-docgen/src/reflex_docgen/markdown/_types.py9# ---------------------------------------------------------------------------
MEDIUM…ges/reflex-docgen/src/reflex_docgen/markdown/_types.py117# ---------------------------------------------------------------------------
MEDIUM…ges/reflex-docgen/src/reflex_docgen/markdown/_types.py119# ---------------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py74 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py76 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py92 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py94 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py139 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py141 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py184 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py186 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py221 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py223 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py324 # ------------------------------------------------------------------
MEDIUM…docgen/src/reflex_docgen/markdown/transformer/_base.py326 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py57 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py59 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py76 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py78 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py109 # ------------------------------------------------------------------
MEDIUM…en/src/reflex_docgen/markdown/transformer/_markdown.py111 # ------------------------------------------------------------------
Deep Nesting110 hits · 98 pts
SeverityFileLineSnippet
LOWtests/integration/test_large_state.py48
LOWtests/integration/test_urls.py11
LOWtests/units/mock_redis.py19
LOWtests/units/mock_redis.py187
LOWtests/units/mock_redis.py211
LOW…its/reflex_base/utils/pyi_generator/test_regression.py216
LOWdocs/app/tests/test_urls.py11
LOWdocs/app/tests/test_doc_links.py89
LOWdocs/app/reflex_docs/docgen_pipeline.py83
LOWdocs/app/reflex_docs/docgen_pipeline.py427
LOWdocs/app/reflex_docs/docgen_pipeline.py463
LOWdocs/app/reflex_docs/docgen_pipeline.py516
LOWdocs/app/reflex_docs/docgen_pipeline.py639
LOWdocs/app/reflex_docs/pages/docs/__init__.py65
LOWdocs/app/reflex_docs/pages/docs/component.py266
LOWdocs/app/reflex_docs/pages/docs/component.py450
LOWdocs/app/reflex_docs/pages/docs/component.py597
LOW…app/reflex_docs/pages/integrations/integration_list.py7
LOW…app/reflex_docs/pages/docs_landing/views/ai_builder.py13
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py457
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py52
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py209
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py274
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py338
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py457
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py657
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py764
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py77
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/secrets.py40
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/secrets.py120
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/secrets.py202
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/project.py258
LOWpackages/reflex-base/src/reflex_base/config.py399
LOWpackages/reflex-base/src/reflex_base/config.py432
LOWpackages/reflex-base/src/reflex_base/style.py165
LOWpackages/reflex-base/src/reflex_base/style.py342
LOWpackages/reflex-base/src/reflex_base/environment.py245
LOWpackages/reflex-base/src/reflex_base/vars/base.py317
LOWpackages/reflex-base/src/reflex_base/vars/base.py783
LOWpackages/reflex-base/src/reflex_base/vars/base.py3524
LOWpackages/reflex-base/src/reflex_base/vars/function.py54
LOW…kages/reflex-base/src/reflex_base/vars/dep_tracking.py239
LOW…kages/reflex-base/src/reflex_base/vars/dep_tracking.py388
LOWpackages/reflex-base/src/reflex_base/plugins/sitemap.py135
LOW…ges/reflex-base/src/reflex_base/plugins/_screenshot.py86
LOW…ges/reflex-base/src/reflex_base/plugins/_screenshot.py95
LOW…eflex-base/src/reflex_base/utils/streaming_response.py38
LOW…eflex-base/src/reflex_base/utils/streaming_response.py97
LOWpackages/reflex-base/src/reflex_base/utils/format.py35
LOWpackages/reflex-base/src/reflex_base/utils/format.py524
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py172
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py308
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py594
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py698
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py801
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py845
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py1208
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py1310
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py1655
LOWpackages/reflex-base/src/reflex_base/utils/types.py409
50 more matches not shown…
Excessive Try-Catch Wrapping84 hits · 80 pts
SeverityFileLineSnippet
LOWtests/integration/test_urls.py51 except Exception as e:
LOWtests/integration/lighthouse_utils.py1033 except Exception:
LOWdocs/app/tests/test_urls.py58 except Exception as e:
LOWdocs/app/tests/test_doc_links.py152 except Exception as exc:
LOWdocs/app/reflex_docs/docgen_pipeline.py447 except Exception as e:
LOWdocs/app/reflex_docs/docgen_pipeline.py482 except Exception as e:
LOWdocs/app/reflex_docs/pages/docs/component.py143 except Exception:
LOWdocs/app/reflex_docs/pages/docs/component.py546 except Exception:
LOWdocs/app/reflex_docs/pages/docs/component.py553 except Exception as e:
LOWdocs/app/reflex_docs/pages/docs/component.py585 except Exception:
MEDIUMdocs/app/reflex_docs/pages/docs/component.py259def safe_issubclass(cls, class_or_tuple):
LOWdocs/api-reference/utils.md70 except Exception as e:
LOWdocs/api-reference/utils.md98 except Exception as e:
LOWscripts/wait_for_listening_port.py42 except Exception:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py361 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py386 except Exception:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py433 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py447 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py477 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1074 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1106 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py1966 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py2048 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py2140 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py2206 except Exception as ex:
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py2242 except Exception as ex:
LOW…/reflex-hosting-cli/src/reflex_cli/utils/dependency.py41 except Exception:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py408 except Exception:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py613 except Exception:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/apps.py620 except Exception as ex:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py232 except Exception as ex:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py294 except Exception:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py407 except Exception as ex:
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py435 except Exception as ex:
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/project.py228 except Exception as e:
LOW…ckages/reflex-hosting-cli/src/reflex_cli/v2/project.py295 except Exception as e:
LOWpackages/reflex-base/src/reflex_base/config.py457 except Exception:
LOWpackages/reflex-base/src/reflex_base/config.py764 except Exception:
LOWpackages/reflex-base/src/reflex_base/environment.py178 except Exception as e:
LOWpackages/reflex-base/src/reflex_base/environment.py208 except Exception as e:
LOWpackages/reflex-base/src/reflex_base/vars/base.py2456 except Exception as e:
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py1643 except Exception:
LOW…ase/src/reflex_base/event/processor/event_processor.py304 except Exception as ex:
LOW…ase/src/reflex_base/event/processor/event_processor.py674 except Exception:
LOW…ase/src/reflex_base/event/processor/event_processor.py732 except Exception as ex:
LOW…rc/reflex_base/event/processor/base_state_processor.py160 except Exception as ex:
LOW…rc/reflex_base/event/processor/base_state_processor.py230 except Exception as ex:
LOWpackages/reflex-docgen/src/reflex_docgen/_class.py338 except Exception as e:
LOW…ite-shared/src/reflex_site_shared/backend/get_blogs.py42 except Exception:
LOWreflex/model.py528 except Exception as exc:
LOWreflex/app.py179 except Exception as e:
LOWreflex/app.py1253 except Exception as exc:
LOWreflex/state.py2221 except Exception:
LOWreflex/istate/__init__.py21 except Exception:
LOWreflex/istate/shared.py29 except Exception as e:
LOWreflex/istate/manager/disk.py129 except Exception:
LOWreflex/istate/manager/disk.py284 except Exception as e:
LOWreflex/istate/manager/redis.py689 except Exception as e:
LOWreflex/app_mixins/lifespan.py134 except Exception as e:
LOWreflex/utils/tasks.py45 except Exception as e:
24 more matches not shown…
Fake / Example Data38 hits · 45 pts
SeverityFileLineSnippet
LOWtests/units/reflex_cli/v2/test_gcp.py38 mocker: MockFixture, account: str = "user@example.com"
LOWtests/benchmarks/fixtures.py337LOREM_IPSUM = "Lorem ipsum dolor sit amet, dolor ut dolore pariatur aliqua enim tempor sed. Labore excepteur sed exercit
LOWtests/benchmarks/fixtures.py337LOREM_IPSUM = "Lorem ipsum dolor sit amet, dolor ut dolore pariatur aliqua enim tempor sed. Labore excepteur sed exercit
LOWdocs/enterprise/mantine/spoiler.md17 "This is a spoiler zone where lorem ipsum text dolor sit amet, consectetur adipiscing elit. Sed do eiusmod t
LOWdocs/enterprise/mantine/spoiler.md17 "This is a spoiler zone where lorem ipsum text dolor sit amet, consectetur adipiscing elit. Sed do eiusmod t
LOWdocs/library/tables-and-data-grids/table.md262 "name": "John Doe",
LOWdocs/library/tables-and-data-grids/table.md264 "phone": "555-1234",
LOWdocs/library/tables-and-data-grids/table.md265 "address": "123 Main St",
LOWdocs/library/tables-and-data-grids/table.md270 "phone": "555-5678",
LOWdocs/library/tables-and-data-grids/table.md276 "phone": "555-9012",
LOWdocs/library/tables-and-data-grids/table.md282 "phone": "555-3456",
LOWdocs/library/tables-and-data-grids/table.md500 "name": "John Doe",
LOWdocs/library/tables-and-data-grids/table.md502 "phone": "555-1234",
LOWdocs/library/tables-and-data-grids/table.md503 "address": "123 Main St",
LOWdocs/library/tables-and-data-grids/table.md508 "phone": "555-5678",
LOWdocs/library/tables-and-data-grids/table.md514 "phone": "555-9012",
LOWdocs/library/tables-and-data-grids/table.md520 "phone": "555-3456",
LOWdocs/library/tables-and-data-grids/table.md624 "name": "John Doe",
LOWdocs/library/tables-and-data-grids/table.md626 "phone": "555-1234",
LOWdocs/library/tables-and-data-grids/table.md627 "address": "123 Main St",
LOWdocs/library/tables-and-data-grids/table.md632 "phone": "555-5678",
LOWdocs/library/tables-and-data-grids/table.md638 "phone": "555-9012",
LOWdocs/library/tables-and-data-grids/table.md644 "phone": "555-3456",
LOWdocs/library/tables-and-data-grids/table.md650 "phone": "555-7890",
LOWdocs/library/tables-and-data-grids/table.md656 "phone": "555-2345",
LOWdocs/library/tables-and-data-grids/table.md837 name="John Doe",
LOWdocs/library/tables-and-data-grids/table.md839 phone="555-1234",
LOWdocs/library/tables-and-data-grids/table.md840 address="123 Main St",
LOWdocs/library/tables-and-data-grids/table.md845 phone="555-5678",
LOWdocs/library/tables-and-data-grids/table.md851 phone="555-9012",
LOWdocs/library/tables-and-data-grids/table.md857 phone="555-3456",
LOWdocs/library/tables-and-data-grids/table.md863 phone="555-7890",
LOWdocs/library/tables-and-data-grids/table.md869 phone="555-2345",
LOWdocs/library/tables-and-data-grids/table.md1069 name="John Doe",
LOWdocs/library/tables-and-data-grids/table.md1071 phone="555-1234",
LOWdocs/library/tables-and-data-grids/table.md1072 address="123 Main St",
LOWdocs/library/tables-and-data-grids/table.md1077 phone="555-5678",
LOWdocs/library/tables-and-data-grids/table.md1083 phone="555-9012",
Redundant / Tautological Comments29 hits · 42 pts
SeverityFileLineSnippet
LOWtests/units/components/datadisplay/test_shiki_code.py135 # Check if the transformer is set correctly if expected
LOWtests/units/components/datadisplay/test_shiki_code.py141 # Check if the second child is the copy button if can_copy is True
LOWdocs/app/tests/test_urls.py27 # Check if the root path contains the target directories
LOWdocs/app/reflex_docs/templates/docpage/docpage.py854 # Check if first is (toc, doc_content) from get_toc
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py528 # Check if the user is authenticated
LOW…ges/reflex-hosting-cli/src/reflex_cli/utils/hosting.py545 # Check if the user is authenticated
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py387 # Check if the reflex version is >= 0.7.6
LOWpackages/reflex-hosting-cli/src/reflex_cli/v2/cli.py415 # Check if the reflex version is >= 0.7.6
LOW…ges/reflex-base/src/reflex_base/utils/pyi_generator.py384 # Check if this line has a prop.
LOWpackages/reflex-base/src/reflex_base/utils/types.py305 # Check if the class inherits from a generic class (using __orig_bases__)
LOWpackages/reflex-base/src/reflex_base/utils/types.py1080 # Check if the origin of both types is the same (e.g., list for list[int])
LOW…ckages/reflex-base/src/reflex_base/components/props.py244 # Check if this field expects a specific Props type and we got a dict
LOW…ckages/reflex-base/src/reflex_base/components/props.py250 # Check if this field expects a list of Props and we got a list of dicts
LOW…es/reflex-base/src/reflex_base/components/component.py979 # Check if the key is an event trigger.
LOWreflex/reflex.py867 # Check if we are set up.
LOWreflex/app.py871 # Check if the route given is valid
LOWreflex/app.py1390 # Check if the function has the necessary annotations and types in the right order
LOWreflex/app.py1416 # Check if the return type is valid for backend exception handler
LOWreflex/state.py555 # Check if another substate class with the same name has already been defined.
LOWreflex/state.py934 # Check if the method is overridden and not a dunder method
LOWreflex/state.py1227 # Check if function has stored event_actions from decorator
LOWreflex/istate/manager/redis.py184 asyncio.get_running_loop() # Check if we're in an event loop.
LOWreflex/istate/manager/redis.py515 # Check if we still have the redis lock, then just try to send this one update and release it.
LOWreflex/istate/manager/redis.py1029 # Check if this process got a lease, then we can abandon waiting on the redis lock.
LOWreflex/utils/token_manager.py145 # Check if token is already mapped to a different SID (duplicate tab)
LOWreflex/utils/templates.py230 # Check if the template is a github repo.
LOWreflex/utils/templates.py387 # Check if the app is already initialized.
LOWreflex/utils/processes.py356 # Check if the process failed (not printing the logs for SIGINT).
LOWreflex/utils/frontend_skeleton.py40 # Write files to the .gitignore file.
AI Slop Vocabulary7 hits · 24 pts
SeverityFileLineSnippet
MEDIUMtests/integration/test_lifespan.py323# find the harness in a stopped state and fail.
MEDIUMtests/integration/test_tailwind.py45 # Write next to the compiled app (Path.cwd() inside the harness) so reruns
MEDIUMpackages/reflex-base/src/reflex_base/environment.py618 # Whether to run app harness tests in headless mode.
MEDIUMpackages/reflex-base/src/reflex_base/environment.py621 # Which app harness driver to use.
MEDIUMpackages/reflex-base/src/reflex_base/environment.py624 # Arguments to pass to the app harness driver.
LOWpackages/reflex-base/src/reflex_base/utils/format.py462 # If there's no enclosing state, just return the full name.
MEDIUMdocker-example/production-compose/compose.yaml4# See `compose.prod.yaml` for more robust and performant deployment option.
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/codeql.yml56 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
MEDIUMreflex/custom_components/custom_components.py124 # you can use aliases to differentiate between them and avoid naming conflicts.
MEDIUMreflex/custom_components/custom_components.py136 # In this case you can use the lib_dependencies property to specify other libraries to install.
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippet
LOWtests/integration/test_lifespan.py321# --- Do NOT add new test cases below this line. ---
LOW…/app/reflex_docs/components/docpage/navbar/__init__.py1# Navbar components: buttons.sidebar, search, state
LOW…lex_docs/templates/docpage/sidebar/sidebar_items/ai.py41 ai_builder.app_lifecycle.download_app,
LOWpackages/reflex-base/src/reflex_base/components/memo.py1461 # specific children at any given call site. Original descendants stay
LOW…ts-code/src/reflex_components_code/shiki_code_block.py501 # "position": "relative", # noqa: ERA001
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply need
LOWreflex/custom_components/custom_components.py101# Some libraries you want to wrap may require dynamic imports.
LOWreflex/custom_components/custom_components.py121 # is_default = True
Overly Generic Function Names6 hits · 5 pts
SeverityFileLineSnippet
LOWtests/units/test_state.py199 def do_something(self):
LOW…sts/units/reflex_base/utils/pyi_generator/test_unit.py434 def helper(self) -> str:
LOW…sts/units/reflex_base/utils/pyi_generator/test_unit.py440 assert "def helper(self) -> str:" in result
LOWtests/units/components/test_component.py53 def do_something(self):
LOWtests/units/components/test_component.py2068 def do_something(self):
LOWtests/units/docgen/test_class_and_component.py283 def do_stuff(self) -> None:
Dead Code1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMtests/units/istate/test_proxy.py59