Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for writing ignore comment in Lua #6108

Open
ThibF opened this issue Jan 8, 2020 · 2 comments
Open

Add support for writing ignore comment in Lua #6108

ThibF opened this issue Jan 8, 2020 · 2 comments

Comments

@ThibF
Copy link

ThibF commented Jan 8, 2020

Overview Description

Lua is not supported for ignore comments.

Steps to Reproduce

  1. Create a lua file with ignore comment
-- Start Ignore LuaFormatterBear
print ( "Hello World"      )
-- Stop Ignore LuaFormatterBear
  1. Add a .coafile
[lua]
files = **.lua
tags = lua
[lua.format]
bears = LuaFormatterBear
  1. Run coala

Actual Results

The lua code inside the Start Ignore and Stop Ignore is formatted by coala

Expected Results

The lua code inside the Start Ignore and Stop Ignore is ignored by coala

Additional Information:

In lua, single line comments sign is -- and multiline comments are:

--[[
print(10)         -- no action (comment)
--]]
@RajSrinivasJena
Copy link

I'm taking this

@codehobbyist06
Copy link

I could not find any LuaFormatterBear available for Lua language(don't know if it existed in previous versions). The bear available is LuaLintBear, and it works fine if Luacheck is installed. You can install Luacheck using the following commands:
sudo apt install luarocks
sudo luarocks install luacheck

To check if it is installed correctly:
luacheck -v

Pls share if there is something else in this issue.

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

No branches or pull requests

3 participants