generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Detect more deprecated renderer declarations
When a function is used, it can not have an apiVersion defined, so the declaration is deprecated and should be detected as such.
- Loading branch information
Showing
8 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
sap.ui.define(["sap/ui/core/Control", "./8ControlRenderer"], function (Control, Renderer) { | ||
var myControl = Control.extend("mycomp.myControl", { | ||
metadata: {}, | ||
renderer: Renderer.render, | ||
}); | ||
|
||
return myControl; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sap.ui.define(["sap/ui/core/Control"], function (Control) { | ||
function render(oRm, oMyControl) {} | ||
const Renderer = {render}; | ||
|
||
var myControl = Control.extend("mycomp.myControl", { | ||
metadata: {}, | ||
renderer: Renderer.render, | ||
}); | ||
|
||
return myControl; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
sap.ui.define(["sap/ui/core/Control", "./2ControlRenderer"], function (Control, Renderer) { | ||
var myControl = Control.extend("mycomp.myControl", { | ||
metadata: {}, | ||
renderer: Renderer.render, | ||
}); | ||
|
||
return myControl; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.