diff --git a/scripts/lib/qualityBaseline.json b/scripts/lib/qualityBaseline.json index fe51488c7..a2dc88af8 100644 --- a/scripts/lib/qualityBaseline.json +++ b/scripts/lib/qualityBaseline.json @@ -1 +1,1568 @@ -[] +[ + { + "rule": "complexity", + "file": "src/agent/cli/commands/animate.ts", + "symbol": "Async function 'runAnimate'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/cli/commands/evaluate.ts", + "symbol": "Async arrow function", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/cli/commands/evaluate.ts", + "symbol": "Async function 'evaluateAndBuildScript'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/cli/commands/evaluate.ts", + "symbol": "Async function 'evaluateWithEnvelope'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/cli/commands/export.ts", + "symbol": "Async function 'exportPartsScript'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/cli/commands/export.ts", + "symbol": "Async function 'trustedManifestPath'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/geometry2d.ts", + "symbol": "Function 'recoverArcs'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/geometry2d.ts", + "symbol": "Function 'splitAtJunctions'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/reconstructPhases.ts", + "symbol": "Function 'applyRadialCallouts'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/reconstructPhases.ts", + "symbol": "Function 'collectDimensionEdges'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/reconstructPhases.ts", + "symbol": "Function 'resolveHoleExtent'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/reconstructSolver.ts", + "symbol": "Function 'levelNamer'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/sheet.ts", + "symbol": "Function 'buildLinearDimensions'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/drawing/sheet.ts", + "symbol": "Function 'readTitleBlock'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/addPathSpline.ts", + "symbol": "Function 'addPathSpline'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/addPathSpline.ts", + "symbol": "Function 'consumeLexicalContext'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/assemblySourceEdits.ts", + "symbol": "Function 'addTransmissionSource'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/removeFeature.ts", + "symbol": "Function 'scanLineForTopLevelReturn'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/setParamValue.ts", + "symbol": "Function 'scanArgEnd'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/edits/shapeDraft.ts", + "symbol": "Function 'shapeDraftEdit'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/captureAnimation.ts", + "symbol": "Async function 'captureAnimationTool'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/designLoop.ts", + "symbol": "Function 'visualReviewFacts'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/designLoop.ts", + "symbol": "Function 'weakVisualCheckEvidence'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/dfmPreflight.ts", + "symbol": "Async function 'dfmPreflightTool'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/diffGeometry.ts", + "symbol": "Async function 'diffGeometryTool'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/diffGeometry.ts", + "symbol": "Async function 'evaluateSide'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/drawingToCad.ts", + "symbol": "Async function 'drawingToCadTool'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/evaluateQuery.ts", + "symbol": "Async function 'evaluateQueryTool'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/evaluateScript.ts", + "symbol": "Async function 'evaluateScriptTool'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/findPart.ts", + "symbol": "Async function 'findPartTool'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/getFaceLineage.ts", + "symbol": "Async function 'getFaceLineageTool'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/inspectRobot.ts", + "symbol": "Async function 'inspectRobotTool'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/listAssemblies.ts", + "symbol": "Function 'summarizeAssemblies'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/listFaces.ts", + "symbol": "Async function 'listFacesTool'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/listFaces.ts", + "symbol": "Function 'summarizeLineage'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/repairScript.ts", + "symbol": "Async function 'repairScriptTool'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/resolveTopoRef.ts", + "symbol": "Async function 'resolveTopoRefTool'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/reviewPaint.ts", + "symbol": "Async function 'reviewPaintPeekLatestTool'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/mcp/tools/solveMates.ts", + "symbol": "Async function 'solveMatesTool'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/analysis.ts", + "symbol": "Function 'classifyRegions'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/emit.ts", + "symbol": "Function 'emitOp'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/geom.ts", + "symbol": "Function 'fitCircle2D'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/planPhases/body.ts", + "symbol": "Arrow function", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/planPhases/body.ts", + "symbol": "Function 'buildFaceBook'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/planPhases/ops.ts", + "symbol": "Function 'emitCutoutOps'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/planPhases/runs.ts", + "symbol": "Function 'decomposeRun'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/profileFit.ts", + "symbol": "Function 'fitGuidedLoop'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/profileParams.ts", + "symbol": "Function 'paramProfile'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/profileParams.ts", + "symbol": "Function 'rectilinearCorners'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/reconstruct.ts", + "symbol": "Async function 'reconstructFromSoup'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/segment.ts", + "symbol": "Function 'adoptFragments'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/segment.ts", + "symbol": "Function 'fitCylinder'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/segment.ts", + "symbol": "Function 'growPlanes'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/reconstruct/segment.ts", + "symbol": "Function 'segmentMesh'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/render/captureAnimation.ts", + "symbol": "Async function 'captureAnimation'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/agent/repair/candidates.ts", + "symbol": "Function 'recentreEmbossAnchor'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/agent/repair/candidates.ts", + "symbol": "Function 'recentreHoleOnFace'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/agent/repair/trace.ts", + "symbol": "Function 'computeRepairRegion'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/review/reviewPipeline.ts", + "symbol": "Function 'buildSuggestedRepairPrompt'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/script-runtime/connectorManifestExport.ts", + "symbol": "Function 'sceneToConnectorManifest'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/agent/script-runtime/exportDrawing.ts", + "symbol": "Async function 'exportSvgDrawing'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/agent/vision/opencvBackend.ts", + "symbol": "Async function 'extractSilhouettePolyline'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/funnel/hooks/useGeneration.ts", + "symbol": "Async arrow function", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/funnel/lib/previewClient.ts", + "symbol": "Function 'parseBlock'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/backendMesh.ts", + "symbol": "Function 'meshShapeForExport'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/drawingAnnotations.ts", + "symbol": "Arrow function", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/drawingAuto/collectPhases.ts", + "symbol": "Function 'collectHolePositionDimensions'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/drawingAuto/placePhases.ts", + "symbol": "Function 'placeRadiusAndChamferNotes'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/drawingFeatures.ts", + "symbol": "Function 'recogniseChamfers'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/edgeSelection.ts", + "symbol": "Function 'resolveEdgesRef'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/flattenPattern.ts", + "symbol": "Function 'flattenPattern'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/holeLowerer.ts", + "symbol": "Function 'lowerHoles'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/meshing.ts", + "symbol": "Function 'meshFaceToGeometry'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/meshing.ts", + "symbol": "Function 'tryExtractCylinderFromFace'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/meshing.ts", + "symbol": "Function 'tryExtractPlaneFromPlaneRecord'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/meshing.ts", + "symbol": "Function 'tryExtractPlaneViaReplicadHelper'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/meshing.ts", + "symbol": "Function 'tryGetVolume'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/occtBackend.ts", + "symbol": "Method 'findCanonicalFaceHash'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/pathNurbsLowerer.ts", + "symbol": "Function 'processCommand'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/sketchToDrawing.ts", + "symbol": "Function 'drawingForLoop'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/backends/occt/surfaceQuality.ts", + "symbol": "Function 'inspectContinuity'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/kernel/fea/runFea.ts", + "symbol": "Function 'computeFeaSummary'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/kernel/import/contourAssembly.ts", + "symbol": "Function 'chainLoops'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/kernel/import/importSvg.ts", + "symbol": "Function 'emitPath'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/kernel/import/importSvg.ts", + "symbol": "Function 'importSvgText'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/kernel/import/importSvg.ts", + "symbol": "Method 'number'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/kernel/import/importSvgParsing.ts", + "symbol": "Function 'parseTransform'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/kernel/naming/queryEvaluator.ts", + "symbol": "Function 'evalAst'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/kernel/naming/resolveFaceRef.ts", + "symbol": "Function 'resolveCreated'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/apiShapeMethods.ts", + "symbol": "Arrow function", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/apiSurfaceMethods.ts", + "symbol": "Method 'variableSweep'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/connectorTopology.ts", + "symbol": "Function 'findEdgeByName'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/assembly.ts", + "symbol": "Function 'lowerAssemblyModel'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/assembly.ts", + "symbol": "Function 'warnPlacementIgnoredByMateFk'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/curves.ts", + "symbol": "Function 'resolveVariableSweepSpine'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/edgeFeatures.ts", + "symbol": "Function 'applyVariableEdgeFeature'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/edgeFeatures.ts", + "symbol": "Function 'lowerFillet'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/loft.ts", + "symbol": "Async function 'loftSketchSections'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/lowerers/mirrorPattern.ts", + "symbol": "Function 'lowerPattern'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/projectCurveLowerer.ts", + "symbol": "Async function 'lowerProjectCurve'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/backends/occt/variableSweepLowerer.ts", + "symbol": "Function 'lowerVariableSweep'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/assemblyFeatureRecords.ts", + "symbol": "Function 'validateSolvedAssemblyPoses'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/assemblyJoints.ts", + "symbol": "Function 'recordMate'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/assemblyMateCapacity.ts", + "symbol": "Function 'validateMateCapacityOptions'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/assemblyParts.ts", + "symbol": "Function 'recordSubAssembly'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/assemblySolve.ts", + "symbol": "Function 'checkPoseLimits'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/authoringFeatureRecords.ts", + "symbol": "Function 'buildEmbossTextFeatureSpec'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/authoringFeatureRecords.ts", + "symbol": "Function 'normalizeFdmSettings'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/authoringFeatureRecords.ts", + "symbol": "Function 'validateDfmSpecChannelEntries'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/authoringFeatureRecords.ts", + "symbol": "Function 'validateDfmSpecCheckFields'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/featureMeshing.ts", + "symbol": "Function 'buildHelixTubeMesh'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/featureMeshingPhases.ts", + "symbol": "Function 'computeConstructionClosure'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/featureMeshingPhases.ts", + "symbol": "Function 'detectAttributeShadowing'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/featureMeshingPhases.ts", + "symbol": "Function 'emitSceneBackendFanout'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/forwardKinematics.ts", + "symbol": "Function 'forwardKinematics'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/imageDimensions.ts", + "symbol": "Function 'parseJpeg'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/planarUv.ts", + "symbol": "Function 'generatePlanarUVs'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/sketch.ts", + "symbol": "Method 'loft'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/sketch.ts", + "symbol": "Method 'spline'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/sketchReflect.ts", + "symbol": "Arrow function", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/virtualFeatureRecords.ts", + "symbol": "Function 'buildRenderEnvironmentFeatureSpec'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/capture/virtualFeatureRecords.ts", + "symbol": "Function 'validateAnimationTracks'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/compute/recomputeEngine.ts", + "symbol": "Async method 'lowerAndEmit'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/compute/recomputeEngine.ts", + "symbol": "Async method 'processRecord'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/directEdit/planDrag.ts", + "symbol": "Function 'planDrag'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/export/sdformat/sdfSerializer.ts", + "symbol": "Async function 'sdfSerialize'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/export/sdformat/sdfSerializer.ts", + "symbol": "Function 'urdfInertialToSdf'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/export/urdf/urdfSerializer.ts", + "symbol": "Async function 'urdfSerialize'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/export/usd/usdIsaacSerializer.ts", + "symbol": "Arrow function", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/export/usd/usdIsaacSerializer.ts", + "symbol": "Async function 'buildLinkBlocks'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/export/usd/usdIsaacSerializer.ts", + "symbol": "Function 'materialBlock'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/joints/supportedServoRevolute.ts", + "symbol": "Function 'preflightSupportedServoRevolute'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/jointAxisBinding.ts", + "symbol": "Async function 'validateJointAxisBindingWithCache'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/jointTopology.ts", + "symbol": "Function 'reviewJointTopology'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/jointVisualExposure.ts", + "symbol": "Async function 'validateJointVisualExposure'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/jointVisualExposure.ts", + "symbol": "Function 'inferPinRadius'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/matePhysicalRealization.ts", + "symbol": "Async function 'validateMatePhysicalRealization'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/matePhysicalRealization.ts", + "symbol": "Function 'analyzeMate'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/matePhysicalRealization.ts", + "symbol": "Function 'inferPinRadius'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/mechanicalIntent.ts", + "symbol": "Async function 'checkRequiredSupport'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/mechanicalPlausibility.ts", + "symbol": "Function 'analyzeDisconnectedMesh'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/mechanicalTransmission.ts", + "symbol": "Async function 'reviewMechanicalTransmission'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/mechanicalTransmission.ts", + "symbol": "Function 'pointTriangleDistanceSquared'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCase.ts", + "symbol": "Async function 'reviewCertifiedJointLoads'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCaseJointReactionsPhases.ts", + "symbol": "Async function 'resolveSolvedLoads'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCaseJointReactionsPhases.ts", + "symbol": "Async function 'validateSolvedContact'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCaseStatics.ts", + "symbol": "Async function 'reviewPhysicalUseCaseStatics'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCaseStatics.ts", + "symbol": "Function 'validateActuatorLimit'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/physicalUseCaseStaticsPhases.ts", + "symbol": "Function 'resolveStaticLoads'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/poseEnvelope.ts", + "symbol": "Async function 'reviewPoseEnvelope'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/poseEnvelope.ts", + "symbol": "Function 'buildPoseEnvelopeSamples'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/solver.ts", + "symbol": "Function 'jointTransformForMate'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/mates/solver.ts", + "symbol": "Function 'mateFk'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/parts/fetchPart.ts", + "symbol": "Async function 'fetchPartHost'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/clearance.ts", + "symbol": "Function 'checkClearance'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/fdmOrientation.ts", + "symbol": "Function 'anchoredChord'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/meshBvh.ts", + "symbol": "Method 'raycast'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/minWall.ts", + "symbol": "Function 'checkMinWall'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/voidTopology.ts", + "symbol": "Function 'countMouths'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/dfm/voxelGrid.ts", + "symbol": "Function 'voxelize'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/explodedPoses.ts", + "symbol": "Function 'mateAxisOffsets'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/jointMeshContinuity.ts", + "symbol": "Function 'collectMateRows'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/mechanismTruth.ts", + "symbol": "Function 'buildPartAdjacency'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/meshDeviation.ts", + "symbol": "Function 'pointTriangleDistanceSq'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/meshDeviation.ts", + "symbol": "Method 'nearestSq'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/modeling/runtime/tendonBodyIntersect.ts", + "symbol": "Function 'checkTendonBodyIntersectAtPose'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/server/middleware/sourceEndpoint.ts", + "symbol": "Async function 'sourceHandler'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/shared/codeGeneration/codeAnalysis.ts", + "symbol": "Function 'classifyVariable'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/shared/codeGeneration/stripTypeScript.ts", + "symbol": "Arrow function", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/shared/codeGeneration/stripTypeScript.ts", + "symbol": "Arrow function#2", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/shared/codeGeneration/stripTypeScript.ts", + "symbol": "Arrow function#3", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/shared/codeGeneration/stripTypeScript.ts", + "symbol": "Arrow function#4", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/shared/intent/embossTextRecord.ts", + "symbol": "Function 'isEmbossTextMetadata'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/shared/runtime/resolveParams.ts", + "symbol": "Function 'walkResolve'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/shared/worker/geometryHelpers.ts", + "symbol": "Arrow function", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/shared/worker/v01ApiShim.ts", + "symbol": "Function 'bboxOf'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/studio/AgentComposer.tsx", + "symbol": "Function 'AgentComposer'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/studio/StagedEditSlot.tsx", + "symbol": "Function 'StagedEditContextDetails'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/studio/adapters/featureRecordsToCounts.ts", + "symbol": "Function 'addRecordKeys'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/studio/adapters/featureRecordsToMates.ts", + "symbol": "Function 'jointPrimitiveToSnapshot'", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/studio/components/Layout/SidePanel.tsx", + "symbol": "Function 'SidePanel'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/studio/components/Layout/StatusBar.tsx", + "symbol": "Function 'StatusBar'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/studio/components/inputs/useNumericScrub.ts", + "symbol": "Function 'useNumericScrub'", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/studio/components/viewer/directEditTarget.ts", + "symbol": "Function 'mateGraphDrivesPart'", + "value": 17 + }, + { + "rule": "complexity", + "file": "src/studio/context/geometry/types.ts", + "symbol": "Function 'mergePhysicalUseCaseReview'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/studio/context/workbenchState.ts", + "symbol": "Function 'workbenchReducer'", + "value": 19 + }, + { + "rule": "complexity", + "file": "src/studio/hooks/useFaceSelection.ts", + "symbol": "Arrow function", + "value": 20 + }, + { + "rule": "complexity", + "file": "src/studio/hooks/viewer/useDirectEditDrag.ts", + "symbol": "Async arrow function", + "value": 16 + }, + { + "rule": "complexity", + "file": "src/studio/routes/-ProjectClaimControl.tsx", + "symbol": "Function 'ProjectClaimControl'", + "value": 18 + }, + { + "rule": "complexity", + "file": "src/studio/routes/GenerateHero.tsx", + "symbol": "Function 'GenerateHero'", + "value": 16 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/cli/commands/render.ts", + "symbol": "Function 'renderCommand'", + "value": 133 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/mcp/tools/dfmPreflight.ts", + "symbol": "Async function 'dfmPreflightTool'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/mcp/tools/repairScript.ts", + "symbol": "Async function 'repairScriptTool'", + "value": 136 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/reconstruct/planPhases/body.ts", + "symbol": "Function 'buildBody'", + "value": 139 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/reconstruct/reconstruct.ts", + "symbol": "Function 'buildMeshLedger'", + "value": 122 + }, + { + "rule": "max-lines-per-function", + "file": "src/agent/render/captureAnimationPhases.ts", + "symbol": "Async function 'runFrameLoopPhase'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/funnel/components/GallerySection.tsx", + "symbol": "Function 'GallerySection'", + "value": 116 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/drawingAnnotations.ts", + "symbol": "Function 'renderAnnotations'", + "value": 118 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/drawingSections.ts", + "symbol": "Function 'renderObliqueSection'", + "value": 105 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/drawingSections.ts", + "symbol": "Function 'renderSections'", + "value": 108 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/edgeSelectionLabels.ts", + "symbol": "Function 'labelToEdgeQuery'", + "value": 107 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/flattenPattern.ts", + "symbol": "Function 'flattenPattern'", + "value": 112 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/backends/occt/pathNurbsLowerer.ts", + "symbol": "Function 'buildNurbsSketchOnPlane'", + "value": 143 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/import/importSvg.ts", + "symbol": "Function 'emitPath'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/naming/query.ts", + "symbol": "Function 'makeQuery'", + "value": 106 + }, + { + "rule": "max-lines-per-function", + "file": "src/kernel/naming/resolveTopoRef.ts", + "symbol": "Function 'resolveTopoRef'", + "value": 103 + }, + { + "rule": "max-lines-per-function", + "file": "src/kinematic/checkLoadCapacity.ts", + "symbol": "Function 'analyzeLoadedPart'", + "value": 103 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/apiCaptureMethods.ts", + "symbol": "Function 'makeCaptureMethods'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/apiSurfaceMethods.ts", + "symbol": "Function 'makeSweepMethods'", + "value": 117 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/backends/occt/lowerers/edgeFeatures.ts", + "symbol": "Function 'lowerFillet'", + "value": 121 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/backends/occt/lowerers/mirrorPattern.ts", + "symbol": "Function 'lowerPattern'", + "value": 109 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/backends/occt/sheetMetalLowerer.ts", + "symbol": "Function 'lowerSheetMetalBend'", + "value": 127 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/capture/assemblyParts.ts", + "symbol": "Function 'makePartRef'", + "value": 134 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/capture/featureMeshing.ts", + "symbol": "Async function 'meshFeaturesPerFeature'", + "value": 114 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/capture/forwardKinematics.ts", + "symbol": "Function 'forwardKinematics'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/capture/sketch.ts", + "symbol": "Method 'spline'", + "value": 117 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/capture/sketchReflect.ts", + "symbol": "Function 'reflectSketchCommands'", + "value": 121 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/constraints/sketchConverter.ts", + "symbol": "Function 'convertSketchEntitiesToConstraints'", + "value": 111 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/export/urdf/urdfSerializer.ts", + "symbol": "Async function 'urdfSerialize'", + "value": 128 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/export/usd/usdIsaacSerializer.ts", + "symbol": "Function 'buildJointBlocks'", + "value": 102 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/joints/supportedServoRevolute.ts", + "symbol": "Function 'preflightSupportedServoRevolute'", + "value": 119 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/mates/jointVisualExposure.ts", + "symbol": "Function 'measureJointVisuals'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/mates/physicalUseCase.ts", + "symbol": "Async function 'reviewCertifiedJointLoads'", + "value": 133 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/parts/fetchPart.ts", + "symbol": "Async function 'fetchPartFromUrlHost'", + "value": 104 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/parts/fetchPart.ts", + "symbol": "Async function 'fetchPartHost'", + "value": 106 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/runtime/dfm/clearance.ts", + "symbol": "Function 'checkClearance'", + "value": 112 + }, + { + "rule": "max-lines-per-function", + "file": "src/modeling/runtime/dfm/fdmOrientation.ts", + "symbol": "Function 'analyzeBuildDirection'", + "value": 139 + }, + { + "rule": "max-lines-per-function", + "file": "src/server/sessionPool.ts", + "symbol": "Function 'createSessionPool'", + "value": 144 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/AgentComposer.tsx", + "symbol": "Function 'AgentComposer'", + "value": 133 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/StudioShell.tsx", + "symbol": "Function 'StudioShell'", + "value": 140 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/Toolbar.tsx", + "symbol": "Function 'Toolbar'", + "value": 121 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/Dialogs/ProjectManagerDialog.tsx", + "symbol": "Function 'ProjectManagerDialog'", + "value": 142 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/Layout/Header.tsx", + "symbol": "Function 'Header'", + "value": 117 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/Layout/UserMenu.tsx", + "symbol": "Function 'UserMenuInner'", + "value": 122 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/SceneBrowser.tsx", + "symbol": "Arrow function", + "value": 129 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/Viewer.tsx", + "symbol": "Function 'Viewer'", + "value": 123 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/animation/useAnimationPlayback.ts", + "symbol": "Function 'useAnimationPlayback'", + "value": 142 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/demoPlayer/AnimationEngine.ts", + "symbol": "Method 'enqueue'", + "value": 117 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/demoPlayer/demoPlayerApiFactory.ts", + "symbol": "Function 'captureInspectionChannels'", + "value": 112 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/demoPlayer/useDemoAutoLoad.ts", + "symbol": "Function 'useDemoAutoLoad'", + "value": 127 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/inputs/NumericScrubInput.tsx", + "symbol": "Function 'NumericScrubInput'", + "value": 105 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/ViewerScene.tsx", + "symbol": "Function 'ViewerScene'", + "value": 113 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/controllers/CameraHandler.tsx", + "symbol": "Function 'CameraHandler'", + "value": 144 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/layers/ParametricLayer.tsx", + "symbol": "Function 'ParametricLayer'", + "value": 106 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/overlays/SectionPanel.tsx", + "symbol": "Function 'SectionPanel'", + "value": 149 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/overlays/ViewGizmo.tsx", + "symbol": "Function 'ViewGizmo'", + "value": 104 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/components/viewer/overlays/useMarkingCanvas.ts", + "symbol": "Function 'useMarkingCanvas'", + "value": 119 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/context/CodeContext.tsx", + "symbol": "Function 'CodeProvider'", + "value": 135 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/context/ProjectContext.tsx", + "symbol": "Function 'ProjectProvider'", + "value": 135 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/context/SelectionContext.tsx", + "symbol": "Function 'SelectionProvider'", + "value": 142 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/context/geometry/useRelowerSubscription.ts", + "symbol": "Function 'useRelowerSubscription'", + "value": 102 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/features-ui/ai/AIAssistant.tsx", + "symbol": "Function 'AIAssistant'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/features-ui/ai/useAIAssistantChat.ts", + "symbol": "Function 'useAIAssistantChat'", + "value": 123 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/hooks/useRecomputeResult.ts", + "symbol": "Function 'useRecomputeResult'", + "value": 103 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/hooks/viewer/useDirectEditDrag.ts", + "symbol": "Function 'useDirectEditDrag'", + "value": 101 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/routes/-ServerRevisionHistory.tsx", + "symbol": "Function 'ServerRevisionHistory'", + "value": 102 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/routes/-useProjectLiveUpdates.ts", + "symbol": "Function 'useProjectLiveUpdates'", + "value": 103 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/routes/billing.tsx", + "symbol": "Function 'BillingPage'", + "value": 144 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/routes/embed.$slug.tsx", + "symbol": "Function 'EmbedPage'", + "value": 141 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/routes/me.tsx", + "symbol": "Function 'MePage'", + "value": 115 + }, + { + "rule": "max-lines-per-function", + "file": "src/studio/tabs/SceneTab.tsx", + "symbol": "Function 'SceneTab'", + "value": 138 + } +] diff --git a/scripts/lib/qualityRatchet.ts b/scripts/lib/qualityRatchet.ts index e8aef63a9..610177ef0 100644 --- a/scripts/lib/qualityRatchet.ts +++ b/scripts/lib/qualityRatchet.ts @@ -36,8 +36,8 @@ export interface Finding { } export const RATCHET_RULES = { - complexity: ['error', 20], - 'max-lines-per-function': ['error', { max: 150, skipBlankLines: true, skipComments: true }], + complexity: ['error', 15], + 'max-lines-per-function': ['error', { max: 100, skipBlankLines: true, skipComments: true }], 'max-lines': ['error', { max: 800, skipBlankLines: true, skipComments: true }], } as const;