{"repo":"schorfES/node-lintspaces","free":true,"listed":false,"github":"https://github.com/schorfES/node-lintspaces","clone":"git clone https://github.com/schorfES/node-lintspaces.git","description":"A validator for checking different kinds of whitespaces in your files.","language":"JavaScript","stars":31,"topics":["linter","whitespace","checker","validation","lintspaces","editorconfig","cli","testing","automation","quality-assurance"],"license":"MIT","category":"dev-tools","readme_excerpt":"Lintspaces A node module for checking spaces in files. Tasks If you're looking for a gruntjs or gulpjs task to validate your files, take a look at these ones: - grunt-lintspaces - gulp-lintspaces by AlbertoElias CLI There is also a lintspaces CLI available written by evanshortiss. Installation This package is available on npm as: lintspaces Usage To run the lintspaces validator on one or multiple files take a look at the following example: The response of getInvalidFiles() contains an object. Each key of this object is a filepath which contains validation errors. Under each filepath there is an other object with at least one key. Those key(s) are the specific linenumbers of the file containing an array with errors. The following lines shows the structure of the validation result in JSON notation: Options newline at end of file option Tests for newlines at the end of all files. Default value is false . - returns code NEWLINE , when missing a newline at the end of the file. - returns code NEWLINE AMOUNT , when found unexpected additional newlines at the end of a file. - returns type warning maximum newlines option Test for the maximum amount of newlines between code blocks. Default value is false . To enable this validation a number larger than 0 is expected. - returns code NEWLINE MAXIMUM , when maximum amount of newlines exceeded between code blocks. - returns type warning endOfLine option Lintspaces fails with incorrect end of line errors when files contain lines that end in","default_branch":null,"files":null,"tree":[],"storefront":"/r/schorfES","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/schorfES/node-lintspaces/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}