Overview
Gulp-lintspaces is a lightweight and straightforward wrapper for lintspaces that stands out for its simplicity in validating code formatting. Although it is no longer actively maintained, it provides essential features for developers looking to ensure clean code in their projects. This tool integrates seamlessly into a GulpJS workflow, offering an efficient solution for maintaining coding standards.
Features
- Newline at End of File: Tests for the presence of a newline at the end of all files, helping to comply with best practices. Default value is false.
- Maximum Newlines Option: Validates the maximum number of newlines allowed between code blocks. This option is disabled by default, but can be activated by specifying a number greater than 0.
- Trailing Spaces Validation: Checks for unnecessary whitespace at the end of each line, ensuring a tidier codebase. By default, this feature is turned off.
- Indentation Options: Offers options for verifying correct indentation using either tabs or spaces. To enable, simply set the value to 'tabs' or 'spaces'. The default setting is false, with an option to specify the number of spaces when using 'spaces'.
- Ignores Specific Lines: Allows you to ignore specific lines, such as comments, using regular expressions. Built-in patterns for various programming languages are available, making it flexible for different use cases.
- EditorConfig Integration: Provides support for overriding default settings by utilizing an external .editorconfig file, allowing for a customized configuration. Key values for checking formatting are supported.
- Open for Contribution: Encourages users to contribute by adding new regex patterns for ignores or enhancing functionalities, fostering a community-driven approach to improvements.