Open Source Inventory Management System
This report presents the forensic synthetic code analysis of inventree/InvenTree, a Python project with 7,251 GitHub stars. SynthScan v2.0 examined 286,449 lines of code across 1362 source files, recording 1608 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 10.0 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1608 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/frontend/src/functions/auth.tsx | 183 | const mfa_flow = err.response.data.data.flows.find( | CODE |
| CRITICAL | src/frontend/src/functions/auth.tsx | 403 | const mfa_trust = err.response.data.data.flows.find( | CODE |
| CRITICAL | src/frontend/src/functions/auth.tsx | 794 | const mfa_trust = err.response.data.data.flows.find( | CODE |
| CRITICAL | src/backend/InvenTree/order/models.py | 7 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/order/test_sales_order.py | 7 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/order/serializers.py | 5 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/order/test_api.py | 11 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/models.py | 10 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/validators.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/serializers.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/operations.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/tests.py | 159 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/importer/tests.py | 197 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/test_plugin.py | 15 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/serializers.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/installer.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/api.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …nd/InvenTree/plugin/samples/integration/test_sample.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …end/InvenTree/plugin/samples/integration/transition.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …e/plugin/samples/integration/test_validation_sample.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …backend/InvenTree/plugin/samples/integration/sample.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …backend/InvenTree/plugin/builtin/labels/label_sheet.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …d/InvenTree/plugin/base/integration/ValidationMixin.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/base/label/mixins.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/base/supplier/mixins.py | 7 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/plugin/base/barcodes/mixins.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | …/backend/InvenTree/plugin/base/barcodes/serializers.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/icons.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/test_api.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/tests.py | 14 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/currency.py | 7 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/test_emails.py | 4 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/filters.py | 6 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/common/setting/tests.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/users/api.py | 9 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/users/api.py | 478 | resp.data['token'] = self.serializer_class.Meta.model.objects.get( | CODE |
| CRITICAL | src/backend/InvenTree/generic/states/validators.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/generic/states/test_transition.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/models.py | 11 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/test_tags.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/validators.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/api.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/tests.py | 513 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/report/templatetags/barcode.py | 4 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/data_exporter/mixins.py | 6 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/tasks.py | 6 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/models.py | 17 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/serializers.py | 6 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/test_category.py | 3 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/test_api.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/part/test_part.py | 7 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/models.py | 13 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/serializers.py | 6 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/generators.py | 6 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/api.py | 6 | from django.core.exceptions import ValidationError as DjangoValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/test_api.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/stock/tests.py | 5 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/InvenTree/models.py | 11 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/InvenTree/fields.py | 8 | from django.core.exceptions import ValidationError | CODE |
| CRITICAL | src/backend/InvenTree/InvenTree/test_auth.py | 4 | from django.core.exceptions import ValidationError | CODE |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/backend/InvenTree/order/test_sales_order.py | 68 | # Create a SalesOrder to ship against | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_sales_order.py | 73 | # Create a Shipment against this SalesOrder | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_sales_order.py | 78 | # Create a line item | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_sales_order.py | 83 | # Create an extra line | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_sales_order.py | 92 | # Create an address for a different company | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 44 | # Create a Company to ship the goods to | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 49 | # Create a Part to ship | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 421 | # Create a new SalesOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 431 | # Create a part | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 494 | # Create an order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_sales_order.py | 508 | # Create a second order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/serializers.py | 1972 | # Create a new SalesOrderAllocation | COMMENT |
| MEDIUM | src/backend/InvenTree/order/serializers.py | 2812 | # Create a new TransferOrderAllocation | COMMENT |
| MEDIUM | src/backend/InvenTree/order/serializers.py | 3023 | # Create a new TransferOrderAllocation | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_migrations.py | 16 | # Create a purchase order from a supplier | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_migrations.py | 137 | # Create a purchase order from a supplier | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_migrations.py | 220 | # Create a customer | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_migrations.py | 228 | # Create a SalesOrder (Completed, but missing shipment date) | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 1415 | # Create a new order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 1879 | # Create a duplicate of this sales order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2040 | # Create a line item | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2189 | # Create a bunch of SalesOrderLineItems for each order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2299 | # Create a new shipment against this SalesOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2434 | # Create a new line item | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2442 | # Create a new shipment against this SalesOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 2712 | # Create a required test | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 3073 | # Create an order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 3170 | # Create a new ReturnOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 3757 | # Create a line item | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 3825 | # Create a line item | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 4044 | # Create a bunch of TransferOrderLineItems for each order | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 4288 | # Create a new line item | COMMENT |
| MEDIUM | src/backend/InvenTree/order/test_api.py | 4296 | # Create a new shipment against this TransferOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/order/tests.py | 92 | # Create a contact which does does not match the company | COMMENT |
| MEDIUM | src/backend/InvenTree/order/tests.py | 354 | # Create a new supplier part with larger pack size | COMMENT |
| MEDIUM | src/backend/InvenTree/order/tests.py | 359 | # Create a new supplier part with smaller pack size | COMMENT |
| MEDIUM | src/backend/InvenTree/order/tests.py | 370 | # Create a new PurchaseOrder | COMMENT |
| MEDIUM | src/backend/InvenTree/importer/models.py | 231 | # Create a default mapping for each available field in the database | COMMENT |
| MEDIUM | src/backend/InvenTree/importer/models.py | 274 | # Create the column mappings | COMMENT |
| MEDIUM | src/backend/InvenTree/plugin/test_plugin.py | 220 | # Create a sample plugin with a known static file | COMMENT |
| MEDIUM | src/backend/InvenTree/plugin/test_plugin.py | 431 | # Create an __init__.py file | COMMENT |
| MEDIUM | …backend/InvenTree/plugin/templatetags/plugin_extras.py | 1 | """This module provides template tags for handling plugins.""" | STRING |
| MEDIUM | …e/plugin/samples/integration/test_validation_sample.py | 46 | # Create a BomItem to run tests on | COMMENT |
| MEDIUM | …end/InvenTree/plugin/base/integration/ScheduleMixin.py | 206 | # Create a new scheduled task | COMMENT |
| MEDIUM | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 171 | # Create a fake model | COMMENT |
| MEDIUM | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 175 | # Create a mock app_config that returns our fake model | COMMENT |
| MEDIUM⚡ | …backend/InvenTree/plugin/base/barcodes/test_barcode.py | 285 | # Create a sales order | COMMENT |
| MEDIUM⚡ | …backend/InvenTree/plugin/base/barcodes/test_barcode.py | 288 | # Create a shipment | COMMENT |
| MEDIUM⚡ | …backend/InvenTree/plugin/base/barcodes/test_barcode.py | 293 | # Create a line item | COMMENT |
| MEDIUM | …backend/InvenTree/plugin/base/barcodes/test_barcode.py | 360 | # Create a shipment for a different order | COMMENT |
| MEDIUM | src/backend/InvenTree/common/models.py | 2093 | # Create a new file with the new name, and delete the old file | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 502 | # Create a simple part to test with | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 509 | # Create a ParameterTemplate for the Part model | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 518 | # Create a Parameter via the API | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 127 | # Create a new ParameterTemplate - initially with invalid model_type field | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 249 | # Create a Parameter against a specific Company instance | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 776 | # Create a parameter for every company against every template | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 831 | # Create a ParameterTemplate for the Part model | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 838 | # Create a Parameter for the Build | COMMENT |
| MEDIUM | src/backend/InvenTree/common/tests.py | 1319 | # Create a notification message | COMMENT |
| 145 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks.py | 37 | def is_devcontainer_environment(): | CODE |
| LOW | tasks.py | 77 | def get_inventree_api_version(): | CODE |
| LOW | tasks.py | 1981 | def export_settings_definitions(c, filename='inventree_settings.json', overwrite=False): | CODE |
| LOW | docs/docs/plugins/walkthrough.md | 122 | export function RenderAttachmentCarouselPanel(context: InvenTreePluginContext) { | CODE |
| LOW | docs/docs/plugins/machines/overview.md | 62 | def my_custom_required_method(self): | CODE |
| LOW | docs/docs/javascripts/fontawesome.js | 1060 | function makeLayersCounterAbstract(params) { | CODE |
| LOW | docs/docs/javascripts/fontawesome.js | 1837 | function generateSvgReplacementMutation(node, nodeMeta) { | CODE |
| LOW | docs/docs/javascripts/splide.esm.js | 7 | (function webpackUniversalModuleDefinition(root, factory) { | CODE |
| LOW | .github/scripts/version_check.py | 114 | def get_existing_release_tags(include_prerelease: bool = True): | CODE |
| LOW | src/frontend/tests/baseFixtures.ts | 55 | async function collectCoverageFromContext(context: BrowserContext) { | CODE |
| LOW | …c/frontend/src/tables/settings/SelectionListDrawer.tsx | 31 | function SelectionListEntriesTable({ | CODE |
| LOW | …rontend/src/tables/sales/SalesOrderParametricTable.tsx | 15 | export default function SalesOrderParametricTable({ | CODE |
| LOW | …rontend/src/tables/sales/SalesOrderAllocationTable.tsx | 42 | export default function SalesOrderAllocationTable({ | CODE |
| LOW | …ontend/src/tables/sales/ReturnOrderParametricTable.tsx | 15 | export default function ReturnOrderParametricTable({ | CODE |
| LOW | …src/tables/purchasing/PurchaseOrderParametricTable.tsx | 15 | export default function PurchaseOrderParametricTable({ | CODE |
| LOW | …/src/tables/purchasing/SupplierPartParametricTable.tsx | 12 | export default function SupplierPartParametricTable({ | CODE |
| LOW | …d/src/tables/purchasing/PurchaseOrderLineItemTable.tsx | 59 | export function PurchaseOrderLineItemTable({ | CODE |
| LOW | …/tables/purchasing/ManufacturerPartParametricTable.tsx | 13 | export default function ManufacturerPartParametricTable({ | CODE |
| LOW | …tend/src/tables/purchasing/SupplierPriceBreakTable.tsx | 29 | export function calculateSupplierPartUnitPrice(record: any) { | CODE |
| LOW | …tend/src/tables/purchasing/SupplierPriceBreakTable.tsx | 36 | export function SupplierPriceBreakColumns(): TableColumn[] { | CODE |
| LOW | …frontend/src/tables/part/PartCategoryTemplateTable.tsx | 28 | export default function PartCategoryTemplateTable({ | CODE |
| LOW | …frontend/src/tables/part/PartBuildAllocationsTable.tsx | 33 | export default function PartBuildAllocationsTable({ | CODE |
| LOW | …frontend/src/tables/part/PartSalesAllocationsTable.tsx | 30 | export default function PartSalesAllocationsTable({ | CODE |
| LOW | …ontend/src/tables/stock/TransferOrderLineItemTable.tsx | 60 | export default function TransferOrderLineItemTable({ | CODE |
| LOW | …tend/src/tables/stock/StockLocationParametricTable.tsx | 10 | export default function StockLocationParametricTable({ | CODE |
| LOW | …tend/src/tables/stock/TransferOrderAllocationTable.tsx | 34 | export default function TransferOrderAllocationTable({ | CODE |
| LOW | …tend/src/tables/stock/TransferOrderParametricTable.tsx | 20 | export default function TransferOrderParametricTable({ | CODE |
| LOW | src/frontend/src/contexts/colorSchema.tsx | 11 | export function localStorageColorSchemeManager({ | CODE |
| LOW | src/frontend/src/forms/CompanyForms.tsx | 123 | export function useManufacturerPartFields({ | CODE |
| LOW | src/frontend/src/forms/StockForms.tsx | 357 | export function useStockItemUninstallFields(): ApiFormFieldSet { | CODE |
| LOW | src/frontend/src/forms/StockForms.tsx | 373 | export function useStockItemInstallFields({ | CODE |
| LOW | src/frontend/src/forms/StockForms.tsx | 426 | export function useStockItemSerializeFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 119 | export function useSalesOrderLineItemFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 307 | function SalesOrderAllocateLineRow({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 396 | export function useAllocateToSalesOrderForm({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 486 | export function useSalesOrderAllocateSerialsFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 512 | export function useSalesOrderShipmentFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 546 | export function useSalesOrderShipmentCompleteFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 561 | export function useSalesOrderAllocationFields({ | CODE |
| LOW | src/frontend/src/forms/SalesOrderForms.tsx | 589 | export function useSalesOrderAutoAllocateFields({ | CODE |
| LOW | src/frontend/src/forms/TransferOrderForms.tsx | 75 | export function useTransferOrderLineItemFields({ | CODE |
| LOW | src/frontend/src/forms/TransferOrderForms.tsx | 106 | function TransferOrderAllocateLineRow({ | CODE |
| LOW | src/frontend/src/forms/TransferOrderForms.tsx | 193 | export function useAllocateToTransferOrderForm({ | CODE |
| LOW | src/frontend/src/forms/TransferOrderForms.tsx | 282 | export function useTransferOrderAllocationFields({ | CODE |
| LOW | src/frontend/src/forms/TransferOrderForms.tsx | 298 | export function useTransferOrderAllocateSerialsFields({ | CODE |
| LOW | src/frontend/src/forms/PurchaseOrderForms.tsx | 64 | export function usePurchaseOrderLineItemFields({ | CODE |
| LOW | src/frontend/src/forms/BomForms.tsx | 103 | export function useEditBomSubstitutesForm(props: BomItemSubstituteFormProps) { | CODE |
| LOW | src/frontend/src/forms/BuildForms.tsx | 170 | export function useBuildOrderOutputFields({ | CODE |
| LOW | src/frontend/src/forms/BuildForms.tsx | 241 | export function useBuildAutoAllocateFields({ | CODE |
| LOW | src/frontend/src/forms/BuildForms.tsx | 335 | export function useCompleteBuildOutputsForm({ | CODE |
| LOW | src/frontend/src/forms/BuildForms.tsx | 504 | export function useCancelBuildOutputsForm({ | CODE |
| LOW | src/frontend/src/forms/BuildForms.tsx | 667 | export function useAllocateStockToBuildForm({ | CODE |
| LOW | src/frontend/src/forms/ImporterForms.tsx | 4 | export function dataImporterSessionFields({ | CODE |
| LOW | src/frontend/src/forms/ReturnOrderForms.tsx | 105 | export function useReturnOrderLineItemFields({ | CODE |
| LOW | src/frontend/src/forms/ReturnOrderForms.tsx | 150 | function ReturnOrderLineItemFormRow({ | CODE |
| LOW | src/frontend/src/forms/ReturnOrderForms.tsx | 212 | export function useReceiveReturnOrderLineItems( | CODE |
| LOW | src/frontend/src/forms/CommonForms.tsx | 100 | export function useParameterTemplateFields(): ApiFormFieldSet { | CODE |
| LOW | src/frontend/src/forms/CommonForms.tsx | 133 | export function useDynamicParameterValueField(resetDep?: any): { | CODE |
| LOW | src/frontend/src/components/tables/ColumnRenderers.tsx | 547 | export function AllocatedLinesProgressColumn( | CODE |
| LOW | …end/src/components/importer/ImporterColumnSelector.tsx | 182 | function ImporterLookupFieldSelector({ | CODE |
| 517 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks.py | 1646 | except Exception as e: | CODE |
| LOW | tasks.py | 1680 | except Exception as e: | CODE |
| LOW | tasks.py | 1799 | except Exception: | CODE |
| LOW | tasks.py | 2177 | except Exception: | CODE |
| LOW | tasks.py | 2345 | except Exception: | CODE |
| LOW | tasks.py | 2368 | except Exception as e: | CODE |
| MEDIUM | tasks.py | 633 | def check(cmd): | CODE |
| MEDIUM | docs/docs/hooks.py | 26 | print(f'Error fetching RTD versions: {response.status_code}') | CODE |
| MEDIUM | .github/scripts/check_exported_data.py | 29 | print(f'Error: File not found: {args.datafile}') | CODE |
| MEDIUM | .github/scripts/check_exported_data.py | 38 | print(f'Error: Failed to parse JSON file: {e}') | CODE |
| MEDIUM | .github/scripts/check_exported_data.py | 78 | print('Error: No metadata entry found in exported data') | CODE |
| MEDIUM | .github/scripts/check_exported_data.py | 88 | print(f'Error: No plugin configuration found for plugin "{PLUGIN_KEY}"') | CODE |
| LOW | src/backend/InvenTree/order/api.py | 464 | except Exception: | CODE |
| LOW | src/backend/InvenTree/order/api.py | 1136 | except Exception: | CODE |
| LOW | src/backend/InvenTree/order/api.py | 1693 | except Exception: | CODE |
| LOW | src/backend/InvenTree/order/api.py | 1970 | except Exception: | CODE |
| LOW | src/backend/InvenTree/importer/models.py | 983 | except Exception as e: | CODE |
| LOW | src/backend/InvenTree/plugin/models.py | 237 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/models.py | 254 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 252 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 451 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 495 | except Exception as e: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 535 | except Exception as e: # pragma: no cover | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 548 | except Exception: # pragma: no cover | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 617 | except Exception as error: # pragma: no cover | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 743 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 745 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 764 | except Exception as error: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 826 | except Exception as error: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 908 | except Exception as error: # pragma: no cover | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 989 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 1002 | except Exception as exc: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 1045 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/registry.py | 1080 | except Exception as exc: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 103 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 121 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 145 | except Exception as exc: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 153 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 187 | except Exception as exc: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 224 | except Exception as exc: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 296 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/installer.py | 384 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/plugin.py | 552 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/urls.py | 44 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/helpers.py | 88 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/helpers.py | 185 | except Exception as error: | CODE |
| LOW | src/backend/InvenTree/plugin/helpers.py | 202 | except Exception as error: | CODE |
| LOW | src/backend/InvenTree/plugin/helpers.py | 215 | except Exception: | CODE |
| LOW | …backend/InvenTree/plugin/templatetags/plugin_extras.py | 49 | except Exception: | CODE |
| LOW | …backend/InvenTree/plugin/samples/integration/sample.py | 18 | except Exception as e: | CODE |
| LOW | …backend/InvenTree/plugin/builtin/labels/label_sheet.py | 222 | except Exception as exc: | CODE |
| LOW | …d/InvenTree/plugin/builtin/events/auto_issue_orders.py | 101 | except Exception as e: | CODE |
| LOW | src/backend/InvenTree/plugin/base/ui/api.py | 40 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/base/ui/api.py | 65 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/base/locate/api.py | 78 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/base/locate/api.py | 100 | except Exception: | CODE |
| LOW | src/backend/InvenTree/plugin/base/mail/mail.py | 37 | except Exception: # pragma: no cover | CODE |
| LOW | src/backend/InvenTree/plugin/base/mail/mail.py | 73 | except Exception: # pragma: no cover | CODE |
| LOW | …/backend/InvenTree/plugin/base/integration/AppMixin.py | 109 | except Exception: # pragma: no cover | CODE |
| LOW | …d/InvenTree/plugin/base/integration/TransitionMixin.py | 39 | except Exception: | CODE |
| 206 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks.py | 656 | # Return the result | COMMENT |
| LOW | docs/main.py | 133 | # Check if we are in ReadTheDocs | COMMENT |
| LOW | docs/docs/hooks.py | 235 | # Check if there is a local file with release information | COMMENT |
| LOW | contrib/install.sh | 55 | # Check if os and version is supported | COMMENT |
| LOW | contrib/packager.io/before.sh | 56 | # Check if tag sha is the same as the commit sha | COMMENT |
| LOW | contrib/packager.io/postinstall.sh | 42 | # Check if we are updating and need to alert | COMMENT |
| LOW | contrib/packager.io/functions.sh | 389 | # Check if INVENTREE_SITE_URL in inventree config | COMMENT |
| LOW | contrib/packager.io/preinstall.sh | 12 | # Check if clear-generated is available | COMMENT |
| LOW | contrib/container/init.sh | 27 | # Check if "config.yaml" has been copied into the correct location | COMMENT |
| LOW | contrib/installer/src/root_command.sh | 45 | # Check if os and version is supported | COMMENT |
| LOW | src/backend/InvenTree/config_template.yaml | 34 | # Set debug to False to run in production mode, or use the environment variable INVENTREE_DEBUG | COMMENT |
| LOW | src/backend/InvenTree/config_template.yaml | 111 | # Set sentry_enabled to True to report errors back to the maintainers | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 150 | # Check if the order has been saved (otherwise we can't calculate the total price) | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 398 | # Check if a responsible owner is required for this order type | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 684 | # Add the part to the list of subscribed users | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 807 | # Check if there is already a matching line item (for this PurchaseOrder) | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 1424 | # Add the part to the list of subscribed users | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 2800 | # Check if the shipment can be completed (throw error if not) | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 3079 | # Add the part to the list of subscribed users | COMMENT |
| LOW | src/backend/InvenTree/order/models.py | 3534 | # Add the part to the list of subscribed users | COMMENT |
| LOW | src/backend/InvenTree/order/serializers.py | 1020 | # Check if the location is not specified for any particular item | COMMENT |
| LOW | src/backend/InvenTree/plugin/registry.py | 68 | # Check if the registry needs to be reloaded | COMMENT |
| LOW | src/backend/InvenTree/plugin/registry.py | 601 | # Check if not running in testing mode and apps should be loaded from hooks | COMMENT |
| LOW | src/backend/InvenTree/plugin/registry.py | 690 | # Check if this is a 'builtin' plugin | COMMENT |
| LOW | src/backend/InvenTree/plugin/registry.py | 711 | # Check if this plugin is considered 'mandatory' | COMMENT |
| LOW | src/backend/InvenTree/plugin/installer.py | 197 | # Check if plugin is already in file | COMMENT |
| LOW | src/backend/InvenTree/plugin/installer.py | 216 | # Write file back to disk | COMMENT |
| LOW | src/backend/InvenTree/plugin/staticfiles.py | 62 | # Check if the directory is a plugin directory | COMMENT |
| LOW | src/backend/InvenTree/plugin/test_api.py | 647 | # Check if the plugin is installed | COMMENT |
| LOW | src/backend/InvenTree/plugin/urls.py | 29 | # Check if the plugin has a custom URL pattern | COMMENT |
| LOW | src/backend/InvenTree/plugin/base/ui/api.py | 58 | # Add the feature to the list (serialize) | COMMENT |
| LOW | src/backend/InvenTree/plugin/base/label/mixins.py | 94 | # Check if pdf data is provided | COMMENT |
| LOW | src/backend/InvenTree/plugin/base/event/events.py | 201 | # Check if the plugin registry needs to be reloaded | COMMENT |
| LOW | src/backend/InvenTree/common/tasks.py | 88 | # Check if id already exists | COMMENT |
| LOW | src/backend/InvenTree/common/models.py | 929 | # Check if a duplicate setting already exists | COMMENT |
| LOW | src/backend/InvenTree/common/serializers.py | 135 | # Check if confirmation was provided if required | COMMENT |
| LOW | src/backend/InvenTree/common/serializers.py | 322 | # Check if object has an absolute_url function | COMMENT |
| LOW | src/backend/InvenTree/common/notifications.py | 96 | # Check if data is importing currently | COMMENT |
| LOW | src/backend/InvenTree/common/notifications.py | 126 | # Check if we have notified recently... | COMMENT |
| LOW | src/backend/InvenTree/common/currency.py | 195 | # Check if quantity is fraction and disable multiples | COMMENT |
| LOW | src/backend/InvenTree/machine/registry.py | 68 | # Check if the machine registry needs to be reloaded | COMMENT |
| LOW | src/backend/InvenTree/users/tasks.py | 187 | # Check if child permission not already in group | COMMENT |
| LOW | src/backend/InvenTree/users/permissions.py | 120 | # Check if the rule has the specified permission | COMMENT |
| LOW | src/backend/InvenTree/users/permissions.py | 181 | # Check if parent role has change permission | COMMENT |
| LOW | src/backend/InvenTree/users/tests.py | 32 | # Check if there are any rulesets which do not have models defined | COMMENT |
| LOW | src/backend/InvenTree/users/tests.py | 41 | # Check if models have been defined for a ruleset which is incorrect | COMMENT |
| LOW | src/backend/InvenTree/generic/states/transition.py | 24 | # Check if a sending fnc is defined | COMMENT |
| LOW | src/backend/InvenTree/report/tests.py | 492 | # Read the file contents back out, and validate | STRING |
| LOW | src/backend/InvenTree/report/tests.py | 691 | # Set DEBUG_MODE to return the report as an HTML file | COMMENT |
| LOW | src/backend/InvenTree/report/templatetags/report.py | 384 | # Check if the image data is valid | COMMENT |
| LOW | src/backend/InvenTree/part/tasks.py | 173 | # Check if stock expiry functionality is enabled | COMMENT |
| LOW | src/backend/InvenTree/part/tasks.py | 178 | # Check if STOCK_STALE_DAYS is configured | COMMENT |
| LOW | src/backend/InvenTree/part/models.py | 3102 | # Check if internal pricing should override other pricing | COMMENT |
| LOW | src/backend/InvenTree/part/models.py | 3832 | # Check if the part was changed | COMMENT |
| LOW | src/backend/InvenTree/part/test_api.py | 396 | # Check if all parts deleted | COMMENT |
| LOW | src/backend/InvenTree/part/test_api.py | 412 | # Check if all categories are deleted | COMMENT |
| LOW | src/backend/InvenTree/part/test_api.py | 417 | # Check if all subcategories to parent moved to parent and all parts deleted | COMMENT |
| LOW | src/backend/InvenTree/stock/models.py | 499 | # Check if "interesting" fields have been changed | COMMENT |
| LOW | src/backend/InvenTree/stock/models.py | 2478 | # Check if supplier part references match | COMMENT |
| LOW | src/backend/InvenTree/stock/models.py | 2487 | # Check if stock status codes match | COMMENT |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | contrib/container/docker-compose.yml | 8 | # --------------------- | COMMENT |
| MEDIUM⚡ | contrib/container/docker-compose.yml | 10 | # --------------------- | COMMENT |
| MEDIUM⚡ | contrib/container/docker-compose.yml | 12 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | contrib/container/docker-compose.yml | 14 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | contrib/container/docker-compose.yml | 22 | # ------------------------ | COMMENT |
| MEDIUM⚡ | contrib/container/docker-compose.yml | 24 | # ------------------------ | COMMENT |
| MEDIUM | contrib/container/docker-compose.yml | 35 | # ---------------------------- | COMMENT |
| MEDIUM | contrib/container/docker-compose.yml | 37 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4496 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4498 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4524 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4526 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4570 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4572 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4786 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4788 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4799 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/order/test_api.py | 4801 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/plugin/test_api.py | 715 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/plugin/test_api.py | 717 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 1266 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 1268 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 1294 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/backend/InvenTree/common/test_api.py | 1296 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 1208 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/backend/InvenTree/common/test_api.py | 1210 | # ------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks.py | 1361 | CODE | |
| LOW | tasks.py | 1688 | CODE | |
| LOW | tasks.py | 1853 | CODE | |
| LOW | tasks.py | 2025 | CODE | |
| LOW | docs/extract_schema.py | 127 | CODE | |
| LOW | .github/scripts/check_source_strings.py | 32 | CODE | |
| LOW | src/backend/InvenTree/order/models.py | 1013 | CODE | |
| LOW | src/backend/InvenTree/order/serializers.py | 994 | CODE | |
| LOW | src/backend/InvenTree/order/api.py | 2365 | CODE | |
| LOW | src/backend/InvenTree/order/api.py | 2421 | CODE | |
| LOW | src/backend/InvenTree/order/api.py | 2442 | CODE | |
| LOW | src/backend/InvenTree/order/test_api.py | 2531 | CODE | |
| LOW | src/backend/InvenTree/order/test_api.py | 4391 | CODE | |
| LOW | src/backend/InvenTree/importer/models.py | 700 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 141 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 415 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 503 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 569 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 648 | CODE | |
| LOW | src/backend/InvenTree/plugin/registry.py | 798 | CODE | |
| LOW | src/backend/InvenTree/plugin/installer.py | 160 | CODE | |
| LOW | src/backend/InvenTree/plugin/installer.py | 229 | CODE | |
| LOW | src/backend/InvenTree/plugin/urls.py | 15 | CODE | |
| LOW | src/backend/InvenTree/plugin/helpers.py | 169 | CODE | |
| LOW | src/backend/InvenTree/plugin/builtin/suppliers/tme.py | 46 | CODE | |
| LOW | …backend/InvenTree/plugin/builtin/labels/label_sheet.py | 178 | CODE | |
| LOW | …InvenTree/plugin/builtin/barcodes/inventree_barcode.py | 55 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/ui/api.py | 25 | CODE | |
| LOW | …end/InvenTree/plugin/base/integration/ScheduleMixin.py | 158 | CODE | |
| LOW | …/backend/InvenTree/plugin/base/integration/AppMixin.py | 33 | CODE | |
| LOW | …/backend/InvenTree/plugin/base/integration/AppMixin.py | 90 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/supplier/api.py | 140 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/barcodes/api.py | 500 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/event/events.py | 191 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/event/test_events.py | 56 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/event/test_events.py | 77 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/event/test_events.py | 97 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/event/test_events.py | 122 | CODE | |
| LOW | src/backend/InvenTree/common/models.py | 3571 | CODE | |
| LOW | src/backend/InvenTree/common/models.py | 345 | CODE | |
| LOW | src/backend/InvenTree/common/models.py | 856 | CODE | |
| LOW | src/backend/InvenTree/common/models.py | 1511 | CODE | |
| LOW | src/backend/InvenTree/common/models.py | 2886 | CODE | |
| LOW | src/backend/InvenTree/common/serializers.py | 47 | CODE | |
| LOW | src/backend/InvenTree/common/serializers.py | 317 | CODE | |
| LOW | src/backend/InvenTree/common/notifications.py | 87 | CODE | |
| LOW | src/backend/InvenTree/machine/models.py | 186 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 20 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 29 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 137 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 187 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 329 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 33 | CODE | |
| LOW | src/backend/InvenTree/machine/registry.py | 354 | CODE | |
| LOW | src/backend/InvenTree/machine/machine_type.py | 304 | CODE | |
| LOW | src/backend/InvenTree/users/tasks.py | 31 | CODE | |
| LOW | src/backend/InvenTree/users/api.py | 115 | CODE | |
| LOW | src/backend/InvenTree/users/permissions.py | 75 | CODE | |
| LOW | src/backend/InvenTree/generic/states/fields.py | 193 | CODE | |
| LOW | src/backend/InvenTree/generic/states/fields.py | 259 | CODE | |
| 64 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/requirements.txt | 241 | # via | COMMENT |
| LOW | docs/requirements.txt | 361 | # jinja2 | COMMENT |
| LOW | docs/requirements.txt | 381 | # mkdocs-autorefs | COMMENT |
| LOW | contrib/container/dev-docker-compose.yml | 1 | # Docker compose recipe for InvenTree development server | COMMENT |
| LOW | contrib/container/docker-compose.yml | 1 | # Docker compose recipe for a production-ready InvenTree setup, with the following containers: | COMMENT |
| LOW | contrib/container/docker-compose.yml | 21 | COMMENT | |
| LOW | contrib/installer/settings.yml | 1 | # All settings are optional (with their default values provided below), and | COMMENT |
| LOW | contrib/installer/settings.yml | 21 | # When true, the generated script will use tab indentation instead of spaces | COMMENT |
| LOW | contrib/installer/src/initialize.sh | 1 | ## Code here runs inside the initialize() function | COMMENT |
| LOW | .github/workflows/scorecard.yaml | 41 | with: | COMMENT |
| LOW | .github/workflows/docker.yaml | 1 | # Build, test and push InvenTree docker image | COMMENT |
| LOW | src/frontend/tests/pui_settings.spec.ts | 21 | // await page.getByLabel('Select language').first().click(); | COMMENT |
| LOW | src/frontend/src/pages/stock/TransferOrderDetail.tsx | 121 | // 'line-items', | COMMENT |
| LOW | src/frontend/src/pages/stock/TransferOrderDetail.tsx | 141 | // <Accordion.Panel> | COMMENT |
| LOW | src/backend/requirements.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | src/backend/requirements.txt | 501 | --hash=sha256:0eb4a9bb1853a35b0286dbc6d916bd352c8c2687195a7f2d6f80cefd840e4970 \ | COMMENT |
| LOW | src/backend/requirements.txt | 521 | # django-redis | COMMENT |
| LOW | src/backend/requirements.txt | 1181 | # opentelemetry-instrumentation-dbapi | COMMENT |
| LOW | src/backend/requirements.txt | 1201 | # opentelemetry-exporter-otlp-proto-http | COMMENT |
| LOW | src/backend/requirements.txt | 1261 | # via | COMMENT |
| LOW | src/backend/requirements.txt | 1281 | # via | COMMENT |
| LOW | src/backend/requirements.txt | 1921 | typing-extensions==4.15.0 \ | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 401 | --hash=sha256:fe0180af5bf9236518a087e35bf2d9a347d5f5f51e63c579d683ddff424e3d46 | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 421 | # -c src/backend/requirements-dev.txt | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 461 | # via | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 481 | # via | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 501 | # -c src/backend/requirements-dev.txt | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 561 | --hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176 | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 621 | --hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 641 | --hash=sha256:a59e362652f08dcd477c78bb6e7bd9d80a7995bc73ce773050228a348ce2e5bb | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 681 | --hash=sha256:8b1f80d90d6799a4fcdac12198b382a8feee9ed4340d5f69b56fc5ffa0644143 | COMMENT |
| LOW | src/backend/requirements-dev-3.14.txt | 701 | urllib3==2.7.0 \ | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 101 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 501 | --hash=sha256:fe0180af5bf9236518a087e35bf2d9a347d5f5f51e63c579d683ddff424e3d46 | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 521 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 541 | # django-otp | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 561 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 621 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 661 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 701 | --hash=sha256:fefc40c826896b60fcf33e35b6e30b523fc958955a16006438cd3ba6d795a532 | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 741 | --hash=sha256:c3c74dd3e83a5a3efc37b3c18d92bd6f86a6791c7b7d4dff62bb068500e76457 | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 821 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 961 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 981 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1301 | oauthlib==3.3.1 \ | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1321 | # opentelemetry-exporter-otlp-proto-http | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1361 | --hash=sha256:b47d528dead6271d7743114417eb67fc915bd9258111c48dbf9a4951d2efa88d | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1421 | # -c src/backend/requirements.txt | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1441 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1461 | --hash=sha256:c1e5350d25507c1afcd6076cf9ac062485a0a4f79cd9971366996fd3056bacdb | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1581 | # django-stdimage | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1721 | --hash=sha256:5776567478c9a0dae473374bb86631ba0b5ea99aaf302763b364e367ac51f367 \ | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 1941 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 2141 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 2161 | # via | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 2181 | --hash=sha256:9173fde7d80d9018e02a662e168e5a2d04f87c41ea174b139fbef642eda62d10 \ | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 2201 | # sentry-sdk | COMMENT |
| LOW | src/backend/requirements-3.14.txt | 2321 | # via | COMMENT |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/backend/InvenTree/importer/operations.py | 60 | Extract column names from a data file. Uses the tablib library to extract column names from a data file. Args: | STRING |
| HIGH | src/backend/InvenTree/plugin/api.py | 321 | Check that a plugin for the provided slug exists and get the config. Args: plugin_slug (str): Slug for plug | STRING |
| HIGH | src/backend/InvenTree/common/settings.py | 91 | Set a global warning for a code. Args: key (str): The key for the warning. options (dict or bool): | STRING |
| HIGH | src/backend/InvenTree/generic/states/transition.py | 38 | Perform a state transition. Success: - The custom transition logic succeeded - Return T | STRING |
| HIGH | src/backend/InvenTree/report/models.py | 498 | Print reports for a list of items against this template. Arguments: items: A list of items to print | STRING |
| HIGH | src/backend/InvenTree/report/templatetags/report.py | 247 | Return the fully qualified file path to an uploaded media file. Arguments: path: The path to the media file | STRING |
| HIGH | src/backend/InvenTree/stock/models.py | 658 | Create multiple stock items with the provided serial numbers. Arguments: serials: List of serial nu | STRING |
| HIGH | src/backend/InvenTree/stock/models.py | 1912 | Disassemble this stock item into its component parts. The provided BOM lines determine which component parts ar | STRING |
| HIGH | src/backend/InvenTree/stock/models.py | 2672 | Split this stock item into two items, in the same location. Stock tracking notes for this StockItem will be dup | STRING |
| HIGH | src/backend/InvenTree/InvenTree/tasks.py | 582 | Register the given task as a scheduled task. Example: ```python @scheduled_task(ScheduledTask.DAILY) de | STRING |
| HIGH | src/backend/InvenTree/InvenTree/format.py | 39 | Construct a regular expression based on a provided format string. This function turns a python format string into a | STRING |
| HIGH | src/backend/InvenTree/InvenTree/format.py | 121 | Validate that the provided string matches the specified format. Args: value: The string to be tested e.g. ' | STRING |
| HIGH | src/backend/InvenTree/InvenTree/format.py | 141 | Extract a named value from the provided string, given the provided format string. Args: name: Name of group | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/backend/InvenTree/plugin/events.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/events.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/events.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/events.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/__init__.py | 3 | CODE | |
| LOW | src/backend/InvenTree/plugin/__init__.py | 3 | CODE | |
| LOW | src/backend/InvenTree/plugin/__init__.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/__init__.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/__init__.py | 5 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 3 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 4 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 5 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 6 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 7 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 8 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 9 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 10 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 11 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 12 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 13 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 14 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 15 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 16 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 17 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 18 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 19 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 20 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 21 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 22 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 23 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 24 | CODE | |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 25 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 8 | CODE | |
| LOW | src/backend/InvenTree/plugin/machine/machine_types.py | 3 | CODE | |
| LOW | …InvenTree/plugin/base/integration/NotificationMixin.py | 15 | CODE | |
| LOW | src/backend/InvenTree/plugin/base/barcodes/mixins.py | 3 | CODE | |
| LOW | src/backend/InvenTree/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/machine/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/machine/__init__.py | 7 | CODE | |
| LOW | src/backend/InvenTree/machine/machine_types/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/machine/machine_types/__init__.py | 1 | CODE | |
| LOW | src/backend/InvenTree/generic/templatetags/generic.py | 6 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 9 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 10 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 10 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 10 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 11 | CODE | |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 11 | CODE | |
| LOW | src/backend/InvenTree/part/models.py | 3 | CODE | |
| LOW | src/backend/InvenTree/stock/models.py | 3 | CODE | |
| LOW | src/backend/InvenTree/InvenTree/status_codes.py | 7 | CODE | |
| LOW | src/backend/InvenTree/InvenTree/status_codes.py | 8 | CODE | |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/backend/InvenTree/order/models.py | 0 | return the associated barcode model type code for this model. | STRING |
| HIGH | src/backend/InvenTree/part/models.py | 0 | return the associated barcode model type code for this model. | STRING |
| HIGH | src/backend/InvenTree/stock/models.py | 0 | return the associated barcode model type code for this model. | STRING |
| HIGH | src/backend/InvenTree/company/models.py | 0 | return the associated barcode model type code for this model. | STRING |
| HIGH | …nvenTree/plugin/samples/event/filtered_event_sample.py | 0 | return whether given event should be processed or not. | STRING |
| HIGH | …nTree/plugin/builtin/integration/part_notifications.py | 0 | return whether given event should be processed or not. | STRING |
| HIGH | …/InvenTree/plugin/builtin/events/auto_create_builds.py | 0 | return whether given event should be processed or not. | STRING |
| HIGH | src/backend/InvenTree/report/apps.py | 0 | this function is called whenever the company app is loaded. | STRING |
| HIGH | src/backend/InvenTree/part/apps.py | 0 | this function is called whenever the company app is loaded. | STRING |
| HIGH | src/backend/InvenTree/company/apps.py | 0 | this function is called whenever the company app is loaded. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/backend/InvenTree/order/models.py | 2433 | part: Link to a Part object (may be null) | STRING |
| HIGH | src/backend/InvenTree/order/models.py | 2602 | shipment_date: Date this shipment was "shipped" (or null) | STRING |
| HIGH | src/backend/InvenTree/order/models.py | 3852 | part: Link to a Part object (may be null) | STRING |
| HIGH | src/backend/InvenTree/part/models.py | 492 | default_location: Where the item is normally stored (may be null) | STRING |
| HIGH | src/backend/InvenTree/part/test_pricing.py | 328 | # Cost is still null, as the order is not complete | COMMENT |
| HIGH | src/backend/InvenTree/part/test_pricing.py | 339 | # Cost is still null, as the lines have not been received | COMMENT |
| HIGH | src/backend/InvenTree/stock/models.py | 2888 | location: Destination location (cannot be null) | STRING |
| HIGH | src/backend/InvenTree/stock/models.py | 3504 | If the underlying stock item is deleted, the "item" field will be set to null, but the tracking information will | STRING |
| HIGH | …enTree/InvenTree/management/commands/clean_settings.py | 11 | """Cleanup old (undefined) settings in the database.""" | STRING |
| HIGH | …enTree/InvenTree/management/commands/clean_settings.py | 14 | """Cleanup old (undefined) settings in the database.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/frontend/tests/pages/pui_purchasing.spec.ts | 402 | ).toHaveAttribute('placeholder', expectedPrice.toString(), { | CODE |
| LOW | src/frontend/tests/pages/pui_sales.spec.ts | 458 | ).toHaveAttribute('placeholder', expectedPrice.toString(), { | CODE |
| LOW | src/frontend/tests/pages/pui_build.spec.ts | 313 | .getAttribute('placeholder')) || ''; | CODE |
| LOW | src/frontend/tests/pages/pui_stock.spec.ts | 305 | ).toHaveAttribute('placeholder', '365+'); | CODE |
| LOW | …c/frontend/src/components/forms/AuthenticationForm.tsx | 175 | placeholder='email@example.org' | CODE |
| LOW | …c/frontend/src/components/forms/AuthenticationForm.tsx | 306 | placeholder='email@example.org' | CODE |
| LOW | src/frontend/src/pages/Auth/Reset.tsx | 19 | placeholder='email@example.org' | CODE |
| LOW | src/backend/InvenTree/config_template.yaml | 93 | sender: '' # 'inventree@example.org' | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 30 | 'from@example.org', | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 31 | ['to@example.org'], | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 46 | recipients='to@example.org', | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 66 | to=['to@example.org'], | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 85 | recipients=['to@example.org'], | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 107 | reverse('api-email-test'), {'email': 'test@example.org'}, expected_code=200 | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 139 | subject='test sub', body='test msg', to='abc@example.org', priority=3 | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 146 | subject='test sub', body='test msg', to='abc@example.org', priority=3 | CODE |
| LOW | src/backend/InvenTree/common/test_emails.py | 241 | from_email='user@example.com', | CODE |
| LOW⚡ | src/backend/InvenTree/users/test_migrations.py | 40 | username='fred', email='fred@example.org', password='password' | CODE |
| LOW⚡ | src/backend/InvenTree/users/test_migrations.py | 43 | username='brad', email='brad@example.org', password='password' | CODE |
| LOW | src/backend/InvenTree/users/test_api.py | 93 | 'email': 'aa@example.org', | CODE |
| LOW | src/backend/InvenTree/InvenTree/auth_overrides.py | 62 | 'placeholder': _('Email address confirmation'), | CODE |
| LOW | src/backend/InvenTree/InvenTree/test_commands.py | 74 | username=uname, email=f'{uname}@example.org' | CODE |
| LOW | src/backend/InvenTree/InvenTree/test_commands.py | 91 | call_command('remove_mfa', mail='admin@example.org', verbosity=0) | CODE |
| LOW | src/backend/InvenTree/InvenTree/test_tasks.py | 330 | ['Test Email 1', 'This is a test email.', 'abc@example.org', threshold_low], | CODE |
| LOW | src/backend/InvenTree/InvenTree/test_tasks.py | 334 | 'def@example.org', | CODE |
| LOW | …end/InvenTree/InvenTree/static/tabler-icons/icons.json | 1 | {"a-b-2":{"name":"a-b-2","category":"","tags":["test","visual","user"],"variants":{"outline":"f25f"}},"a-b-off":{"name": | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/backend/InvenTree/order/api.py | 2366 | """Overload call in order to check for authentication. | STRING |
| MEDIUM | src/backend/InvenTree/plugin/test_plugin.py | 250 | # A more comprehensive test - to find a hashed version of the file | COMMENT |
| LOW | src/backend/InvenTree/users/models.py | 60 | # we can just call .save() now | COMMENT |
| LOW | src/backend/InvenTree/report/templatetags/report.py | 613 | # If the base URL is not set, just return the text | COMMENT |
| LOW | src/backend/InvenTree/report/templatetags/report.py | 1018 | # If the number cannot be converted to a Decimal, just return the original value | COMMENT |
| LOW | src/backend/InvenTree/part/test_api.py | 3123 | # We should be able to filter the API list to just return this new part | COMMENT |
| LOW | src/backend/InvenTree/InvenTree/tasks.py | 645 | # otherwise they just create extra noise | COMMENT |
| LOW | src/backend/InvenTree/InvenTree/helpers.py | 410 | # If we cannot match the regex, then simply return the provided value | COMMENT |
| LOW | src/backend/InvenTree/InvenTree/helpers.py | 729 | # In the case of a different number of hyphens, simply add the entire group | COMMENT |
| MEDIUM | …enTree/InvenTree/management/commands/rebuild_models.py | 15 | """Rebuild all database models which leverage the MPTT structure.""" | STRING |
| MEDIUM | …enTree/InvenTree/management/commands/rebuild_models.py | 18 | """Rebuild all database models which leverage the MPTT structure.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/backend/InvenTree/order/models.py | 2388 | def update_pricing(self) -> None: | CODE |
| LOW | src/backend/InvenTree/plugin/events.py | 19 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/plugin/__init__.py | 7 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/plugin/mixins/__init__.py | 27 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/plugin/machine/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …end/InvenTree/plugin/base/integration/SettingsMixin.py | 140 | def set_user_setting(self, key: str, value: Any, user: User) -> None: | CODE |
| LOW | src/backend/InvenTree/machine/__init__.py | 9 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/machine/machine_types/__init__.py | 6 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/users/tasks.py | 31 | def update_group_roles(group: Group, debug: bool = False) -> None: | CODE |
| LOW | src/backend/InvenTree/generic/templatetags/generic.py | 8 | __all__ = ['status_label'] | CODE |
| LOW | src/backend/InvenTree/generic/states/__init__.py | 13 | __all__ = [ | CODE |
| LOW | src/backend/InvenTree/part/models.py | 318 | def set_starred(self, user, status: bool, **kwargs) -> None: | CODE |
| LOW | src/backend/InvenTree/InvenTree/cache.py | 171 | def set_session_cache(key: str, value: Any) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nTree/plugin/samples/integration/simpleactionplugin.py | 14 | def perform_action(self, user=None, data=None): | CODE |
| LOW | …Tree/plugin/samples/integration/test_scheduled_task.py | 14 | def test_function(self): | CODE |
| LOW | …/plugin/samples/integration/test_simpleactionplugin.py | 23 | def test_function(self): | CODE |
| LOW | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 66 | def test_function(self): | CODE |
| LOW | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 107 | def test_function(self): | CODE |
| LOW | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 147 | def test_function(self): | CODE |
| LOW | …ckend/InvenTree/plugin/base/integration/test_mixins.py | 223 | def test_function(self): | CODE |
| LOW | src/backend/InvenTree/plugin/base/action/mixins.py | 31 | def perform_action(self, user=None, data=None): | CODE |
| LOW | src/backend/InvenTree/plugin/base/action/test_action.py | 31 | def perform_action(self, user=None, data=None): | CODE |
| LOW | src/backend/InvenTree/plugin/base/action/test_action.py | 53 | def test_function(self): | CODE |
| LOW | src/backend/InvenTree/InvenTree/unit_test.py | 861 | def helper(self, model: type[models.Model], model_kwargs=None): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks.py | 1000 | CODE | |
| LOW | tasks.py | 1118 | CODE | |
| LOW | tasks.py | 1207 | CODE | |
| LOW | tasks.py | 1769 | CODE | |
| LOW | tasks.py | 1853 | CODE | |
| LOW | src/backend/InvenTree/report/templatetags/report.py | 800 | CODE | |
| LOW | src/backend/InvenTree/report/templatetags/report.py | 986 | CODE | |
| LOW | src/backend/InvenTree/InvenTree/middleware.py | 208 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/docs/plugins/walkthrough.md | 514 | The reference requires the host and the [plugin-name](./index.md##static-files). Rather than statically coding these ref | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/installer/settings.yml | 5 | # When setting environment variables, you can use: | COMMENT |
| LOW | src/backend/InvenTree/common/currency.py | 180 | - Don't forget to add in flat-fee cost (base_cost field) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/backend/InvenTree/report/templatetags/report.py | 627 | The purpose of this function is to provide "seamless" math operations in templates, | STRING |