/editorconfig-validator

Java Library to check files for compliance with .editorconfig definitions

Primary LanguageJavaMIT LicenseMIT

.editorconfig Validator

Build Status Coverage Status Maven Central MIT License

Java-Library to validate that a file complies with the rules defined in .editorconfig. Please note, that this project is under development and may not be READY FOR PRODUCTION!

For information on EditorConfig in general, see their website.

  • Checks for

    • Usage of correct Charset
    • Line ending (CR, LF, CRLF)
    • File indentation (SPACE, TAB) with defined size
    • Final newlines
    • Trim trailing whitespace
  • Missing checks: none

Supported styles

  • Supports configuration inheritance.
  • Supported styles:
    • indent_size
      • value "tab" means: set the number of spaces to tab_width if available otherwise use IDE default
    • indent_width
    • end_of_line
    • charset
    • trim_trailing_whitespace
    • insert_final_newline

License