drasi-project / drasi-platform

Apache License 2.0
997 stars 30 forks source link

Fixed Pre-Commit Hook: Convert Line Endings to LF #87

Closed ruokun-niu closed 1 month ago

ruokun-niu commented 1 month ago

Description

Previous, after setting up the pre-commit hook and when I do a git commit, I will get the following error: fatal: cannot run .githooks/pre-commit: No such file or directory.

This disappeared after I executed dos2unix on the pre-commit file.

Also updated the pre-commit hook to check the source components that are written in Rust.

Type of change

Fixes: #issue_number