Repository Analysis

inventree/InvenTree

Open Source Inventory Management System

10.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of inventree/InvenTree, a Python project with 7,466 GitHub stars. SynthScan v2.0 examined 296,034 lines of code across 1380 source files, recording 1758 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 10.4 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.4
Adjusted Score
10.4
Raw Score
100%
Time Factor
2026-08-29
Last Push
7.5K
Stars
Python
Language
296.0K
Lines of Code
1.4K
Files
1.8K
Pattern Hits
2026-08-29
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 78HIGH 34MEDIUM 256LOW 1390

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 1758 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 Indicators78 hits · 785 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.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/test_sales_order.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/serializers.py5from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/order/test_api.py12from 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.py198 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py237 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py337 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py384 from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/InvenTree/importer/tests.py414 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.py10from 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.py16from 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/transition.py7from 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.py517 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
18 more matches not shown…
Hyper-Verbose Identifiers681 hits · 618 pts
SeverityFileLineSnippetContext
LOWtasks.py37def is_devcontainer_environment():CODE
LOWtasks.py77def get_inventree_api_version():CODE
LOWtasks.py2014def export_settings_definitions(c, filename='inventree_settings.json', overwrite=False):CODE
LOWdocs/docs/hooks.py263def check_status_codes_documented(gen_base):CODE
LOWdocs/docs/hooks.py290def check_status_code_values_documented(gen_base):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.tsx43export 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.tsx60export 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.tsx427export function useStockItemSerializeFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx119export function useSalesOrderLineItemFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx308function SalesOrderAllocateLineRow({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx397export function useAllocateToSalesOrderForm({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx487export function useSalesOrderAllocateSerialsFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx513export function useSalesOrderShipmentFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx547export function useSalesOrderShipmentCompleteFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx562export function useSalesOrderAllocationFields({CODE
LOWsrc/frontend/src/forms/SalesOrderForms.tsx590export 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.tsx107export 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.tsx151function ReturnOrderLineItemFormRow({CODE
LOWsrc/frontend/src/forms/ReturnOrderForms.tsx213export function useReceiveReturnOrderLineItems(CODE
LOWsrc/frontend/src/forms/CommonForms.tsx101export function useParameterTemplateFields(): ApiFormFieldSet {CODE
LOWsrc/frontend/src/forms/CommonForms.tsx134export function useDynamicParameterValueField(resetDep?: any): {CODE
621 more matches not shown…
Self-Referential Comments208 hits · 610 pts
SeverityFileLineSnippetContext
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py78 # Create a SalesOrder to ship againstCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py83 # Create a Shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py88 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py93 # Create an extra lineCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py102 # Create an address for a different companyCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py54 # Create a Company to ship the goods toCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py59 # Create a Part to shipCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py544 # Create a new SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py554 # Create a partCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py779 # Create an orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py793 # Create a second orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/serializers.py2000 # Create a new SalesOrderAllocationCOMMENT
MEDIUMsrc/backend/InvenTree/order/serializers.py2851 # 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.py1540 # Create a new orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2004 # Create a duplicate of this sales orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2165 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2314 # Create a bunch of SalesOrderLineItems for each orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2521 # Create a new shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2656 # Create a new line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2664 # Create a new shipment against this SalesOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py2934 # Create a required testCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3325 # Create an orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py3422 # Create a new ReturnOrderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4199 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4267 # Create a line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4550 # Create a bunch of TransferOrderLineItems for each orderCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4851 # Create a new line itemCOMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py4859 # 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.py237 # Create a default mapping for each available field in the databaseCOMMENT
MEDIUMsrc/backend/InvenTree/importer/models.py287 # 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.py220 # 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.py412 # Create a sales orderCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py415 # Create a shipmentCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py420 # Create a line itemCOMMENT
MEDIUM…backend/InvenTree/plugin/base/barcodes/test_barcode.py517 # Create a shipment for a different orderCOMMENT
MEDIUMsrc/backend/InvenTree/common/models.py2105 # Create a new file with the new name, and delete the old fileCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py504 # Create a simple part to test withCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py511 # Create a ParameterTemplate for the Part modelCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py520 # Create a Parameter via the APICOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py129 # Create a new ParameterTemplate - initially with invalid model_type fieldCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py251 # Create a Parameter against a specific Company instanceCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py868 # Create a parameter for every company against every templateCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py923 # Create a ParameterTemplate for the Part modelCOMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py930 # Create a Parameter for the BuildCOMMENT
MEDIUMsrc/backend/InvenTree/common/tests.py1373 # Create a notification messageCOMMENT
MEDIUMsrc/backend/InvenTree/common/tests.py1797 # Create a new project codeCOMMENT
148 more matches not shown…
Excessive Try-Catch Wrapping285 hits · 300 pts
SeverityFileLineSnippetContext
LOWtasks.py1649 except Exception as e:CODE
LOWtasks.py1683 except Exception as e:CODE
LOWtasks.py1802 except Exception:CODE
LOWtasks.py2218 except Exception:CODE
LOWtasks.py2386 except Exception:CODE
LOWtasks.py2409 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
MEDIUMsrc/backend/InvenTree/order/test_sales_order.py1273def allocate(line_item):CODE
LOWsrc/backend/InvenTree/order/test_sales_order.py1292 except Exception as exc: # pragma: no cover - surfaced via errors listCODE
LOWsrc/backend/InvenTree/order/serializers.py194 except Exception:CODE
MEDIUMsrc/backend/InvenTree/order/test_api.py5081def allocate(line_item):CODE
LOWsrc/backend/InvenTree/order/test_api.py5096 except Exception as exc: # pragma: no cover - surfaced via errors listCODE
LOWsrc/backend/InvenTree/importer/models.py992 except Exception as e:CODE
LOWsrc/backend/InvenTree/importer/tests.py507 except Exception as exc: # pragma: no cover - surfaced via errors listCODE
MEDIUMsrc/backend/InvenTree/importer/tests.py495def update(field, value):CODE
LOWsrc/backend/InvenTree/plugin/models.py237 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/models.py254 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py303 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py492 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py536 except Exception as e:CODE
LOWsrc/backend/InvenTree/plugin/registry.py576 except Exception as e: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py589 except Exception: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py658 except Exception as error: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py784 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py786 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py805 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/registry.py867 except Exception as error:CODE
LOWsrc/backend/InvenTree/plugin/registry.py949 except Exception as error: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/registry.py1033 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1046 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1096 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/registry.py1131 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py108 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py126 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py150 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py158 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py186 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py223 except Exception as exc:CODE
LOWsrc/backend/InvenTree/plugin/installer.py301 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/installer.py389 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/plugin.py553 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/urls.py45 except Exception:CODE
LOWsrc/backend/InvenTree/plugin/urls.py72 except Exception: # pragma: no coverCODE
LOWsrc/backend/InvenTree/plugin/urls.py104 except Exception: # pragma: no coverCODE
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…Tree/plugin/samples/integration/test_scheduled_task.py153 except Exception as exc: # pragma: no cover - surfaced via errors listCODE
MEDIUM…Tree/plugin/samples/integration/test_scheduled_task.py150def run():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
225 more matches not shown…
Redundant / Tautological Comments96 hits · 144 pts
SeverityFileLineSnippetContext
LOWtasks.py656 # Return the resultCOMMENT
LOWdocs/main.py148 # 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/config_template.yaml116# Set sentry_send_pii to True to include PII (e.g. user id/email, IP address, request data)COMMENT
LOWsrc/backend/InvenTree/order/models.py161 # Check if the order has been saved (otherwise we can't calculate the total price)COMMENT
LOWsrc/backend/InvenTree/order/models.py417 # Check if a responsible owner is required for this order typeCOMMENT
LOWsrc/backend/InvenTree/order/models.py707 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py830 # Check if there is already a matching line item (for this PurchaseOrder)COMMENT
LOWsrc/backend/InvenTree/order/models.py1426 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py3008 # Check if the shipment can be completed (throw error if not)COMMENT
LOWsrc/backend/InvenTree/order/models.py3280 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/models.py3716 # Add the part to the list of subscribed usersCOMMENT
LOWsrc/backend/InvenTree/order/serializers.py1037 # 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.py642 # Check if not running in testing mode and apps should be loaded from hooksCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py731 # Check if this is a 'builtin' pluginCOMMENT
LOWsrc/backend/InvenTree/plugin/registry.py752 # Check if this plugin is considered 'mandatory'COMMENT
LOWsrc/backend/InvenTree/plugin/installer.py196 # Check if plugin is already in fileCOMMENT
LOWsrc/backend/InvenTree/plugin/installer.py215 # 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.py656 # Check if the plugin is installedCOMMENT
LOWsrc/backend/InvenTree/plugin/urls.py30 # 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.py324 # Check if object has an absolute_url functionCOMMENT
LOWsrc/backend/InvenTree/common/notifications.py97 # Check if data is importing currentlyCOMMENT
LOWsrc/backend/InvenTree/common/notifications.py130 # 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.py216 # Check if a sending fnc is definedCOMMENT
LOWsrc/backend/InvenTree/report/tests.py695 # Set DEBUG_MODE to return the report as an HTML fileCOMMENT
LOWsrc/backend/InvenTree/report/tests.py496 # Read the file contents back out, and validateSTRING
LOWsrc/backend/InvenTree/report/templatetags/report.py378 # Check if the image data is validCOMMENT
LOWsrc/backend/InvenTree/part/tasks.py174 # Check if stock expiry functionality is enabledCOMMENT
LOWsrc/backend/InvenTree/part/tasks.py179 # Check if STOCK_STALE_DAYS is configuredCOMMENT
LOWsrc/backend/InvenTree/part/models.py3141 # Check if internal pricing should override other pricingCOMMENT
LOWsrc/backend/InvenTree/part/models.py3878 # Check if the part was changedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py469 # Check if all parts deletedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py485 # Check if all categories are deletedCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py490 # Check if all subcategories to parent moved to parent and all parts deletedCOMMENT
LOWsrc/backend/InvenTree/stock/models.py518 # Check if "interesting" fields have been changedCOMMENT
LOWsrc/backend/InvenTree/stock/models.py2653 # Check if supplier part references matchCOMMENT
36 more matches not shown…
Decorative Section Separators28 hits · 120 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.py5162 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5164 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5190 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5192 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5236 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5238 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5452 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5454 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5465 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/order/test_api.py5467 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_api.py724 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/plugin/test_api.py726 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1431 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1433 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1459 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1461 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1512 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1514 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1373 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/backend/InvenTree/common/test_api.py1375 # ------------------------------------------------------------------COMMENT
Deep Nesting130 hits · 114 pts
SeverityFileLineSnippetContext
LOWtasks.py1364CODE
LOWtasks.py1691CODE
LOWtasks.py1856CODE
LOWtasks.py2066CODE
LOWdocs/extract_schema.py127CODE
LOW.github/scripts/check_source_strings.py32CODE
LOWsrc/backend/InvenTree/order/models.py1013CODE
LOWsrc/backend/InvenTree/order/serializers.py1011CODE
LOWsrc/backend/InvenTree/order/api.py2500CODE
LOWsrc/backend/InvenTree/order/api.py2556CODE
LOWsrc/backend/InvenTree/order/api.py2577CODE
LOWsrc/backend/InvenTree/order/test_api.py2753CODE
LOWsrc/backend/InvenTree/order/test_api.py4954CODE
LOWsrc/backend/InvenTree/importer/models.py723CODE
LOWsrc/backend/InvenTree/importer/models.py1029CODE
LOWsrc/backend/InvenTree/plugin/registry.py142CODE
LOWsrc/backend/InvenTree/plugin/registry.py456CODE
LOWsrc/backend/InvenTree/plugin/registry.py544CODE
LOWsrc/backend/InvenTree/plugin/registry.py610CODE
LOWsrc/backend/InvenTree/plugin/registry.py689CODE
LOWsrc/backend/InvenTree/plugin/registry.py839CODE
LOWsrc/backend/InvenTree/plugin/installer.py165CODE
LOWsrc/backend/InvenTree/plugin/installer.py228CODE
LOWsrc/backend/InvenTree/plugin/urls.py16CODE
LOWsrc/backend/InvenTree/plugin/urls.py61CODE
LOWsrc/backend/InvenTree/plugin/urls.py79CODE
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.py503CODE
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.py3583CODE
LOWsrc/backend/InvenTree/common/models.py345CODE
LOWsrc/backend/InvenTree/common/models.py856CODE
LOWsrc/backend/InvenTree/common/models.py1511CODE
LOWsrc/backend/InvenTree/common/models.py2898CODE
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
70 more matches not shown…
Over-Commented Block74 hits · 72 pts
SeverityFileLineSnippetContext
LOWdocs/requirements.txt281jinja2==3.1.6 \COMMENT
LOWdocs/requirements.txt401 # viaCOMMENT
LOWdocs/requirements.txt421 --hash=sha256:db91759624d1647f3f34aa0c3f327dd2601beae39a366d6e064c03468d35c20eCOMMENT
LOWdocs/requirements.txt521 --hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \COMMENT
LOWdocs/requirements.txt621 # pymdown-extensionsCOMMENT
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 // ]}COMMENT
LOWsrc/backend/requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWsrc/backend/requirements.txt541 # -r src/backend/requirements.inCOMMENT
LOWsrc/backend/requirements.txt561 # django-allauthCOMMENT
LOWsrc/backend/requirements.txt581 # django-sql-utilsCOMMENT
LOWsrc/backend/requirements.txt1241 --hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2 \COMMENT
LOWsrc/backend/requirements.txt1281opentelemetry-instrumentation==0.65b0 \COMMENT
LOWsrc/backend/requirements.txt1341 # opentelemetry-exporter-otlp-proto-httpCOMMENT
LOWsrc/backend/requirements.txt1961 # cssselect2COMMENT
LOWsrc/backend/requirements.txt1981 # icalendarCOMMENT
LOWsrc/backend/requirements.txt2001 --hash=sha256:9fb4c81ebbb1ce9531cce37674bbc6f1360472bc18ca9a553ede278ef7276897COMMENT
LOWsrc/backend/requirements-dev-3.14.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWsrc/backend/requirements-dev-3.14.txt501 # django-slowtestsCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt521 --hash=sha256:63b23ccca2616d464ed7e37d1ce44960315cb3cecab75b23c928467ef125e560 \COMMENT
LOWsrc/backend/requirements-dev-3.14.txt541 --hash=sha256:af903de8b9ee963b7594459a7a20cb8eaaab176ae2b3244ecaa089e0c570b0d1 \COMMENT
LOWsrc/backend/requirements-dev-3.14.txt581 # viaCOMMENT
LOWsrc/backend/requirements-dev-3.14.txt641 --hash=sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992COMMENT
LOWsrc/backend/requirements-dev-3.14.txt701pytest-django==4.14.0 \COMMENT
LOWsrc/backend/requirements-dev-3.14.txt721rich==15.0.0 \COMMENT
LOWsrc/backend/requirements-dev-3.14.txt781 --hash=sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5COMMENT
LOWsrc/backend/requirements-dev-3.14.txt801 # -c src/backend/requirements-dev.txtCOMMENT
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.txt561 # django-anymailCOMMENT
LOWsrc/backend/requirements-3.14.txt581 --hash=sha256:59ea02020c3136fce14bef0bbece21a10a4febef5eed1c51c22ae468efa22200COMMENT
LOWsrc/backend/requirements-3.14.txt601 # django-q2COMMENT
LOWsrc/backend/requirements-3.14.txt661 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt721 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt761 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt801 --hash=sha256:c4d1199e6df34125dd36db5eb0efe545b254dec3980ce5dd80e6bab3e78757c3COMMENT
LOWsrc/backend/requirements-3.14.txt1081 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt1381 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt1401 # opentelemetry-instrumentation-djangoCOMMENT
LOWsrc/backend/requirements-3.14.txt1421 # -c src/backend/requirements.txtCOMMENT
LOWsrc/backend/requirements-3.14.txt1441 # opentelemetry-instrumentation-dbapiCOMMENT
LOWsrc/backend/requirements-3.14.txt1461 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt1501 --hash=sha256:af23e6686c7cd2abcd7d14ac03fb7e3b438273eb2d54a8f8dc401dc71bc52a9f \COMMENT
LOWsrc/backend/requirements-3.14.txt1521 # opentelemetry-exporter-otlp-proto-grpcCOMMENT
LOWsrc/backend/requirements-3.14.txt1541 # opentelemetry-instrumentation-djangoCOMMENT
LOWsrc/backend/requirements-3.14.txt1801 --hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427COMMENT
LOWsrc/backend/requirements-3.14.txt2201 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt2221 # viaCOMMENT
LOWsrc/backend/requirements-3.14.txt2241 # icalendarCOMMENT
LOWsrc/backend/requirements-3.14.txt2261 --hash=sha256:d63947694a0539a1d51e01eda7caf800c291020e6cdd7e28ad7b14dd33ad4f85COMMENT
LOWsrc/backend/requirements-dev.txt701 # viaCOMMENT
LOWsrc/backend/InvenTree/config_template.yaml1# InvenTree Configuration TemplateCOMMENT
14 more matches not shown…
Unused Imports71 hits · 67 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/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/mixins/__init__.py26CODE
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/builtin/integration/core_wellknown.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__.py9CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py11CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py12CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py12CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py13CODE
LOWsrc/backend/InvenTree/generic/states/__init__.py13CODE
11 more matches not shown…
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/InvenTree/importer/operations.py68Extract 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.py230Perform a state transition. When used with ``@inventree_transition``-decorated methods, plugin handlersSTRING
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.py246Return the fully qualified file path to an uploaded media file. Arguments: path: The path to the media fileSTRING
HIGHsrc/backend/InvenTree/stock/models.py738Create multiple stock items with the provided serial numbers. Arguments: serials: List of serial nuSTRING
HIGHsrc/backend/InvenTree/stock/models.py2075Disassemble this stock item into its component parts. The provided BOM lines determine which component parts arSTRING
HIGHsrc/backend/InvenTree/stock/models.py2847Split 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
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.py2448 part: Link to a Part object (may be null)STRING
HIGHsrc/backend/InvenTree/order/models.py2617 shipment_date: Date this shipment was "shipped" (or null)STRING
HIGHsrc/backend/InvenTree/order/models.py3987 part: Link to a Part object (may be null)STRING
HIGHsrc/backend/InvenTree/part/models.py494 default_location: Where the item is normally stored (may be null)STRING
HIGHsrc/backend/InvenTree/part/test_pricing.py363 # Cost is still null, as the order is not completeCOMMENT
HIGHsrc/backend/InvenTree/part/test_pricing.py374 # Cost is still null, as the lines have not been receivedCOMMENT
HIGHsrc/backend/InvenTree/stock/models.py3064 location: Destination location (cannot be null)STRING
HIGHsrc/backend/InvenTree/stock/models.py3729 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.ts405 ).toHaveAttribute('placeholder', expectedPrice.toString(), {CODE
LOWsrc/frontend/tests/pages/pui_sales.spec.ts460 ).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.py94 '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.py370 ['Test Email 1', 'This is a test email.', 'abc@example.org', threshold_low],CODE
LOWsrc/backend/InvenTree/InvenTree/test_tasks.py374 '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 Vocabulary12 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMsrc/backend/InvenTree/order/api.py2501 """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/plugin/installer.py263 # Ignore url and just use default indexCOMMENT
LOWsrc/backend/InvenTree/users/models.py60 # we can just call .save() nowCOMMENT
LOWsrc/backend/InvenTree/report/templatetags/report.py617 # If the base URL is not set, just return the textCOMMENT
LOWsrc/backend/InvenTree/report/templatetags/report.py1022 # If the number cannot be converted to a Decimal, just return the original valueCOMMENT
LOWsrc/backend/InvenTree/part/test_api.py3331 # We should be able to filter the API list to just return this new partCOMMENT
LOWsrc/backend/InvenTree/InvenTree/tasks.py679 # otherwise they just create extra noiseCOMMENT
LOWsrc/backend/InvenTree/InvenTree/helpers.py425 # If we cannot match the regex, then simply return the provided valueCOMMENT
LOWsrc/backend/InvenTree/InvenTree/helpers.py744 # 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.py2403 def update_pricing(self) -> None:CODE
LOWsrc/backend/InvenTree/plugin/events.py20__all__ = [CODE
LOWsrc/backend/InvenTree/plugin/__init__.py7__all__ = [CODE
LOWsrc/backend/InvenTree/plugin/mixins/__init__.py28__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__.py21__all__ = [CODE
LOWsrc/backend/InvenTree/part/models.py320 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.py19 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.py1003CODE
LOWtasks.py1121CODE
LOWtasks.py1210CODE
LOWtasks.py1772CODE
LOWtasks.py1856CODE
LOWsrc/backend/InvenTree/report/templatetags/report.py804CODE
LOWsrc/backend/InvenTree/report/templatetags/report.py990CODE
LOWsrc/backend/InvenTree/InvenTree/middleware.py209CODE
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.py631 The purpose of this function is to provide "seamless" math operations in templates,STRING