forked from oss-review-toolkit/ort
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitattributes
33 lines (25 loc) · 1.47 KB
/
.gitattributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Always use Unix line endings for the license file so it has the same hash on all platforms.
/LICENSE text eol=lf
# Always use Unix line endings for Unix shell scripts.
gradlew text eol=lf
*.sh text eol=lf
# Always use Windows line endings for Windows batch scripts.
*.bat text eol=crlf
# Use Unix line endings for expected test results for consistency across platforms.
**/src/*/assets/**/*expected*.txt text eol=lf
**/src/*/assets/**/*expected*.yml text eol=lf
# Use Unix line endings for scan results which are misused for also testing the calculation of the SPDX package verification code.
scanner/src/test/assets/*.json text eol=lf
# Use Unix line endings for SPDX license texts for consistency across platforms.
utils/spdx/src/main/resources/exceptions/* text eol=lf
utils/spdx/src/main/resources/licenserefs/* text eol=lf
utils/spdx/src/main/resources/licenses/* text eol=lf
# Fix GitHub language statistics, see https://github.com/github/linguist#using-gitattributes.
utils/spdx/src/main/resources/exceptions/* linguist-detectable=false
utils/spdx/src/main/resources/licenserefs/* linguist-detectable=false
utils/spdx/src/main/resources/licenses/* linguist-detectable=false
# Use Unix line endings for the expected control file of a Debian package.
utils/common/src/test/assets/control-expected.txt text eol=lf
# Use Unix line endings for *.graphql files. This is mainly done to prevent that tests need to fiddle with
# different platform-specific line endings.
*.graphql text eol=lf