diff options
Diffstat (limited to 'server-beta/src/core/diagnostics/redundant-value.lua')
-rw-r--r-- | server-beta/src/core/diagnostics/redundant-value.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/server-beta/src/core/diagnostics/redundant-value.lua b/server-beta/src/core/diagnostics/redundant-value.lua deleted file mode 100644 index be483448..00000000 --- a/server-beta/src/core/diagnostics/redundant-value.lua +++ /dev/null @@ -1,24 +0,0 @@ -local files = require 'files' -local define = require 'proto.define' -local lang = require 'language' - -return function (uri, callback, code) - local ast = files.getAst(uri) - if not ast then - return - end - - local diags = ast.diags[code] - if not diags then - return - end - - for _, info in ipairs(diags) do - callback { - start = info.start, - finish = info.finish, - tags = { define.DiagnosticTag.Unnecessary }, - message = lang.script('DIAG_OVER_MAX_VALUES', info.max, info.passed) - } - end -end |