From 771581a945c677a96ccb33f17c8892de42a5e939 Mon Sep 17 00:00:00 2001 From: Martino Pilia Date: Sat, 2 Feb 2019 15:45:32 +0100 Subject: Add settings for the Alex linter The executable for the Alex linter is currently hard-coded as 'alex', which is an issue given the fact that it conflicts with the Haskell lexer generator, whose executable is also called 'alex', has been around a dozen years before the linter, and is packaged in the official repositories of the major Linux distributions. This commit adds options to use a local executable for the alex linter (which is a node package), and an option to set a custom executable. As side changes: * The pattern in the alex handler is made more readable by turnig it into a very-magic regex. * Alex handles plain text, markdown, and HTML. Specific flags for HTML and markdown are provided when instantiating the linters for the respective filetypes, while before those formats were treated as plain text. --- test/command_callback/alex-node-modules/node_modules/.bin/alex | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/command_callback/alex-node-modules/node_modules/.bin/alex (limited to 'test/command_callback/alex-node-modules/node_modules/.bin/alex') diff --git a/test/command_callback/alex-node-modules/node_modules/.bin/alex b/test/command_callback/alex-node-modules/node_modules/.bin/alex new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3