Build and deploy / test-python (push) Successful in 11m12s
Build and deploy / test-js (push) Successful in 53s
Build and deploy / lint-python (push) Successful in 3m56s
Build and deploy / lint-js (push) Successful in 3m1s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 3m58s
Prepare la scission a venir entre l'editeur Jeu 2D et le futur editeur Support de formation (voir docs/plan/PLAN.md), sans toucher a l'architecture en couches existante : - screens/ renomme en game_engine/ (nom clair pour le moteur du jeu 2D, avant l'arrivee d'un second "moteur" cote document) : ~85 imports corriges, contrat import-linter mis a jour, meme forme de couches. - routes/, scripts/, static/, templates/, tests/ : tout ce qui est propre au jeu 2D deplace dans un sous-dossier game/ de chacun (routes/game/, static/game/, templates/game/, tests/game/, scripts/game/) ; ce qui est partage par le site (auth, onboarding, dashboard, uploads, db/) reste a la racine de chaque dossier. Un sous-dossier document/ (vide) cree dans chacun pour le futur chantier. - styles/ volontairement inchange : les 3 fichiers sources sont concatenes en un seul static/style.css charge par tout le site, scinder leur CONTENU (editeur vs partage) serait un refactor CSS distinct, pas un deplacement mecanique. - Chaine d'export SCORM (publish/build_scorm_package.py) mise a jour en profondeur : copie des assets, URLs d'icones relatives a static/style.css (qui ne bouge pas), manifeste, wrapper SCORM. - Deux regressions d'un sweep de renommage anterieur corrigees au passage (screens.js/screens/scene-objects incorrectement convertis en game_engine.js/game_engine/scene-objects dans des commentaires). - Effet de bord Windows decouvert et corrige : git mv + Path.write_text convertissent des fichiers en CRLF (core.autocrlf=true) - ~189 fichiers normalises en LF. - .eslintrc.json/package.json : uniquement les chemins de glob mis a jour (static/game/js/...) ; la preparation eslint-plugin-unicorn du lot 7 reste volontairement non committee (package-lock.json restaure a la version precedente). Verifications : ruff, mypy --strict (391 fichiers), vulture, bandit, lint-imports tous verts ; 591/591 tests Python, 276/276 tests JS ; demarrage serveur + requetes HTTP manuelles confirmant que les assets deplaces repondent en 200 au nouvel emplacement et 404 a l'ancien. SKIP=djlint : backlog H021 (styles inline) deja documente comme dette assumee dans CODE_QUALITY.md section 6, aucun template touche par ce commit au-dela d'un deplacement de fichier. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
192 lines
8.7 KiB
JSON
192 lines
8.7 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": ["airbnb-base"],
|
|
"plugins": ["unused-imports"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2021,
|
|
"sourceType": "script"
|
|
},
|
|
"rules": {
|
|
"max-len": ["error", 120, 2, {
|
|
"ignoreUrls": true,
|
|
"ignoreComments": false,
|
|
"ignoreRegExpLiterals": true,
|
|
"ignoreStrings": true,
|
|
"ignoreTemplateLiterals": true
|
|
}],
|
|
"unused-imports/no-unused-imports": "error",
|
|
"unused-imports/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "after-used",
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^(_|addClauseRow|addPersonnageCommandExtraRow|applyCameraSize|bindClicks|bindHeldKeyTriggers|bindHoverTexts|bindHoverTriggers|bindKeyboardTriggers|bindPropsAutosave|closeLeftPanel|closePropsPanel|collisionWizardAssetNext|collisionWizardAttendreNext|collisionWizardChainDone|collisionWizardChooseAction|collisionWizardChooseBranch|collisionWizardChooseTrigger|collisionWizardConditionNext|collisionWizardIndicationNext|collisionWizardObjectTargetChosen|collisionWizardValeurChosen|collisionWizardVariableNext|collisionWizardVideoModeChosen|confirmDeleteElement|createGlobalVariable|deleteGlobalVariable|deleteSceneObject|deleteUserAsset|forgeShowTab|iaChatDeleteConversation|iaChatInputKeydown|iaChatSelectConversation|initSceneBuilderPanel|injectCustomKeyframes|onCanvasDragOver|onCanvasDrop|onCollisionBoxMouseDown|onCollisionBoxResizeMouseDown|onElementMouseDown|onFilterValueFieldChange|onFilterValueModeChange|onFilterValueObjChange|onFilterValueVarChange|onGalleryTileDragStart|onResizeMouseDown|onSceneObjectMouseDown|onSceneObjectResizeMouseDown|openAddTriggerModal|openLeftPanel|openPropsPanel|openScreenAddTriggerModal|openScreenTriggerWizard|openTriggerWizard|reclassifyUserAsset|refreshRuntimeData|restartPersonnageIdlePreview|restoreFloatPanelState|runScreenHeldKeyTriggers|runScreenShowTriggers|runScreenTimerTriggers|saveDialogueBoxStyle|saveGlobalVariable|saveSceneObjectName|saveSceneObjectRole|screenIndexById|screenTriggerAppendLeaf|screenTriggerDeleteAt|screenTriggerOpenAppendActionModal|selectQuizBoxDialogTemplate|selectQuizBoxPageTemplate|showScreen|swapPersonnageCharacter|swapSceneObjectCharacter|switchBuilderTab|syncAlign|toggleDashCreate|triggerAppendLeaf|triggerClickObjectCard|triggerDeleteTrigger|triggerInlineAddBubble|triggerInlineAddQuestion|triggerInlineDeleteBubble|triggerInlineSetBubbleAudio|triggerInlineSetBubbleSpeaker|triggerInlineSetQuestionChoiceCount|triggerInlineSetQuestionChoiceText|triggerInlineSetQuestionCorrectIndex|triggerInlineSetQuestionRewardAmount|triggerInlineUpdateBubbleText|triggerInlineUpdateQuestionText|triggerMoveChainAction|triggerOpenAppendActionModal|triggerRemoveChainAction|triggerSelectObject|uploadUserAsset)$"
|
|
}
|
|
],
|
|
"no-unused-vars": "off",
|
|
"no-underscore-dangle": "off",
|
|
"func-names": "off",
|
|
"no-param-reassign": "off",
|
|
"no-cond-assign": ["error", "except-parens"],
|
|
"no-empty": ["error", { "allowEmptyCatch": true }],
|
|
"guard-for-in": "off",
|
|
"no-unused-expressions": "off",
|
|
"no-return-assign": "off",
|
|
"consistent-return": "off",
|
|
"no-bitwise": "off",
|
|
"no-plusplus": "off",
|
|
"no-restricted-syntax": "off",
|
|
"prefer-destructuring": "off",
|
|
"no-useless-concat": "off",
|
|
"no-console": "off",
|
|
"no-nested-ternary": "off",
|
|
"no-void": "off",
|
|
"no-continue": "off",
|
|
"implicit-arrow-linebreak": "off",
|
|
"no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true }]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["static/**/__tests__/**/*.test.js"],
|
|
"env": { "node": true, "browser": true },
|
|
"parserOptions": { "sourceType": "script" }
|
|
},
|
|
{
|
|
"files": ["static/game/js/play/**/*.js"],
|
|
"rules": {
|
|
"import/extensions": "off",
|
|
"global-require": "off"
|
|
}
|
|
}
|
|
],
|
|
"globals": {
|
|
"COLLISION_ACTION_LABELS": "readonly",
|
|
"COLLISION_CHAIN_CHOICES": "readonly",
|
|
"COLLISION_TRIGGER_LABELS": "readonly",
|
|
"CONDITION_OPERATOR_LABELS_MAP": "readonly",
|
|
"CURRENT_SCREEN_ID": "readonly",
|
|
"CURRENT_SELECTED_ID": "writable",
|
|
"DATA_OPERATION_LABELS_MAP": "readonly",
|
|
"DEFINITIONS_DATA": "readonly",
|
|
"ELEMENT_ADD_URL": "readonly",
|
|
"ELEMENT_ANIMATIONS_MAP": "readonly",
|
|
"ELEMENT_VISIBILITY_LABELS_MAP": "readonly",
|
|
"FORGE_PLAY_URLS": "readonly",
|
|
"GAME_SLUG": "readonly",
|
|
"GLOBAL_VARIABLE_NAMES": "readonly",
|
|
"SCENE_HEIGHT": "readonly",
|
|
"SCENE_OBJECT_NAMES": "writable",
|
|
"SCENE_OBJECT_NAMES_JSON": "readonly",
|
|
"SCENE_WIDTH": "readonly",
|
|
"SCREEN_EDIT_URL": "readonly",
|
|
"SCREEN_ID": "readonly",
|
|
"SURBRILLANCE_LABELS_MAP": "readonly",
|
|
"USER_ASSETS_OPTIONS": "readonly",
|
|
"VIDEO_MODE_LABELS_MAP": "readonly",
|
|
"_collisionWizard": "writable",
|
|
"_stopPersonnageIdlePreview": "readonly",
|
|
"applyObjectProperty": "readonly",
|
|
"applyOpenRowBindings": "readonly",
|
|
"applySelectionHighlight": "readonly",
|
|
"bindClicks": "readonly",
|
|
"bindHoverTexts": "readonly",
|
|
"bindHoverTriggers": "readonly",
|
|
"bindPropsAutosave": "readonly",
|
|
"clampSceneObjectPosition": "readonly",
|
|
"closeTriggerModal": "readonly",
|
|
"collisionRuleThumbHtml": "readonly",
|
|
"collisionWizardBuildLeafAction": "readonly",
|
|
"compareValues": "readonly",
|
|
"debouncedSubmitPropsForm": "readonly",
|
|
"evaluateConditionClause": "readonly",
|
|
"evaluateConditionNode": "readonly",
|
|
"forgeApplyAddRowActionOffline": "readonly",
|
|
"forgeApplyCtx": "readonly",
|
|
"forgeApplyDataActionOffline": "readonly",
|
|
"forgeApplyScoreActionOffline": "readonly",
|
|
"forgeApplyStatusActionOffline": "readonly",
|
|
"forgeApplyVariableActionOffline": "readonly",
|
|
"forgeAttrString": "readonly",
|
|
"forgeAutoId": "readonly",
|
|
"forgeCollisionRectFromBox": "readonly",
|
|
"forgeComputeNewValue": "readonly",
|
|
"forgeDecodeClauses": "readonly",
|
|
"forgeDialogueBoxState": "readonly",
|
|
"forgeEscapeHtml": "readonly",
|
|
"forgeFilterRepeaterRows": "readonly",
|
|
"forgeFilterRowsByClauses": "readonly",
|
|
"forgeHtmlEscape": "readonly",
|
|
"forgeIsElementVisibleOffline": "readonly",
|
|
"forgeParentFlexDirection": "readonly",
|
|
"forgeQuizBoxState": "readonly",
|
|
"forgeQuizTemplateEffects": "readonly",
|
|
"forgeRecomputeFullPayloadOffline": "readonly",
|
|
"forgeRenderCheckboxOrRadio": "readonly",
|
|
"forgeRenderChildren": "readonly",
|
|
"forgeRenderElementHtml": "readonly",
|
|
"forgeRenderFieldset": "readonly",
|
|
"forgeRenderIcone": "readonly",
|
|
"forgeRenderJauge": "readonly",
|
|
"forgeRenderOnglets": "readonly",
|
|
"forgeRenderOverlay": "readonly",
|
|
"forgeRenderPersonnage": "readonly",
|
|
"forgeRenderRepeater": "readonly",
|
|
"forgeRenderSelect": "readonly",
|
|
"forgeRenderTable": "readonly",
|
|
"forgeResolveFilterValue": "readonly",
|
|
"forgeResolveVariablePath": "readonly",
|
|
"forgeRunCollisionRuleAction": "readonly",
|
|
"forgeRunScreenTriggers": "readonly",
|
|
"forgeScorm2004NotifyQuestionAnswered": "readonly",
|
|
"forgeScormApi": "readonly",
|
|
"forgeShapesOverlap": "readonly",
|
|
"forgeShowDialogueBox": "readonly",
|
|
"forgeShowVideoOverlay": "readonly",
|
|
"forgeStartCollisionRuleControllers": "readonly",
|
|
"forgeStartPersonnageControllers": "readonly",
|
|
"forgeStyleString": "readonly",
|
|
"forgeUpdateAllScoreWidgets": "readonly",
|
|
"forgeVisibleAttrs": "readonly",
|
|
"forgeXapiNotifyDialogueCompleted": "readonly",
|
|
"forgeXapiNotifyQuestionAnswered": "readonly",
|
|
"forgeXapiNotifyScoreChanged": "readonly",
|
|
"forgeXapiNotifyStatusChanged": "readonly",
|
|
"gameData": "writable",
|
|
"goToSelected": "readonly",
|
|
"heldKeys": "readonly",
|
|
"initBuilderPanel": "readonly",
|
|
"initIaTab": "readonly",
|
|
"initSceneBuilderPanel": "readonly",
|
|
"initTriggersTab": "readonly",
|
|
"openPropsPanel": "readonly",
|
|
"openScreenTriggerWizard": "readonly",
|
|
"openTriggerWizard": "readonly",
|
|
"refreshRuntimeData": "readonly",
|
|
"renderCollisionWizardChainStep": "readonly",
|
|
"resolveSpriteFrames": "readonly",
|
|
"restartPersonnageIdlePreview": "readonly",
|
|
"restoreFloatPanelState": "readonly",
|
|
"restoreTreeCollapsedState": "readonly",
|
|
"runActionNode": "readonly",
|
|
"runFlowFrom": "readonly",
|
|
"runScreenHeldKeyTriggers": "readonly",
|
|
"runScreenShowTriggers": "readonly",
|
|
"runScreenTimerTriggers": "readonly",
|
|
"runSpriteAnimation": "readonly",
|
|
"saveGeometry": "readonly",
|
|
"screenIndexById": "readonly",
|
|
"screenTriggerLoadAll": "readonly",
|
|
"screensData": "writable",
|
|
"showScreen": "readonly",
|
|
"startAllPersonnagePreviews": "readonly",
|
|
"stopAllSpriteAnimations": "readonly",
|
|
"submitPropsForm": "readonly",
|
|
"triggerLoadAll": "readonly"
|
|
}
|
|
}
|