ui5-migration icon indicating copy to clipboard operation
ui5-migration copied to clipboard

Provide machine-readable output for analysis

Open tobiasso85 opened this issue 5 years ago • 1 comments

Current output:

$ ui5-migration analyze webapp
info cli Using ignore file: .gitignore
info cli Searching in folder 'webapp'
info cli Searching for files to migrate ...
info cli Migrating: 19 files:
info cli webapp\Component.js
info cli webapp\control\ChartControl.js
info cli webapp\control\ChartControlRenderer.js
info cli webapp\controller\App.controller.js
info cli webapp\control\MyControl.js
info cli webapp\controller\Details.controller.js
info cli webapp\control\MyControlRenderer.js
info cli webapp\controller\MyLegacy.controller.js
info cli webapp\test\integration\AllJourneys.js
info cli webapp\test\testsuite.qunit.js
info cli webapp\test\integration\FilterJourney.js
info cli webapp\test\integration\arrangements\Startup.js
info cli webapp\test\unit\AllTests.js
info cli webapp\test\integration\opaTests.qunit.js
info cli webapp\test\integration\SearchJourney.js
info cli webapp\test\unit\unitTests.qunit.js
info cli webapp\test\unit\controller\App.controller.js
info cli webapp\test\integration\pages\App.js
info cli webapp\test\integration\TodoListJourney.js
info cli Files: 19
info cli Tasks: amdCleanup, addMissingDependencies, addRenderers, fixTypeDependency, replaceGlobals, variableNamePrettifier
error addRenderers webapp\control\MyControl.js:1:0 detected missing dependency to Renderer module
warning addRenderers webapp\controller\MyLegacy.controller.js:1:1 could not find sap.ui.define call
warning fixTypeDependency webapp\controller\MyLegacy.controller.js:1:1 could not find sap.ui.define call
error amdCleanup webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error addMissingDependencies webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error addRenderers webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error fixTypeDependency webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error replaceGlobals webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error variableNamePrettifier webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
error variableNamePrettifier webapp\test\unit\AllTests.js:1:1 Analysis failed. Error: Cannot read property 'type' of undefined
info cli Finished in 1s 945966200ms

Report for cli:
info files: 19
info files modified: 0

Report for amdCleanup:
info replacementsFound: 5
info amdStructureCreated: 1

Report for addMissingDependencies:
info replacementsFound: 1

Report for fixTypeDependency:
info Found missing module: 1
info Added library dependency: sap/ui/core/library: 1

Report for replaceGlobals:
info callsToReplace: 4

Report for variableNamePrettifier:
info replacementsFound: 0

A machine-readable output should contain:

  • file name (absolute)
  • finding location (line, column)

tobiasso85 avatar Jul 02 '19 13:07 tobiasso85