ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-contrib-zig-check

by alexkuz ST3

SublimeLinter plugin for Zig built-in linter (zig ast-check)

Details

Installs

  • Total 190
  • Win 93
  • Mac 38
  • Linux 59
Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-contrib-zig-check

Build Status

This linter plugin for SublimeLinter provides an interface to zig ast-check command. It will be used with files that have the “zig” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before installing this plugin, you must ensure that zig is installed on your system.

In order for zig to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

Settings

Additional SublimeLinter-contrib-zig-check settings:

Setting Description
build‑cmd If set, this command will be executed on file save (to be precise, when file is not in “dirty” state) instead of default zig ast-check. This allows you to validate whole project with more detailed results.

Example for SublimeLinter.sublime-settings:

{
  "linters": {
    "zigcheck": {
      "build-cmd": "zig build-lib -fno-emit-bin ./src/main.zig"
    }
    ...
  }
}

Project-specific settings (<my-project>.sublime-project):

{
  "folders": [
    {
      "path": "."
    }
  ],
  "settings": {
    "SublimeLinter.linters.zigcheck.build-cmd": "zig build-lib -fno-emit-bin ./src/main.zig"
  }
}