Without this luacheck will interpret all files as if they are named stdin instead of their actual name. This causes issues with configuration like exclude_files that works off the filepath.
So something like this doesn't work as expected since it will be matched against "stdin" instead of "foo/bar/baz.lua".
Without this
luacheck
will interpret all files as if they are namedstdin
instead of their actual name. This causes issues with configuration likeexclude_files
that works off the filepath.So something like this doesn't work as expected since it will be matched against "stdin" instead of "foo/bar/baz.lua".