This package provides the following services:
linter-sqf
This linter plugin for Atom-Linter that provides an interface to sqf linter, a linter for the SQF language.
See also language-arma-atom.
Installation
- Install Python 3 (it must be >=3!)
- Download or clone the sqf linter.
- Install it in a virtualenv or other in the system (
pip install -e .in powershell). - Copy the full path of the
sqflintscript, e.g.
/Users/lordgolias/.virtualenvs/sqflint/bin/sqflint
C:\Program Files (x86)\Python36-32\Scripts\sqflint.exe
(in powershell, you get this with get-command sqflint).
- Install this package e.g. in the Atom settings. It will ask you to install some dependencies.
- Go to the settings of this package, and put the path above into the
Executable Pathsetting. - Create a new file
test.sqfin atom, and fill it withbla](i.e. wrong SQF code). You should see an error message.
Update
The sqflint is often updated in github. When you install it with pip install -e .,
you can update the directory you installed it from (e.g. git fetch origin; git reset --hard origin/master).
Otherwise, you can just uninstall it (pip uninstall sqflint) and install the new version.