- 
    Bug 
- 
    Resolution: Fixed
- 
    P2: Important 
- 
    6.5.2
- 
    None
- 
        729edeb34 (6.5)
Qmlformat removes the parameterlist from a lambda expression
import QtQuick
Item {
    function test(object){
                object.forEach(([]) => {
                
                })
    }
    width: ({})=>{}
}
 
Gets formatted to:
import QtQuick
Item {
    function test(object) {
        object.forEach([ => {})
    }
                        width: { => {}
                        }
 
as you can see the [ is never closed and the code would never compile after formatting
The same happens when you use {} instead of []
This could be related to QTBUG-111511