RobotWebTools / rclnodejs

Node.js version of ROS 2.0 client
https://docs.ros.org/en/humble/Concepts/Basic/About-Client-Libraries.html?highlight=rclnodejs#community-maintained
Apache License 2.0
312 stars 70 forks source link

add .gitattributes to project #801

Closed wayneparrott closed 3 years ago

wayneparrott commented 3 years ago

Presently when a developer pulls code on windows his editor may show a zillion prettier errors due to the Windows default EOL does not match the default prettier EOL of LF. By adding a .gitattributes we can enforce the EOL to be LF (compatible with prettier) on all platforms by default.

This .gitattributes file is based on this example. I added some additional EOL config for *.[json|yaml|cpp|hpp] and a few others. Please review and propose any changes you feel better suit the project and developer experience.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.4%) to 91.015% when pulling 6b6170db17ac2a0473dd08bc8811da383ccb9d51 on wayneparrott:gitattributes into 24d86f561434ce16250b59bf64d6a790bfe68427 on RobotWebTools:develop.