evanshortiss/lintspaces-cli

Lintspaces version 0.2.0

schorfES opened this issue · 5 comments

Hi @evanshortiss,
according to keep in touch on changes in lintspaces, I want to report the new features/options in version 0.2.0:

  • update reporting format
  • add errortypes to reporting ("warning" / "hint")
  • add new option to guess indentation (reporting type is "hint")
  • add new option to skip blank lines in trailing spaces check
  • add new option to ignore trailing spaces when line should be ignored

all features should be documented

Had an issue with npm. Use version 0.2.1 @ npm.

Thanks for the update! Will get an update released in the coming days hopefully.

Updated with support for new lintspaces core feature. Took a little longer than planned. Emigration to the states is a time consuming process!

All changes are on the dev branch. I'll push this to npm as version 0.0.4 soon.

New reporting output:

File: /Users/eshortiss/workspaces/personal/fhlog/lib/Uploader.js
Line: 4 Unexpected spaces found. [warning]
Line: 8 Unexpected spaces found. [warning]
Line: 9 Unexpected spaces found. [warning]
Line: 13 Unexpected spaces found. [warning]
Line: 14 Unexpected spaces found. [warning]
Line: 15 Unexpected spaces found. [warning]

New --help output

Usage: index [options]

  Options:

    -h, --help                      output usage information
    -V, --version                   output the version number
    -n, --newline                   Require newline at end of file.
    -g, --guessindentation          Tries to guess the indention of a line depending on previous lines
    -b, --skiptrailingonblank       Skip blank lines in trailingspaces check.
    -it, --trailingspacestoignores  Ignore trailing spaces in ignores
    -l, --maxnewlines <n>           Specify max number of newlines between blocks.
    -t, --trailingspaces            Tests for useless whitespaces (trailing whitespaces) at each lineending of all files.
    -d, --indentation <s>           Check indentation is "tabs" or "spaces".
    -s, --spaces <n>                Used in conjunction with -d to set number of spaces.
    -i, --ignores <items>           Comma separated list of ignores.
    -e, --editorconfig <s>          Use editorconfig specified at this file path for settings.

Cool. Waiting for the new release! 👍

Published.