Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 969 Bytes

end-of-file.md

File metadata and controls

44 lines (29 loc) · 969 Bytes

pre-commit-hooks logo

Handy Git hooks to integrate with pre-commit framework.


Summary

  • Hook ID: end-of-file

Description

Makes sure files end in a newline and only a newline.

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: end-of-file
      # We do not want binary files to be touched
      exclude_types: [ 'xml','png','jpeg','svg' ]
      args: [ '--fix=yes' ]