|
5 | 5 | # git add --renormalize . |
6 | 6 | # git status [just to show what files were renormalized] |
7 | 7 | # git commit -m "Normalize line endings" |
| 8 | + |
8 | 9 | # Anything Git auto-detects as text gets normalized and checked out as LF |
9 | 10 | * text=auto eol=lf |
| 11 | + |
10 | 12 | # Explicitly set a bunch of known extensions to text, in case auto detection gets confused. |
11 | 13 | *.ql text |
12 | 14 | *.qll text |
|
38 | 40 | *.lua text |
39 | 41 | *.expected text |
40 | 42 | *.go text |
| 43 | + |
41 | 44 | # Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat |
42 | 45 | # `* text=auto eol=lf` as `* text eol=lf` |
43 | 46 | *.png -text |
|
46 | 49 | *.gif -text |
47 | 50 | *.dll -text |
48 | 51 | *.pdb -text |
| 52 | + |
49 | 53 | java/ql/test/stubs/**/*.java linguist-generated=true |
50 | 54 | java/ql/test/experimental/stubs/**/*.java linguist-generated=true |
| 55 | +/java/kotlin-extractor/deps/*.jar filter=lfs diff=lfs merge=lfs -text |
| 56 | + |
51 | 57 | # Force git not to modify line endings for go or html files under the go/ql directory |
52 | 58 | go/ql/**/*.go -text |
53 | 59 | go/ql/**/*.html -text |
54 | 60 | # Force git not to modify line endings for go dbschemes |
55 | 61 | go/*.dbscheme -text |
56 | 62 | # Preserve unusual line ending from codeql-go merge |
57 | 63 | go/extractor/opencsv/CSVReader.java -text |
| 64 | + |
58 | 65 | # For some languages, upgrade script testing references really old dbscheme |
59 | 66 | # files from legacy upgrades that have CRLF line endings. Since upgrade |
60 | 67 | # resolution relies on object hashes, we must suppress line ending conversion |
61 | 68 | # for those testing dbscheme files. |
62 | 69 | */ql/lib/upgrades/initial/*.dbscheme -text |
| 70 | + |
63 | 71 | # Generated test files - these are synced from the standard JavaScript libraries using |
64 | 72 | # `javascript/ql/experimental/adaptivethreatmodeling/test/update_endpoint_test_files.py`. |
65 | 73 | javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.js linguist-generated=true -merge |
66 | 74 | javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.ts linguist-generated=true -merge |
| 75 | + |
67 | 76 | # Auto-generated modeling for Python |
68 | 77 | python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true |
| 78 | + |
69 | 79 | # auto-generated bazel lock file |
70 | 80 | ruby/extractor/cargo-bazel-lock.json linguist-generated=true |
71 | 81 | ruby/extractor/cargo-bazel-lock.json -merge |
72 | | -/java/kotlin-extractor/deps/*.jar filter=lfs diff=lfs merge=lfs -text |
|
0 commit comments