linter-makensis

Atom linter plugin for NSIS, using makensis

Jan T. Sott

4,567

1

0.19.3

MIT OR GPL-2.0

GitHub

This package provides the following services:

linter-makensis

apm apm apm CI David

Atom Linter provider for NSIS, using makensis

Screenshot

Screenshot of linter-makensis with Fira Code font & the Hopscotch theme

Prerequisites

Make sure that NSIS is properly installed with makensis in your PATH environment variable.

Windows

Download the NSIS installer from SourceForge and run setup. Once completed, you need to edit your environment variable manually.

Alternatively, you can install NSIS through Scoop:

$ scoop install nsis/nsis

Linux

Install NSIS from your distribution's default package manager, for example:

# Debian
$ sudo apt-get nsis

# Red Hat
$ sudo dnf install nsis

macOS

Install NSIS using Homebrew or MacPorts:

# Homebrew
$ brew install nsis

# MacPorts
$ port install nsis

Installation

apm

Install linter-makensis from Atom's Package Manager or the command-line equivalent:

$ apm install linter-makensis

Using Git

Change to your Atom packages directory:

# Windows Powershell
cd $Env:USERPROFILE\.atom\packages

# Windows Command Prompt
$ cd %USERPROFILE%\.atom\packages
# Linux & macOS
$ cd ~/.atom/packages/

Clone repository as linter-makensis:

$ git clone https://github.com/idleberg/atom-linter-makensis linter-makensis

Inside the cloned directory, install Node dependencies:

$ yarn || npm install

Usage

Your code gets linted whenever you save your document. To tweak the default settings, run “Linter MakeNSIS: Open Settings” from the command-palette.

Settings

Setting Default Description
Path to MakeNSIS makensis Specify the full path to makensis
Pre-process Mode Safe PPO The pre-process mode lints much faster, but ignores warnings (unless in strict mode)
Strict Mode false Treats warnings as errors
Manage Dependencies true When enabled, third-party dependencies will be installed automatically
Prepend Code [] Comma-separated list of commands to be prepended to your script
Append Code [] Comma-separated list of commands to be appended to your script
Use Wine false When on a non-Windows platform, you can compile installers using Wine

Related

License

This work is dual-licensed under The MIT License and the GNU General Public License, version 2.0