diff options
Diffstat (limited to 'lua/mason-registry/index/twigcs/init.lua')
| -rw-r--r-- | lua/mason-registry/index/twigcs/init.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lua/mason-registry/index/twigcs/init.lua b/lua/mason-registry/index/twigcs/init.lua deleted file mode 100644 index 942c0192..00000000 --- a/lua/mason-registry/index/twigcs/init.lua +++ /dev/null @@ -1,36 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "twigcs", - desc = _.dedent [[ - The missing checkstyle for twig! Twigcs aims to be what phpcs is to php. It checks your codebase for violations - on coding standards. - ]], - homepage = "https://github.com/friendsoftwig/twigcs", - languages = { Pkg.Lang.Twig }, - categories = { Pkg.Cat.Linter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "friendsoftwig/twigcs", - asset_file = "twigcs.phar", - out_file = platform.is.win and "twigcs.phar" or "twigcs", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "twigcs" }) - ctx:link_bin("twigcs", "twigcs") - end, - win = function() - ctx:link_bin("twigcs", ctx:write_php_exec_wrapper("twigcs", "twigcs.phar")) - end, - } - end, -} |
