Skip to content

Name-style check configurations #105

@AndreaWalchshoferSCCH

Description

@AndreaWalchshoferSCCH

As I now want to use the name-style checks of this library (since they give more/better options already), a few questions have came up.

I try to use it through sumneko LuaLS (both VSCode and CLI), but I have now also tried the EmmyLuaCodeStyle VSCode Extension.
Configuration of e.g. whitespaces, so code-style, works fine and the same for both versions.

  • But is there some configuration missing for name-style checks? I can turn it on for the Emmy extension, but it won't apply my settings for it. I want to use camel-case, it diagnoses for snake-case.
  • LuaLS doesn't give the warnings for names at all but doesn't seem to have a configuration as well?

What I tried to configure in .editorconfig:

enable_name_style_check = true

local_name_define_style = camel_case
function_name_define_style = camel_case
local_function_name_define_style = camel_case
global_variable_name_define_style = upper_snake_case

I have noticed that the docs for the name-style checks are only in the "old" documentation. But I tried it like it's described there.

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