Kampfkarren / selene

A blazing-fast modern Lua linter written in Rust
https://kampfkarren.github.io/selene/
Mozilla Public License 2.0
615 stars 78 forks source link

Lint for table function calls where the opening brace is in a different location #330

Open Kampfkarren opened 2 years ago

Kampfkarren commented 2 years ago

Someone posted this code and asked why they got "Attempt to call a TweenInfo":

 local selection_box_tween = TweenService:Create(
            selection_box,
            TweenInfo.new(0.4,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
            {LineThickness = SELECTION_LINE_THICKNESS}
        )

The bug here being that they didn't place a comma.

This would make for a good style lint.

Kampfkarren commented 2 years ago

Same should go to strings