Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

CLI overrides not applied when formatting files in v2.0.0 #925

@dubalda

Description

@dubalda

I tried to run it both from Windows and from Docker for Windows

stylua.exe --line-endings Windows --check .

stylua.exe --line-endings Unix --check .

The result is the same, it gives errors in all files. Example of the first two files

Diff in ./cloud_test_tasks/runTests.luau:
1        |-require(game.ReplicatedStorage.Shared.LuTestRoblox.LuTestRunner)
    1    |+require(game.ReplicatedStorage.Shared.LuTestRoblox.LuTestRunner)
Diff in ./place_battle/replicated_storage/tests/test_workspace.luau:
1        |-local tests = {}
2        |-local Workspace = game:GetService("Workspace")
3        |-
4        |-function tests.test_server_workspace_gravity()
5        |-    assert(math.floor(Workspace.Gravity) == 196, "Gravity value is: " .. Workspace.Gravity)
6        |-end
7        |-
8        |-return tests
    1    |+local tests = {}
    2    |+local Workspace = game:GetService("Workspace")
    3    |+
    4    |+function tests.test_server_workspace_gravity()
    5    |+    assert(math.floor(Workspace.Gravity) == 196, "Gravity value is: " .. Workspace.Gravity)
    6    |+end
    7    |+
    8    |+return tests
Diff in ./place_battle/replicated_storage/tests/test_starterplayer.luau:

After reverting to 0.20.0 the results became normal again

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions