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

Disable unused parameter warnings on def files #129

Closed
Xseba360 opened this issue Jun 5, 2022 · 1 comment
Closed

Disable unused parameter warnings on def files #129

Xseba360 opened this issue Jun 5, 2022 · 1 comment

Comments

@Xseba360
Copy link

Xseba360 commented Jun 5, 2022

Environment

Name Version
IDEA version Webstorm 2022.1.1
Luanalysis version 1a78ef5
OS Windows 10 21H2

Preferences

Lua

Name Setting
Language level Lua 5.4

Type Safety

Name Setting
Strict nil checks
Unknown type (any) is indexable ☑️
Unknown type (any) is callabale ☑️

What are the steps to reproduce this issue?

  1. Create a file with definitions (filename.def.lua)
  2. Write function definitions

What happens?

Unused parameter inspection appears

What were you expecting to happen?

Since it's a definition file, and it's not supposed to be included/executed and should only serve as an information for the IDE, this inspection should not appear on .def.lua files.

Any logs, error output, etc?

image

@Benjamin-Dobell
Copy link
Owner

Closed by 7806d0f

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

No branches or pull requests

2 participants