Skip to content

Code quality

ALN** occurrences by order of importance

NOQA Number of occurrences
ALN069: You can't import models from other components, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", 2
ALN043: You can only import things from a Component public module, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", 44
ALN036: URL or URI parameters can lead to Server Side Request Forgery (SSRF) attacks. Attackers could get the server to make requests to an unintended location, which could lead to unauthorized actions or access to data within the network. https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html ⧉ 2

Listing of files of the most critical ALN**

ALN069 occurs 2 times

File:line Content
components/global_customer_dashboard/external/queries/employee.py:227 ⧉ from components.fr.internal.models.enums.professional_category import ( # noqa: ALN069
components/global_customer_dashboard/external/queries/tests/test_payfit_affiliation_integration.py:8 ⧉ from components.fr.internal.models.enums.payfit_integration_status import ( # noqa: ALN069

ALN043 occurs 44 times

File:line Content
components/global_customer_dashboard/external/manager_training.py:16 ⧉ from components.fr.internal.business_logic.customer_health_partner.wellbeing_assessment.manager_training import ( # noqa: ALN043
components/global_customer_dashboard/external/actions/admin_invitation.py:26 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/actions/admin_invitation.py:105 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/actions/admin_invitation.py:125 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/actions/admin_invitation.py:179 ⧉ from components.fr.internal.mail.company.admins.multi_entity_admin_invitation import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/user.py:25 ⧉ from components.fr.internal.controllers.user import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/user.py:95 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/user.py:141 ⧉ from components.fr.internal.business_logic.user.queries.user import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admin_search.py:25 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin_search import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admin_invitation.py:36 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admin_invitation.py:89 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admin_invitation.py:151 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin_invitation import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/account.py:21 ⧉ from components.fr.internal.controllers.account import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/account.py:48 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/account.py:72 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.account import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/employee.py:39 ⧉ from components.fr.internal.business_logic.company.queries.global_customer_dashboard_employees import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/employee.py:95 ⧉ from components.fr.internal.business_logic.company.queries.global_customer_dashboard_employees import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/employee.py:184 ⧉ from components.fr.internal.business_logic.company.queries.employee_list import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/employee.py:372 ⧉ from components.fr.internal.business_logic.company.queries.employees import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/employee.py:403 ⧉ from components.fr.internal.helpers.company import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/company_managers.py:12 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/payfit_affiliation_integration.py:16 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.payfit_affiliation_integration import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/company.py:21 ⧉ from components.fr.internal.controllers.company import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/company.py:51 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/company.py:78 ⧉ from components.fr.internal.business_logic.company.queries.company import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admined_entities.py:29 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admined_entities.py:58 ⧉ from components.fr.public.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admined_entities.py:176 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admined_entities.py:206 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/admined_entities.py:231 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.admin import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_user.py:3 ⧉ from components.fr.internal.tests.factories.company_manager import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_user.py:6 ⧉ from components.fr.internal.tests.factories.policy import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_user.py:9 ⧉ from components.fr.internal.tests.factories.user import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_user.py:64 ⧉ from components.fr.internal.product_settings.entities.account_feature import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_user.py:67 ⧉ from components.fr.internal.tests.factories.account_setting import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_payfit_affiliation_integration.py:5 ⧉ from components.fr.internal.business_logic.global_customer_dashboard.payfit_affiliation_integration import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_payfit_affiliation_integration.py:11 ⧉ from components.fr.internal.tests.factories.company import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_payfit_affiliation_integration.py:14 ⧉ from components.fr.internal.tests.factories.company_external_information import ( # noqa: ALN043
components/global_customer_dashboard/external/queries/tests/test_payfit_affiliation_integration.py:17 ⧉ from components.fr.internal.tests.factories.payfit_partner_information import ( # noqa: ALN043
components/global_customer_dashboard/internal/controllers/tests/test_workshops.py:4 ⧉ from components.fr.internal.tests.factories.account import ( # noqa: ALN043 # we're OK with testing with FR-specific data here.
components/global_customer_dashboard/internal/controllers/tests/test_workshops.py:7 ⧉ from components.fr.internal.tests.factories.company import ( # noqa: ALN043
components/global_customer_dashboard/internal/controllers/tests/test_workshops.py:10 ⧉ from components.fr.internal.tests.factories.company_admin import ( # noqa: ALN043
components/global_customer_dashboard/internal/controllers/tests/test_workshops.py:13 ⧉ from components.fr.internal.tests.factories.user import ( # noqa: ALN043
components/global_customer_dashboard/internal/controllers/tests/test_manager_training.py:3 ⧉ from components.fr.internal.tests.factories.company import ( # noqa: ALN043