Repository Analysis

inventree/InvenTree

Open Source Inventory Management System

10.0 Low AI signal View on GitHub

Analysis Overview

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).

10.0
Adjusted Score
10.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.3K
Stars
Python
Language
286.4K
Lines of Code
1.4K
Files
1.6K
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 73HIGH 34MEDIUM 243LOW 1258

Directory Score Breakdown

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.

Pattern Findings

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.

Hallucination Indicators73 hits · 735 pts
SeverityFileLineSnippetContext
CRITICALsrc/frontend/src/functions/auth.tsx183 const mfa_flow = err.response.data.data.flows.find(CODE
CRITICALsrc/frontend/src/functions/auth.tsx403 const mfa_trust = err.response.data.data.flows.find(CODE
CRITICALsrc/frontend/src/functions/auth.tsx794 const mfa_trust = err.response.data.data.flows.find(CODE
CRITICALsrc/backend/InvenTree/order/models.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/test_sales_order.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/serializers.py5from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/test_api.py11from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/models.py10from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/validators.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/serializers.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/operations.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py159 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py197 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/test_plugin.py15from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/serializers.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/installer.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/api.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…nd/InvenTree/plugin/samples/integration/test_sample.py3from django.core.exceptions import ValidationErrorCODE
CRITICAL…end/InvenTree/plugin/samples/integration/transition.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…e/plugin/samples/integration/test_validation_sample.py3from django.core.exceptions import ValidationErrorCODE
CRITICAL…backend/InvenTree/plugin/samples/integration/sample.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…backend/InvenTree/plugin/builtin/labels/label_sheet.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…d/InvenTree/plugin/base/integration/ValidationMixin.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/base/label/mixins.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/base/supplier/mixins.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/plugin/base/barcodes/mixins.py5from django.core.exceptions import ValidationErrorCODE
CRITICAL…/backend/InvenTree/plugin/base/barcodes/serializers.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/icons.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/test_api.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/tests.py14from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/currency.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/test_emails.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/filters.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/common/setting/tests.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/users/api.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/users/api.py478 resp.data['token'] = self.serializer_class.Meta.model.objects.get(CODE
CRITICALsrc/backend/InvenTree/generic/states/validators.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/generic/states/test_transition.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/models.py11from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/test_tags.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/validators.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/api.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/tests.py513 from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/report/templatetags/barcode.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/data_exporter/mixins.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/tasks.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/models.py17from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/serializers.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/test_category.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/test_api.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/part/test_part.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/models.py13from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/serializers.py6from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/generators.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/api.py6from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/test_api.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/stock/tests.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/InvenTree/models.py11from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/InvenTree/fields.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/InvenTree/test_auth.py4from django.core.exceptions import ValidationErrorCODE
13 more matches not shown…
Self-Referential Comments205 hits · 608 pts
SeverityFileLineSnippetContext
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py68 # Create a SalesOrder to ship againstCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py73 # Create a Shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py78 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py83 # Create an extra lineCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py92 # Create an address for a different companyCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py44 # Create a Company to ship the goods toCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py49 # Create a Part to shipCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py421 # Create a new SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py431 # Create a partCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py494 # Create an orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py508 # Create a second orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/serializers.py1972 # Create a new SalesOrderAllocationCOMMENT
MEDIUMsrc/backend/InvenTree/order/serializers.py2812 # Create a new TransferOrderAllocationCOMMENT
MEDIUMsrc/backend/InvenTree/order/serializers.py3023 # Create a new TransferOrderAllocationCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_migrations.py16 # Create a purchase order from a supplierCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_migrations.py137 # Create a purchase order from a supplierCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_migrations.py220 # Create a customerCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_migrations.py228 # Create a SalesOrder (Completed, but missing shipment date)COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py1415 # Create a new orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py1879 # Create a duplicate of this sales orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2040 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2189 # Create a bunch of SalesOrderLineItems for each orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2299 # Create a new shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2434 # Create a new line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2442 # Create a new shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2712 # Create a required testCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3073 # Create an orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3170 # Create a new ReturnOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3757 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3825 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4044 # Create a bunch of TransferOrderLineItems for each orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4288 # Create a new line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4296 # Create a new shipment against this TransferOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/tests.py92 # Create a contact which does does not match the companyCOMMENT
MEDIUMsrc/backend/InvenTree/order/tests.py354 # Create a new supplier part with larger pack sizeCOMMENT
MEDIUMsrc/backend/InvenTree/order/tests.py359 # Create a new supplier part with smaller pack sizeCOMMENT
MEDIUMsrc/backend/InvenTree/order/tests.py370 # Create a new PurchaseOrderCOMMENT
MEDIUMsrc/backend/InvenTree/importer/models.py231 # Create a default mapping for each available field in the databaseCOMMENT
MEDIUMsrc/backend/InvenTree/importer/models.py274 # Create the column mappingsCOMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_plugin.py220 # Create a sample plugin with a known static fileCOMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_plugin.py431 # Create an __init__.py fileCOMMENT
MEDIUM…backend/InvenTree/plugin/templatetags/plugin_extras.py1"""This module provides template tags for handling plugins."""STRING
MEDIUM…e/plugin/samples/integration/test_validation_sample.py46 # Create a BomItem to run tests onCOMMENT
MEDIUM…end/InvenTree/plugin/base/integration/ScheduleMixin.py206 # Create a new scheduled taskCOMMENT
MEDIUM…ckend/InvenTree/plugin/base/integration/test_mixins.py171 # Create a fake modelCOMMENT
MEDIUM…ckend/InvenTree/plugin/base/integration/test_mixins.py175 # Create a mock app_config that returns our fake modelCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py285 # Create a sales orderCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py288 # Create a shipmentCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py293 # Create a line itemCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py360 # Create a shipment for a different orderCOMMENT
MEDIUMsrc/backend/InvenTree/common/models.py2093 # Create a new file with the new name, and delete the old fileCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py502 # Create a simple part to test withCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py509 # Create a ParameterTemplate for the Part modelCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py518 # Create a Parameter via the APICOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py127 # Create a new ParameterTemplate - initially with invalid model_type fieldCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py249 # Create a Parameter against a specific Company instanceCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py776 # Create a parameter for every company against every templateCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py831 # Create a ParameterTemplate for the Part modelCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py838 # Create a Parameter for the BuildCOMMENT
MEDIUMsrc/backend/InvenTree/common/tests.py1319 # Create a notification messageCOMMENT
145 more matches not shown…
Hyper-Verbose Identifiers577 hits · 530 pts
SeverityFileLineSnippetContext
LOWtasks.py37def is_devcontainer_environment():CODE
LOWtasks.py77def get_inventree_api_version():CODE
LOWtasks.py1981def export_settings_definitions(c, filename='inventree_settings.json', overwrite=False):CODE
LOWdocs/docs/plugins/walkthrough.md122export function RenderAttachmentCarouselPanel(context: InvenTreePluginContext) {CODE
LOWdocs/docs/plugins/machines/overview.md62 def my_custom_required_method(self):CODE
LOWdocs/docs/javascripts/fontawesome.js1060 function makeLayersCounterAbstract(params) {CODE
LOWdocs/docs/javascripts/fontawesome.js1837 function generateSvgReplacementMutation(node, nodeMeta) {CODE
LOWdocs/docs/javascripts/splide.esm.js7(function webpackUniversalModuleDefinition(root, factory) {CODE
LOW.github/scripts/version_check.py114def get_existing_release_tags(include_prerelease: bool = True):CODE
LOWsrc/frontend/tests/baseFixtures.ts55async function collectCoverageFromContext(context: BrowserContext) {CODE
LOW…c/frontend/src/tables/settings/SelectionListDrawer.tsx31function SelectionListEntriesTable({CODE
LOW…rontend/src/tables/sales/SalesOrderParametricTable.tsx15export default function SalesOrderParametricTable({CODE
LOW…rontend/src/tables/sales/SalesOrderAllocationTable.tsx42export default function SalesOrderAllocationTable({CODE
LOW…ontend/src/tables/sales/ReturnOrderParametricTable.tsx15export default function ReturnOrderParametricTable({CODE
LOW…src/tables/purchasing/PurchaseOrderParametricTable.tsx15export default function PurchaseOrderParametricTable({CODE
LOW…/src/tables/purchasing/SupplierPartParametricTable.tsx12export default function SupplierPartParametricTable({CODE
LOW…d/src/tables/purchasing/PurchaseOrderLineItemTable.tsx59export function PurchaseOrderLineItemTable({CODE
LOW…/tables/purchasing/ManufacturerPartParametricTable.tsx13export default function ManufacturerPartParametricTable({CODE
LOW…tend/src/tables/purchasing/SupplierPriceBreakTable.tsx29export function calculateSupplierPartUnitPrice(record: any) {CODE
LOW…tend/src/tables/purchasing/SupplierPriceBreakTable.tsx36export function SupplierPriceBreakColumns(): TableColumn[] {CODE
LOW…frontend/src/tables/part/PartCategoryTemplateTable.tsx28export default function PartCategoryTemplateTable({CODE
LOW…frontend/src/tables/part/PartBuildAllocationsTable.tsx33export default function PartBuildAllocationsTable({CODE
LOW…frontend/src/tables/part/PartSalesAllocationsTable.tsx30export default function PartSalesAllocationsTable({CODE
LOW…ontend/src/tables/stock/TransferOrderLineItemTable.tsx60export default function TransferOrderLineItemTable({CODE
LOW…tend/src/tables/stock/StockLocationParametricTable.tsx10export default function StockLocationParametricTable({CODE
LOW…tend/src/tables/stock/TransferOrderAllocationTable.tsx34export default function TransferOrderAllocationTable({CODE
LOW…tend/src/tables/stock/TransferOrderParametricTable.tsx20export default function TransferOrderParametricTable({CODE
LOWsrc/frontend/src/contexts/colorSchema.tsx11export function localStorageColorSchemeManager({CODE
LOWsrc/frontend/src/forms/CompanyForms.tsx123export function useManufacturerPartFields({CODE
LOWsrc/frontend/src/forms/StockForms.tsx357export function useStockItemUninstallFields(): ApiFormFieldSet {CODE
LOWsrc/frontend/src/forms/StockForms.tsx373export function useStockItemInstallFields({CODE
LOWsrc/frontend/src/forms/StockForms.tsx426export function useStockItemSerializeFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx119export function useSalesOrderLineItemFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx307function SalesOrderAllocateLineRow({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx396export function useAllocateToSalesOrderForm({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx486export function useSalesOrderAllocateSerialsFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx512export function useSalesOrderShipmentFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx546export function useSalesOrderShipmentCompleteFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx561export function useSalesOrderAllocationFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx589export function useSalesOrderAutoAllocateFields({CODE
LOWsrc/frontend/src/forms/TransferOrderForms.tsx75export function useTransferOrderLineItemFields({CODE
LOWsrc/frontend/src/forms/TransferOrderForms.tsx106function TransferOrderAllocateLineRow({CODE
LOWsrc/frontend/src/forms/TransferOrderForms.tsx193export function useAllocateToTransferOrderForm({CODE
LOWsrc/frontend/src/forms/TransferOrderForms.tsx282export function useTransferOrderAllocationFields({CODE
LOWsrc/frontend/src/forms/TransferOrderForms.tsx298export function useTransferOrderAllocateSerialsFields({CODE
LOWsrc/frontend/src/forms/PurchaseOrderForms.tsx64export function usePurchaseOrderLineItemFields({CODE
LOWsrc/frontend/src/forms/BomForms.tsx103export function useEditBomSubstitutesForm(props: BomItemSubstituteFormProps) {CODE
LOWsrc/frontend/src/forms/BuildForms.tsx170export function useBuildOrderOutputFields({CODE
LOWsrc/frontend/src/forms/BuildForms.tsx241export function useBuildAutoAllocateFields({CODE
LOWsrc/frontend/src/forms/BuildForms.tsx335export function useCompleteBuildOutputsForm({CODE
LOWsrc/frontend/src/forms/BuildForms.tsx504export function useCancelBuildOutputsForm({CODE
LOWsrc/frontend/src/forms/BuildForms.tsx667export function useAllocateStockToBuildForm({CODE
LOWsrc/frontend/src/forms/ImporterForms.tsx4export function dataImporterSessionFields({CODE
LOWsrc/frontend/src/forms/ReturnOrderForms.tsx105export function useReturnOrderLineItemFields({CODE
LOWsrc/frontend/src/forms/ReturnOrderForms.tsx150function ReturnOrderLineItemFormRow({CODE
LOWsrc/frontend/src/forms/ReturnOrderForms.tsx212export function useReceiveReturnOrderLineItems(CODE
LOWsrc/frontend/src/forms/CommonForms.tsx100export function useParameterTemplateFields(): ApiFormFieldSet {CODE
LOWsrc/frontend/src/forms/CommonForms.tsx133export function useDynamicParameterValueField(resetDep?: any): {CODE
LOWsrc/frontend/src/components/tables/ColumnRenderers.tsx547export function AllocatedLinesProgressColumn(CODE
LOW…end/src/components/importer/ImporterColumnSelector.tsx182function ImporterLookupFieldSelector({CODE
517 more matches not shown…
Excessive Try-Catch Wrapping266 hits · 278 pts
SeverityFileLineSnippetContext
LOWtasks.py1646 except Exception as e:CODE
LOWtasks.py1680 except Exception as e:CODE
LOWtasks.py1799 except Exception:CODE
LOWtasks.py2177 except Exception:CODE
LOWtasks.py2345 except Exception:CODE
LOWtasks.py2368 except Exception as e:CODE
MEDIUMtasks.py633def check(cmd):CODE
MEDIUMdocs/docs/hooks.py26 print(f'Error fetching RTD versions: {response.status_code}')CODE
MEDIUM.github/scripts/check_exported_data.py29 print(f'Error: File not found: {args.datafile}')CODE
MEDIUM.github/scripts/check_exported_data.py38 print(f'Error: Failed to parse JSON file: {e}')CODE
MEDIUM.github/scripts/check_exported_data.py78 print('Error: No metadata entry found in exported data')CODE
MEDIUM.github/scripts/check_exported_data.py88 print(f'Error: No plugin configuration found for plugin "{PLUGIN_KEY}"')CODE
LOWsrc/backend/InvenTree/order/api.py464 except Exception:CODE
LOWsrc/backend/InvenTree/order/api.py1136 except Exception:CODE
LOWsrc/backend/InvenTree/order/api.py1693 except Exception:CODE
LOWsrc/backend/InvenTree/order/api.py1970 except Exception:CODE
LOWsrc/backend/InvenTree/importer/models.py983 except Exception as e:CODE
LOWsrc/backend/InvenTree/plugin/models.py237 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/models.py254 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py252 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py451 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py495 except Exception as e:CODE
LOWsrc/backend/InvenTree/plugin/registry.py535 except Exception as e: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py548 except Exception: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py617 except Exception as error: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py743 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py745 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py764 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/registry.py826 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/registry.py908 except Exception as error: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py989 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1002 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1045 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1080 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py103 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py121 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py145 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py153 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py187 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py224 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py296 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py384 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/plugin.py552 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/urls.py44 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/helpers.py88 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/helpers.py185 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/helpers.py202 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/helpers.py215 except Exception:CODE
LOW…backend/InvenTree/plugin/templatetags/plugin_extras.py49 except Exception:CODE
LOW…backend/InvenTree/plugin/samples/integration/sample.py18 except Exception as e:CODE
LOW…backend/InvenTree/plugin/builtin/labels/label_sheet.py222 except Exception as exc:CODE
LOW…d/InvenTree/plugin/builtin/events/auto_issue_orders.py101 except Exception as e:CODE
LOWsrc/backend/InvenTree/plugin/base/ui/api.py40 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/base/ui/api.py65 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/base/locate/api.py78 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/base/locate/api.py100 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/base/mail/mail.py37 except Exception: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/base/mail/mail.py73 except Exception: # pragma: no coverCODE
LOW…/backend/InvenTree/plugin/base/integration/AppMixin.py109 except Exception: # pragma: no coverCODE
LOW…d/InvenTree/plugin/base/integration/TransitionMixin.py39 except Exception:CODE
206 more matches not shown…
Redundant / Tautological Comments94 hits · 142 pts
SeverityFileLineSnippetContext
LOWtasks.py656 # Return the resultCOMMENT
LOWdocs/main.py133 # Check if we are in ReadTheDocsCOMMENT
LOWdocs/docs/hooks.py235 # Check if there is a local file with release informationCOMMENT
LOWcontrib/install.sh55 # Check if os and version is supportedCOMMENT
LOWcontrib/packager.io/before.sh56# Check if tag sha is the same as the commit shaCOMMENT
LOWcontrib/packager.io/postinstall.sh42# Check if we are updating and need to alertCOMMENT
LOWcontrib/packager.io/functions.sh389 # Check if INVENTREE_SITE_URL in inventree configCOMMENT
LOWcontrib/packager.io/preinstall.sh12 # Check if clear-generated is availableCOMMENT
LOWcontrib/container/init.sh27# Check if "config.yaml" has been copied into the correct locationCOMMENT
LOWcontrib/installer/src/root_command.sh45# Check if os and version is supportedCOMMENT
LOWsrc/backend/InvenTree/config_template.yaml34# Set debug to False to run in production mode, or use the environment variable INVENTREE_DEBUGCOMMENT
LOWsrc/backend/InvenTree/config_template.yaml111# Set sentry_enabled to True to report errors back to the maintainersCOMMENT
LOWsrc/backend/InvenTree/order/models.py150 # Check if the order has been saved (otherwise we can't calculate the total price)COMMENT
LOWsrc/backend/InvenTree/order/models.py398 # Check if a responsible owner is required for this order typeCOMMENT
LOWsrc/backend/InvenTree/order/models.py684 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py807 # Check if there is already a matching line item (for this PurchaseOrder)COMMENT
LOWsrc/backend/InvenTree/order/models.py1424 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py2800 # Check if the shipment can be completed (throw error if not)COMMENT
LOWsrc/backend/InvenTree/order/models.py3079 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py3534 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/serializers.py1020 # Check if the location is not specified for any particular itemCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py68 # Check if the registry needs to be reloadedCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py601 # Check if not running in testing mode and apps should be loaded from hooksCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py690 # Check if this is a 'builtin' pluginCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py711 # Check if this plugin is considered 'mandatory'COMMENT
LOWsrc/backend/InvenTree/plugin/installer.py197 # Check if plugin is already in fileCOMMENT
LOWsrc/backend/InvenTree/plugin/installer.py216 # Write file back to diskCOMMENT
LOWsrc/backend/InvenTree/plugin/staticfiles.py62 # Check if the directory is a plugin directoryCOMMENT
LOWsrc/backend/InvenTree/plugin/test_api.py647 # Check if the plugin is installedCOMMENT
LOWsrc/backend/InvenTree/plugin/urls.py29 # Check if the plugin has a custom URL patternCOMMENT
LOWsrc/backend/InvenTree/plugin/base/ui/api.py58 # Add the feature to the list (serialize)COMMENT
LOWsrc/backend/InvenTree/plugin/base/label/mixins.py94 # Check if pdf data is providedCOMMENT
LOWsrc/backend/InvenTree/plugin/base/event/events.py201 # Check if the plugin registry needs to be reloadedCOMMENT
LOWsrc/backend/InvenTree/common/tasks.py88 # Check if id already existsCOMMENT
LOWsrc/backend/InvenTree/common/models.py929 # Check if a duplicate setting already existsCOMMENT
LOWsrc/backend/InvenTree/common/serializers.py135 # Check if confirmation was provided if requiredCOMMENT
LOWsrc/backend/InvenTree/common/serializers.py322 # Check if object has an absolute_url functionCOMMENT
LOWsrc/backend/InvenTree/common/notifications.py96 # Check if data is importing currentlyCOMMENT
LOWsrc/backend/InvenTree/common/notifications.py126 # Check if we have notified recently...COMMENT
LOWsrc/backend/InvenTree/common/currency.py195 # Check if quantity is fraction and disable multiplesCOMMENT
LOWsrc/backend/InvenTree/machine/registry.py68 # Check if the machine registry needs to be reloadedCOMMENT
LOWsrc/backend/InvenTree/users/tasks.py187 # Check if child permission not already in groupCOMMENT
LOWsrc/backend/InvenTree/users/permissions.py120 # Check if the rule has the specified permissionCOMMENT
LOWsrc/backend/InvenTree/users/permissions.py181 # Check if parent role has change permissionCOMMENT
LOWsrc/backend/InvenTree/users/tests.py32 # Check if there are any rulesets which do not have models definedCOMMENT
LOWsrc/backend/InvenTree/users/tests.py41 # Check if models have been defined for a ruleset which is incorrectCOMMENT
LOWsrc/backend/InvenTree/generic/states/transition.py24 # Check if a sending fnc is definedCOMMENT
LOWsrc/backend/InvenTree/report/tests.py492 # Read the file contents back out, and validateSTRING
LOWsrc/backend/InvenTree/report/tests.py691 # Set DEBUG_MODE to return the report as an HTML fileCOMMENT
LOWsrc/backend/InvenTree/report/templatetags/report.py384 # Check if the image data is validCOMMENT
LOWsrc/backend/InvenTree/part/tasks.py173 # Check if stock expiry functionality is enabledCOMMENT
LOWsrc/backend/InvenTree/part/tasks.py178 # Check if STOCK_STALE_DAYS is configuredCOMMENT
LOWsrc/backend/InvenTree/part/models.py3102 # Check if internal pricing should override other pricingCOMMENT
LOWsrc/backend/InvenTree/part/models.py3832 # Check if the part was changedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py396 # Check if all parts deletedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py412 # Check if all categories are deletedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py417 # Check if all subcategories to parent moved to parent and all parts deletedCOMMENT
LOWsrc/backend/InvenTree/stock/models.py499 # Check if "interesting" fields have been changedCOMMENT
LOWsrc/backend/InvenTree/stock/models.py2478 # Check if supplier part references matchCOMMENT
LOWsrc/backend/InvenTree/stock/models.py2487 # Check if stock status codes matchCOMMENT
34 more matches not shown…
Decorative Section Separators26 hits · 111 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/container/docker-compose.yml8# ---------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml10# ---------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml12# -----------------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml14# -----------------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml22# ------------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml24# ------------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml35# ----------------------------COMMENT
MEDIUMcontrib/container/docker-compose.yml37# ----------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4496 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4498 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4524 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4526 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4570 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4572 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4786 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4788 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4799 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4801 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_api.py715 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_api.py717 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1266 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1268 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1294 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1296 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1208 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1210 # ------------------------------------------------------------------COMMENT
Deep Nesting124 hits · 108 pts
SeverityFileLineSnippetContext
LOWtasks.py1361CODE
LOWtasks.py1688CODE
LOWtasks.py1853CODE
LOWtasks.py2025CODE
LOWdocs/extract_schema.py127CODE
LOW.github/scripts/check_source_strings.py32CODE
LOWsrc/backend/InvenTree/order/models.py1013CODE
LOWsrc/backend/InvenTree/order/serializers.py994CODE
LOWsrc/backend/InvenTree/order/api.py2365CODE
LOWsrc/backend/InvenTree/order/api.py2421CODE
LOWsrc/backend/InvenTree/order/api.py2442CODE
LOWsrc/backend/InvenTree/order/test_api.py2531CODE
LOWsrc/backend/InvenTree/order/test_api.py4391CODE
LOWsrc/backend/InvenTree/importer/models.py700CODE
LOWsrc/backend/InvenTree/plugin/registry.py141CODE
LOWsrc/backend/InvenTree/plugin/registry.py415CODE
LOWsrc/backend/InvenTree/plugin/registry.py503CODE
LOWsrc/backend/InvenTree/plugin/registry.py569CODE
LOWsrc/backend/InvenTree/plugin/registry.py648CODE
LOWsrc/backend/InvenTree/plugin/registry.py798CODE
LOWsrc/backend/InvenTree/plugin/installer.py160CODE
LOWsrc/backend/InvenTree/plugin/installer.py229CODE
LOWsrc/backend/InvenTree/plugin/urls.py15CODE
LOWsrc/backend/InvenTree/plugin/helpers.py169CODE
LOWsrc/backend/InvenTree/plugin/builtin/suppliers/tme.py46CODE
LOW…backend/InvenTree/plugin/builtin/labels/label_sheet.py178CODE
LOW…InvenTree/plugin/builtin/barcodes/inventree_barcode.py55CODE
LOWsrc/backend/InvenTree/plugin/base/ui/api.py25CODE
LOW…end/InvenTree/plugin/base/integration/ScheduleMixin.py158CODE
LOW…/backend/InvenTree/plugin/base/integration/AppMixin.py33CODE
LOW…/backend/InvenTree/plugin/base/integration/AppMixin.py90CODE
LOWsrc/backend/InvenTree/plugin/base/supplier/api.py140CODE
LOWsrc/backend/InvenTree/plugin/base/barcodes/api.py500CODE
LOWsrc/backend/InvenTree/plugin/base/event/events.py191CODE
LOWsrc/backend/InvenTree/plugin/base/event/test_events.py56CODE
LOWsrc/backend/InvenTree/plugin/base/event/test_events.py77CODE
LOWsrc/backend/InvenTree/plugin/base/event/test_events.py97CODE
LOWsrc/backend/InvenTree/plugin/base/event/test_events.py122CODE
LOWsrc/backend/InvenTree/common/models.py3571CODE
LOWsrc/backend/InvenTree/common/models.py345CODE
LOWsrc/backend/InvenTree/common/models.py856CODE
LOWsrc/backend/InvenTree/common/models.py1511CODE
LOWsrc/backend/InvenTree/common/models.py2886CODE
LOWsrc/backend/InvenTree/common/serializers.py47CODE
LOWsrc/backend/InvenTree/common/serializers.py317CODE
LOWsrc/backend/InvenTree/common/notifications.py87CODE
LOWsrc/backend/InvenTree/machine/models.py186CODE
LOWsrc/backend/InvenTree/machine/registry.py20CODE
LOWsrc/backend/InvenTree/machine/registry.py29CODE
LOWsrc/backend/InvenTree/machine/registry.py137CODE
LOWsrc/backend/InvenTree/machine/registry.py187CODE
LOWsrc/backend/InvenTree/machine/registry.py329CODE
LOWsrc/backend/InvenTree/machine/registry.py33CODE
LOWsrc/backend/InvenTree/machine/registry.py354CODE
LOWsrc/backend/InvenTree/machine/machine_type.py304CODE
LOWsrc/backend/InvenTree/users/tasks.py31CODE
LOWsrc/backend/InvenTree/users/api.py115CODE
LOWsrc/backend/InvenTree/users/permissions.py75CODE
LOWsrc/backend/InvenTree/generic/states/fields.py193CODE
LOWsrc/backend/InvenTree/generic/states/fields.py259CODE
64 more matches not shown…
Over-Commented Block75 hits · 72 pts
SeverityFileLineSnippetContext
LOWdocs/requirements.txt241 # viaCOMMENT
LOWdocs/requirements.txt361 # jinja2COMMENT
LOWdocs/requirements.txt381 # mkdocs-autorefsCOMMENT
LOWcontrib/container/dev-docker-compose.yml1# Docker compose recipe for InvenTree development serverCOMMENT
LOWcontrib/container/docker-compose.yml1# Docker compose recipe for a production-ready InvenTree setup, with the following containers:COMMENT
LOWcontrib/container/docker-compose.yml21COMMENT
LOWcontrib/installer/settings.yml1# All settings are optional (with their default values provided below), andCOMMENT
LOWcontrib/installer/settings.yml21# When true, the generated script will use tab indentation instead of spacesCOMMENT
LOWcontrib/installer/src/initialize.sh1## Code here runs inside the initialize() functionCOMMENT
LOW.github/workflows/scorecard.yaml41 with:COMMENT
LOW.github/workflows/docker.yaml1# Build, test and push InvenTree docker imageCOMMENT
LOWsrc/frontend/tests/pui_settings.spec.ts21// await page.getByLabel('Select language').first().click();COMMENT
LOWsrc/frontend/src/pages/stock/TransferOrderDetail.tsx121 // 'line-items',COMMENT
LOWsrc/frontend/src/pages/stock/TransferOrderDetail.tsx141 // <Accordion.Panel>COMMENT
LOWsrc/backend/requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWsrc/backend/requirements.txt501 --hash=sha256:0eb4a9bb1853a35b0286dbc6d916bd352c8c2687195a7f2d6f80cefd840e4970 \COMMENT
LOWsrc/backend/requirements.txt521 # django-redisCOMMENT
LOWsrc/backend/requirements.txt1181 # opentelemetry-instrumentation-dbapiCOMMENT
LOWsrc/backend/requirements.txt1201 # opentelemetry-exporter-otlp-proto-httpCOMMENT
LOWsrc/backend/requirements.txt1261 # viaCOMMENT
LOWsrc/backend/requirements.txt1281 # viaCOMMENT
LOWsrc/backend/requirements.txt1921typing-extensions==4.15.0 \COMMENT
LOWsrc/backend/requirements-dev-3.14.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWsrc/backend/requirements-dev-3.14.txt401 --hash=sha256:fe0180af5bf9236518a087e35bf2d9a347d5f5f51e63c579d683ddff424e3d46COMMENT
LOWsrc/backend/requirements-dev-3.14.txt421 # -c src/backend/requirements-dev.txtCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt461 # viaCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt481 # viaCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt501 # -c src/backend/requirements-dev.txtCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt561 --hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176COMMENT
LOWsrc/backend/requirements-dev-3.14.txt621 --hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9edCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt641 --hash=sha256:a59e362652f08dcd477c78bb6e7bd9d80a7995bc73ce773050228a348ce2e5bbCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt681 --hash=sha256:8b1f80d90d6799a4fcdac12198b382a8feee9ed4340d5f69b56fc5ffa0644143COMMENT
LOWsrc/backend/requirements-dev-3.14.txt701urllib3==2.7.0 \COMMENT
LOWsrc/backend/requirements-3.14.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWsrc/backend/requirements-3.14.txt101 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt501 --hash=sha256:fe0180af5bf9236518a087e35bf2d9a347d5f5f51e63c579d683ddff424e3d46COMMENT
LOWsrc/backend/requirements-3.14.txt521 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt541 # django-otpCOMMENT
LOWsrc/backend/requirements-3.14.txt561 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt621 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt661 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt701 --hash=sha256:fefc40c826896b60fcf33e35b6e30b523fc958955a16006438cd3ba6d795a532COMMENT
LOWsrc/backend/requirements-3.14.txt741 --hash=sha256:c3c74dd3e83a5a3efc37b3c18d92bd6f86a6791c7b7d4dff62bb068500e76457COMMENT
LOWsrc/backend/requirements-3.14.txt821 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt961 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt981 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt1301oauthlib==3.3.1 \COMMENT
LOWsrc/backend/requirements-3.14.txt1321 # opentelemetry-exporter-otlp-proto-httpCOMMENT
LOWsrc/backend/requirements-3.14.txt1361 --hash=sha256:b47d528dead6271d7743114417eb67fc915bd9258111c48dbf9a4951d2efa88dCOMMENT
LOWsrc/backend/requirements-3.14.txt1421 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt1441 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt1461 --hash=sha256:c1e5350d25507c1afcd6076cf9ac062485a0a4f79cd9971366996fd3056bacdbCOMMENT
LOWsrc/backend/requirements-3.14.txt1581 # django-stdimageCOMMENT
LOWsrc/backend/requirements-3.14.txt1721 --hash=sha256:5776567478c9a0dae473374bb86631ba0b5ea99aaf302763b364e367ac51f367 \COMMENT
LOWsrc/backend/requirements-3.14.txt1941 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt2141 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt2161 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt2181 --hash=sha256:9173fde7d80d9018e02a662e168e5a2d04f87c41ea174b139fbef642eda62d10 \COMMENT
LOWsrc/backend/requirements-3.14.txt2201 # sentry-sdkCOMMENT
LOWsrc/backend/requirements-3.14.txt2321 # viaCOMMENT
15 more matches not shown…
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/InvenTree/importer/operations.py60Extract column names from a data file. Uses the tablib library to extract column names from a data file. Args:STRING
HIGHsrc/backend/InvenTree/plugin/api.py321Check that a plugin for the provided slug exists and get the config. Args: plugin_slug (str): Slug for plugSTRING
HIGHsrc/backend/InvenTree/common/settings.py91Set a global warning for a code. Args: key (str): The key for the warning. options (dict or bool): STRING
HIGHsrc/backend/InvenTree/generic/states/transition.py38Perform a state transition. Success: - The custom transition logic succeeded - Return TSTRING
HIGHsrc/backend/InvenTree/report/models.py498Print reports for a list of items against this template. Arguments: items: A list of items to printSTRING
HIGHsrc/backend/InvenTree/report/templatetags/report.py247Return the fully qualified file path to an uploaded media file. Arguments: path: The path to the media fileSTRING
HIGHsrc/backend/InvenTree/stock/models.py658Create multiple stock items with the provided serial numbers. Arguments: serials: List of serial nuSTRING
HIGHsrc/backend/InvenTree/stock/models.py1912Disassemble this stock item into its component parts. The provided BOM lines determine which component parts arSTRING
HIGHsrc/backend/InvenTree/stock/models.py2672Split this stock item into two items, in the same location. Stock tracking notes for this StockItem will be dupSTRING
HIGHsrc/backend/InvenTree/InvenTree/tasks.py582Register the given task as a scheduled task. Example: ```python @scheduled_task(ScheduledTask.DAILY) deSTRING
HIGHsrc/backend/InvenTree/InvenTree/format.py39Construct a regular expression based on a provided format string. This function turns a python format string into aSTRING
HIGHsrc/backend/InvenTree/InvenTree/format.py121Validate that the provided string matches the specified format. Args: value: The string to be tested e.g. 'STRING
HIGHsrc/backend/InvenTree/InvenTree/format.py141Extract a named value from the provided string, given the provided format string. Args: name: Name of groupSTRING
Unused Imports62 hits · 58 pts
SeverityFileLineSnippetContext
LOWsrc/backend/InvenTree/plugin/events.py4CODE
LOWsrc/backend/InvenTree/plugin/events.py4CODE
LOWsrc/backend/InvenTree/plugin/events.py4CODE
LOWsrc/backend/InvenTree/plugin/events.py4CODE
LOWsrc/backend/InvenTree/plugin/__init__.py3CODE
LOWsrc/backend/InvenTree/plugin/__init__.py3CODE
LOWsrc/backend/InvenTree/plugin/__init__.py4CODE
LOWsrc/backend/InvenTree/plugin/__init__.py4CODE
LOWsrc/backend/InvenTree/plugin/__init__.py5CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py3CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py4CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py4CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py5CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py6CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py7CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py8CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py9CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py10CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py11CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py12CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py13CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py14CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py15CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py16CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py17CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py18CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py19CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py20CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py21CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py22CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py23CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py24CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py25CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py8CODE
LOWsrc/backend/InvenTree/plugin/machine/machine_types.py3CODE
LOW…InvenTree/plugin/base/integration/NotificationMixin.py15CODE
LOWsrc/backend/InvenTree/plugin/base/barcodes/mixins.py3CODE
LOWsrc/backend/InvenTree/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/machine/__init__.py1CODE
LOWsrc/backend/InvenTree/machine/__init__.py7CODE
LOWsrc/backend/InvenTree/machine/machine_types/__init__.py1CODE
LOWsrc/backend/InvenTree/machine/machine_types/__init__.py1CODE
LOWsrc/backend/InvenTree/generic/templatetags/generic.py6CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py9CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py10CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py10CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py10CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py11CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py11CODE
LOWsrc/backend/InvenTree/part/models.py3CODE
LOWsrc/backend/InvenTree/stock/models.py3CODE
LOWsrc/backend/InvenTree/InvenTree/status_codes.py7CODE
LOWsrc/backend/InvenTree/InvenTree/status_codes.py8CODE
2 more matches not shown…
Cross-File Repetition10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/InvenTree/order/models.py0return the associated barcode model type code for this model.STRING
HIGHsrc/backend/InvenTree/part/models.py0return the associated barcode model type code for this model.STRING
HIGHsrc/backend/InvenTree/stock/models.py0return the associated barcode model type code for this model.STRING
HIGHsrc/backend/InvenTree/company/models.py0return the associated barcode model type code for this model.STRING
HIGH…nvenTree/plugin/samples/event/filtered_event_sample.py0return whether given event should be processed or not.STRING
HIGH…nTree/plugin/builtin/integration/part_notifications.py0return whether given event should be processed or not.STRING
HIGH…/InvenTree/plugin/builtin/events/auto_create_builds.py0return whether given event should be processed or not.STRING
HIGHsrc/backend/InvenTree/report/apps.py0this function is called whenever the company app is loaded.STRING
HIGHsrc/backend/InvenTree/part/apps.py0this function is called whenever the company app is loaded.STRING
HIGHsrc/backend/InvenTree/company/apps.py0this function is called whenever the company app is loaded.STRING
Cross-Language Confusion10 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/InvenTree/order/models.py2433 part: Link to a Part object (may be null)STRING
HIGHsrc/backend/InvenTree/order/models.py2602 shipment_date: Date this shipment was "shipped" (or null)STRING
HIGHsrc/backend/InvenTree/order/models.py3852 part: Link to a Part object (may be null)STRING
HIGHsrc/backend/InvenTree/part/models.py492 default_location: Where the item is normally stored (may be null)STRING
HIGHsrc/backend/InvenTree/part/test_pricing.py328 # Cost is still null, as the order is not completeCOMMENT
HIGHsrc/backend/InvenTree/part/test_pricing.py339 # Cost is still null, as the lines have not been receivedCOMMENT
HIGHsrc/backend/InvenTree/stock/models.py2888 location: Destination location (cannot be null)STRING
HIGHsrc/backend/InvenTree/stock/models.py3504 If the underlying stock item is deleted, the "item" field will be set to null, but the tracking information willSTRING
HIGH…enTree/InvenTree/management/commands/clean_settings.py11 """Cleanup old (undefined) settings in the database."""STRING
HIGH…enTree/InvenTree/management/commands/clean_settings.py14 """Cleanup old (undefined) settings in the database."""STRING
Fake / Example Data26 hits · 27 pts
SeverityFileLineSnippetContext
LOWsrc/frontend/tests/pages/pui_purchasing.spec.ts402 ).toHaveAttribute('placeholder', expectedPrice.toString(), {CODE
LOWsrc/frontend/tests/pages/pui_sales.spec.ts458 ).toHaveAttribute('placeholder', expectedPrice.toString(), {CODE
LOWsrc/frontend/tests/pages/pui_build.spec.ts313 .getAttribute('placeholder')) || '';CODE
LOWsrc/frontend/tests/pages/pui_stock.spec.ts305 ).toHaveAttribute('placeholder', '365+');CODE
LOW…c/frontend/src/components/forms/AuthenticationForm.tsx175 placeholder='email@example.org'CODE
LOW…c/frontend/src/components/forms/AuthenticationForm.tsx306 placeholder='email@example.org'CODE
LOWsrc/frontend/src/pages/Auth/Reset.tsx19 placeholder='email@example.org'CODE
LOWsrc/backend/InvenTree/config_template.yaml93 sender: '' # 'inventree@example.org'CODE
LOWsrc/backend/InvenTree/common/test_emails.py30 'from@example.org',CODE
LOWsrc/backend/InvenTree/common/test_emails.py31 ['to@example.org'],CODE
LOWsrc/backend/InvenTree/common/test_emails.py46 recipients='to@example.org',CODE
LOWsrc/backend/InvenTree/common/test_emails.py66 to=['to@example.org'],CODE
LOWsrc/backend/InvenTree/common/test_emails.py85 recipients=['to@example.org'],CODE
LOWsrc/backend/InvenTree/common/test_emails.py107 reverse('api-email-test'), {'email': 'test@example.org'}, expected_code=200CODE
LOWsrc/backend/InvenTree/common/test_emails.py139 subject='test sub', body='test msg', to='abc@example.org', priority=3CODE
LOWsrc/backend/InvenTree/common/test_emails.py146 subject='test sub', body='test msg', to='abc@example.org', priority=3CODE
LOWsrc/backend/InvenTree/common/test_emails.py241 from_email='user@example.com',CODE
LOWsrc/backend/InvenTree/users/test_migrations.py40 username='fred', email='fred@example.org', password='password'CODE
LOWsrc/backend/InvenTree/users/test_migrations.py43 username='brad', email='brad@example.org', password='password'CODE
LOWsrc/backend/InvenTree/users/test_api.py93 'email': 'aa@example.org',CODE
LOWsrc/backend/InvenTree/InvenTree/auth_overrides.py62 'placeholder': _('Email address confirmation'),CODE
LOWsrc/backend/InvenTree/InvenTree/test_commands.py74 username=uname, email=f'{uname}@example.org'CODE
LOWsrc/backend/InvenTree/InvenTree/test_commands.py91 call_command('remove_mfa', mail='admin@example.org', verbosity=0)CODE
LOWsrc/backend/InvenTree/InvenTree/test_tasks.py330 ['Test Email 1', 'This is a test email.', 'abc@example.org', threshold_low],CODE
LOWsrc/backend/InvenTree/InvenTree/test_tasks.py334 'def@example.org',CODE
LOW…end/InvenTree/InvenTree/static/tabler-icons/icons.json1{"a-b-2":{"name":"a-b-2","category":"","tags":["test","visual","user"],"variants":{"outline":"f25f"}},"a-b-off":{"name":CODE
AI Slop Vocabulary11 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMsrc/backend/InvenTree/order/api.py2366 """Overload call in order to check for authentication.STRING
MEDIUMsrc/backend/InvenTree/plugin/test_plugin.py250 # A more comprehensive test - to find a hashed version of the fileCOMMENT
LOWsrc/backend/InvenTree/users/models.py60 # we can just call .save() nowCOMMENT
LOWsrc/backend/InvenTree/report/templatetags/report.py613 # If the base URL is not set, just return the textCOMMENT
LOWsrc/backend/InvenTree/report/templatetags/report.py1018 # If the number cannot be converted to a Decimal, just return the original valueCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py3123 # We should be able to filter the API list to just return this new partCOMMENT
LOWsrc/backend/InvenTree/InvenTree/tasks.py645 # otherwise they just create extra noiseCOMMENT
LOWsrc/backend/InvenTree/InvenTree/helpers.py410 # If we cannot match the regex, then simply return the provided valueCOMMENT
LOWsrc/backend/InvenTree/InvenTree/helpers.py729 # In the case of a different number of hyphens, simply add the entire groupCOMMENT
MEDIUM…enTree/InvenTree/management/commands/rebuild_models.py15 """Rebuild all database models which leverage the MPTT structure."""STRING
MEDIUM…enTree/InvenTree/management/commands/rebuild_models.py18 """Rebuild all database models which leverage the MPTT structure."""STRING
Modern Structural Boilerplate13 hits · 13 pts
SeverityFileLineSnippetContext
LOWsrc/backend/InvenTree/order/models.py2388 def update_pricing(self) -> None:CODE
LOWsrc/backend/InvenTree/plugin/events.py19__all__ = [CODE
LOWsrc/backend/InvenTree/plugin/__init__.py7__all__ = [CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py27__all__ = [CODE
LOWsrc/backend/InvenTree/plugin/machine/__init__.py10__all__ = [CODE
LOW…end/InvenTree/plugin/base/integration/SettingsMixin.py140 def set_user_setting(self, key: str, value: Any, user: User) -> None:CODE
LOWsrc/backend/InvenTree/machine/__init__.py9__all__ = [CODE
LOWsrc/backend/InvenTree/machine/machine_types/__init__.py6__all__ = [CODE
LOWsrc/backend/InvenTree/users/tasks.py31def update_group_roles(group: Group, debug: bool = False) -> None:CODE
LOWsrc/backend/InvenTree/generic/templatetags/generic.py8__all__ = ['status_label']CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py13__all__ = [CODE
LOWsrc/backend/InvenTree/part/models.py318 def set_starred(self, user, status: bool, **kwargs) -> None:CODE
LOWsrc/backend/InvenTree/InvenTree/cache.py171def set_session_cache(key: str, value: Any) -> None:CODE
Overly Generic Function Names11 hits · 11 pts
SeverityFileLineSnippetContext
LOW…nTree/plugin/samples/integration/simpleactionplugin.py14 def perform_action(self, user=None, data=None):CODE
LOW…Tree/plugin/samples/integration/test_scheduled_task.py14 def test_function(self):CODE
LOW…/plugin/samples/integration/test_simpleactionplugin.py23 def test_function(self):CODE
LOW…ckend/InvenTree/plugin/base/integration/test_mixins.py66 def test_function(self):CODE
LOW…ckend/InvenTree/plugin/base/integration/test_mixins.py107 def test_function(self):CODE
LOW…ckend/InvenTree/plugin/base/integration/test_mixins.py147 def test_function(self):CODE
LOW…ckend/InvenTree/plugin/base/integration/test_mixins.py223 def test_function(self):CODE
LOWsrc/backend/InvenTree/plugin/base/action/mixins.py31 def perform_action(self, user=None, data=None):CODE
LOWsrc/backend/InvenTree/plugin/base/action/test_action.py31 def perform_action(self, user=None, data=None):CODE
LOWsrc/backend/InvenTree/plugin/base/action/test_action.py53 def test_function(self):CODE
LOWsrc/backend/InvenTree/InvenTree/unit_test.py861 def helper(self, model: type[models.Model], model_kwargs=None):CODE
AI Structural Patterns8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtasks.py1000CODE
LOWtasks.py1118CODE
LOWtasks.py1207CODE
LOWtasks.py1769CODE
LOWtasks.py1853CODE
LOWsrc/backend/InvenTree/report/templatetags/report.py800CODE
LOWsrc/backend/InvenTree/report/templatetags/report.py986CODE
LOWsrc/backend/InvenTree/InvenTree/middleware.py208CODE
AI Response Leakage1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/docs/plugins/walkthrough.md514The reference requires the host and the [plugin-name](./index.md##static-files). Rather than statically coding these refCODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/installer/settings.yml5# When setting environment variables, you can use:COMMENT
LOWsrc/backend/InvenTree/common/currency.py180 - Don't forget to add in flat-fee cost (base_cost field)STRING
Verbosity Indicators1 hit · 0 pts
SeverityFileLineSnippetContext
LOWsrc/backend/InvenTree/report/templatetags/report.py627 The purpose of this function is to provide "seamless" math operations in templates,STRING