Skip to content

A small Docker image for Vint, a fast and highly extensible Vim script language linter implemented in Python

License

Notifications You must be signed in to change notification settings

fnichol/docker-vint

Repository files navigation

docker-vint

Build Status Docker Pulls GitHub

A small Docker image for Vint, a fast and highly extensible Vim script language linter implemented in Python.

Table of Contents

Getting the Image

The image is hosted on Docker Hub and can be pulled down with:

$ docker pull fnichol/vint

Usage

By default, vint will be run with no arguments:

$ docker run --rm -ti fnichol/vint
vint ERROR: nothing to check
usage: vint [-h] [-v] [-V] [-e] [-w] [-s] [-m MAX_VIOLATIONS] [-c]
            [--no-color] [-j] [-t] [--enable-neovim] [-f FORMAT]
            [files [files ...]]

Lint Vim script

positional arguments:
  files                 file or directory path to lint

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -V, --verbose         output verbose message
  -e, --error           report only errors
  -w, --warning         report errors and warnings
  -s, --style-problem   report errors, warnings and style problems
  -m MAX_VIOLATIONS, --max-violations MAX_VIOLATIONS
                        limit max violations count
  -c, --color           colorize output when possible
  --no-color            do not colorize output
  -j, --json            output json style
  -t, --stat            output statistic info
  --enable-neovim       Enable Neovim syntax
  -f FORMAT, --format FORMAT
                        set output format

To lint Vin scripts in your current directory, mount your current directory into the container as read-only:

$ docker run --rm -ti -v "$(pwd)":/src:ro -w /src fnichol/vint --color .vimrc
.vimrc:7:1: Do not use nocompatible which has unexpected effects (see :help nocompatible)

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Contributing

You are invited to contribute to new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

Authors

Created and maintained by Fletcher Nichol (fnichol@nichol.ca).

License

This Docker image is licensed under the MIT license. The Vint project is also licensed under the MIT license.

About

A small Docker image for Vint, a fast and highly extensible Vim script language linter implemented in Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published