View Revisions: Issue #6975
Summary | 0006975: Set up gitattributes for Git consistently update line endings for Windows and other file systems | ||
---|---|---|---|
Revision | 2025-06-24 15:05 by awebb | ||
Description | Currently a text file created in Windows has CR LF characters at the end of the line, while Linux and MAC OS uses just one. Set up the .gitattributes file for all Git repositories to consistently update line endings for Windows and other file systems. Goal: avoid false-positive reports of code differences, when the line endings are the only change. Also review the GitAttributesGenerator class? Several files have this issue currently. They can be seen by running "./gradlew clean build" in the PRO project. The line endings cause the build to fail with the error: "Task :symmetric-pro:spotlessJavaCheck FAILED". Gradle reports the code violations, where you can see the line endings present, for example: "-package com.jumpmind.symmetric.console.ui.wizard.load;\r\n". Files include: com/jumpmind/symmetric/console/ui/wizard/load/TableSetupInProgressScreen.java, com/jumpmind/symmetric/console/ui/wizard/load/TableSetupIncompleteScreen.java, though there are others. The code violations can be fixed by running, for example: "./gradlew :symmetric-pro:spotlessApply". Though the intent here is to use gitattributes to address these violations automatically. |
||
Revision | 2025-06-24 14:29 by pbelov | ||
Description | Currently a text file created in Windows has CR LF characters at the end of the line, while Linux and MAC OS uses just one. Set up the .gitattributes file for all Git repositories to consistently update line endings for Windows and other file systems. Goal: avoid false-positive reports of code differences, when the line endings are the only change. Also review the GitAttributesGenerator class? |
||
Revision | 2025-06-24 14:01 by pbelov | ||
Description | Currently a text file created in Windows has CR LF characters at the end of the line, while Linux and MAC OS uses just one. Set up the .gitattributes file for all Git repositories to consistently update line endings for Windows and other file systems. |