Skip to content

Formatting issues with LuaFormatter in CfxLua environment #294

Description

@damag-dev

Hey I'm encountering two major formatting errors while using LuaFormatter in the CfxLua environment:

  1. Tildes are being removed.
    The tildes are removed during formatting, resulting in transformation them into variable.
    `prop_name` -> prop_name

  2. Safe Navigation operators are being removed.
    The safe navigation operators (?) are being removed during formatting, altering the code's functionality.
    User?.Weapon?.Ammo -> User.Weapon.Ammo

If you want to find more info about usage of this 2 look here CFXLua README
Search for:

  1. Compile Time Jenkins' Hashes
  2. Safe Navigation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions