Skip to content

Renderer apiVersion seems not to be detected if set separately #607

@jnsttl

Description

@jnsttl

Expected Behavior

Detect that renderer uses apiVersion 2.

Current Behavior

Linter reports "13:5: Use of deprecated renderer detected. Define explicitly the {apiVersion: 2} parameter in the renderer object"

Steps to Reproduce the Issue

See https://github.com/SAP/openui5/blob/daf3639253d2b6158fb4cde4a1d310171f5e9eec/src/sap.ui.unified/src/sap/ui/unified/FileUploaderRenderer.js#L13

Snippet:

sap.ui.define(['sap/ui/unified/library', "sap/ui/thirdparty/jquery", "sap/ui/unified/FileUploaderHelper"], function(library, jQuery, FileUploaderHelper) {
...
  var FileUploaderRenderer = {};
  FileUploaderRenderer.apiVersion = 2;
...
  FileUploaderRenderer.render = function(oRm, oFileUploader) {
...
  };
  return FileUploaderRenderer;
});

Context

  • UI5 linter version: 1.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    detectionAn issue related to detection capabilities

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions