Skip to content

Basic code sanity checks and editorconfig

Let's apply at least a basic level of code sanity.

What is changed/applied

  • checks for case conflicts in file names
  • checks for proper json syntax
  • checks for proper xml syntax
  • checks for proper yaml syntax
  • remove byte order marker
  • remove trailing whitespaces (excluding .min.js, .min.css and .mo files)
  • one and only one line at the end of each file (excluding .min.js, .min.css and .mo files)
  • check that all files have the same line ending type (LF)
  • remove Python 2 coding pragma, it's no longer needed in Python 3
  • introduce a global editorconfig and check that all files adhere to it

This MR has multiple commits, so you can see what the individual steps do. The automated checks are done via pre-commit hooks.

Merge request reports