Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 969 Bytes

trailing-whitespaces.md

File metadata and controls

43 lines (29 loc) · 969 Bytes

pre-commit-hooks logo

Handy Git hooks to integrate with pre-commit framework.


Summary

  • Hook ID: trailing-whitespaces

Description

Ensures there's no line trailing whitespaces.

Arguments

  • --fix if used, hook will correct invalid files in-place. Supported values are yes and no ( default).

Examples

- repo: https://github.com/MarcinOrlowski/pre-commit-hooks
  rev: main
  hooks:
    - id: trailing-whitespaces
      # We do not want binary files to be touched
      exclude_types: [ 'xml','png','jpeg','svg' ]
      args: [ '--fix=yes' ]