SAP / ui5-linter

A static code analysis tool for UI5
Apache License 2.0
52 stars 4 forks source link

fe lrop v4 displays linter ignore pattern when loading object page in UI5 nightly and untested (1.132.0) #412

Closed heimwege closed 2 weeks ago

heimwege commented 2 weeks ago

Hey guys,

I just noticed that our fe v4 lrop displays /* ui5lint-disable */ when loading an object page (see screenshot). Maybe this is not even the fault of the ui5linter. I don't know. Let's start the investigation here 🕵🏻

Expected Behavior

This text should not be displayes

Current Behavior

see text in screenshot

image

Steps to Reproduce the Issue

I guess just load a lrop with the respective version 🤷🏻

Context

Log Output / Stack Trace

not needed

codeworrior commented 2 weeks ago

The placeholders in sap.fe use *.fragment.html as extension of their HTML files. This is a suggestion of the UI5 runtime to easily allow to bundle them and still express their mime type (somewhat).

As the linter complains about HTML and JSON views/fragments, those files are reported as issues and sap.fe colleagues tried to fix this with linter directives in the files.

Technically, the files are no UI5 fragments, however. I'll therefore suggest to the colleagues to rather exclude those files form listing. There's no point in linting them.

As this is not a UI5 linter issue, I'll close the issue here.

heimwege commented 2 weeks ago

@codeworrior so I should rather route this to the fe colleagues?

codeworrior commented 2 weeks ago

No, not necessary, they've fixed it already earlier today in 1.131 and master codelines. I'll add you on CC on the corresponding changes.