2018-09-21 17:50:03 +03:00
|
|
|
# Text files will be normalized to LF line endings in the Git database, and will keep those LF line
|
|
|
|
# endings in the working tree even on Windows. If you make changes below, you should renormalize the
|
|
|
|
# affected files by running the following from the root of this repo (requires Git 2.16 or greater):
|
2018-08-24 21:58:58 +03:00
|
|
|
#
|
|
|
|
# git add --renormalize .
|
|
|
|
# git status [just to show what files were renormalized]
|
|
|
|
# git commit -m "Normalize line endings"
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2018-09-21 17:50:03 +03:00
|
|
|
# Anything Git auto-detects as text gets normalized and checked out as LF
|
|
|
|
* text=auto eol=lf
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2018-09-21 17:50:03 +03:00
|
|
|
# Explicitly set a bunch of known extensions to text, in case auto detection gets confused.
|
|
|
|
*.ql text
|
|
|
|
*.qll text
|
|
|
|
*.qlref text
|
|
|
|
*.dbscheme text
|
|
|
|
*.qhelp text
|
|
|
|
*.html text
|
|
|
|
*.htm text
|
|
|
|
*.xhtml text
|
|
|
|
*.xhtm text
|
|
|
|
*.js text
|
|
|
|
*.mjs text
|
|
|
|
*.ts text
|
|
|
|
*.json text
|
|
|
|
*.yml text
|
|
|
|
*.yaml text
|
|
|
|
*.c text
|
|
|
|
*.cpp text
|
|
|
|
*.h text
|
|
|
|
*.hpp text
|
|
|
|
*.md text
|
|
|
|
*.stats text
|
|
|
|
*.xml text
|
|
|
|
*.sh text
|
|
|
|
*.pl text
|
|
|
|
*.java text
|
|
|
|
*.cs text
|
|
|
|
*.py text
|
|
|
|
*.lua text
|
|
|
|
*.expected text
|
2022-04-26 19:49:37 +03:00
|
|
|
*.go text
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2018-09-21 21:36:28 +03:00
|
|
|
# Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat
|
|
|
|
# `* text=auto eol=lf` as `* text eol=lf`
|
|
|
|
*.png -text
|
|
|
|
*.jpg -text
|
|
|
|
*.jpeg -text
|
|
|
|
*.gif -text
|
2018-11-30 21:05:02 +03:00
|
|
|
*.dll -text
|
2019-03-13 13:42:28 +03:00
|
|
|
*.pdb -text
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2024-04-12 17:04:15 +03:00
|
|
|
/java/ql/test/stubs/**/*.java linguist-generated=true
|
|
|
|
/java/ql/test/experimental/stubs/**/*.java linguist-generated=true
|
2024-05-06 18:31:50 +03:00
|
|
|
/java/kotlin-extractor/deps/*.jar filter=lfs diff=lfs merge=lfs -text
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2022-04-26 19:49:37 +03:00
|
|
|
# Force git not to modify line endings for go or html files under the go/ql directory
|
2024-04-12 17:04:15 +03:00
|
|
|
/go/ql/**/*.go -text
|
|
|
|
/go/ql/**/*.html -text
|
2022-04-26 19:49:37 +03:00
|
|
|
# Force git not to modify line endings for go dbschemes
|
2024-04-12 17:04:15 +03:00
|
|
|
/go/*.dbscheme -text
|
2022-04-26 19:49:37 +03:00
|
|
|
# Preserve unusual line ending from codeql-go merge
|
2024-04-12 17:04:15 +03:00
|
|
|
/go/extractor/opencsv/CSVReader.java -text
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2022-02-08 22:11:41 +03:00
|
|
|
# For some languages, upgrade script testing references really old dbscheme
|
|
|
|
# files from legacy upgrades that have CRLF line endings. Since upgrade
|
|
|
|
# resolution relies on object hashes, we must suppress line ending conversion
|
|
|
|
# for those testing dbscheme files.
|
2024-04-12 17:04:15 +03:00
|
|
|
/*/ql/lib/upgrades/initial/*.dbscheme -text
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2023-12-13 23:51:40 +03:00
|
|
|
# Auto-generated modeling for Python
|
2024-04-12 17:04:15 +03:00
|
|
|
/python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true
|
2024-04-12 11:44:18 +03:00
|
|
|
|
2024-02-23 00:02:14 +03:00
|
|
|
# auto-generated bazel lock file
|
2024-04-12 17:04:15 +03:00
|
|
|
/ruby/extractor/cargo-bazel-lock.json linguist-generated=true
|
|
|
|
/ruby/extractor/cargo-bazel-lock.json -merge
|
2024-05-02 17:05:43 +03:00
|
|
|
|
|
|
|
# auto-generated files for the C# build
|
2024-05-16 17:55:08 +03:00
|
|
|
/csharp/paket.lock linguist-generated=true
|
|
|
|
# needs eol=crlf, as `paket` touches this file and saves it as crlf
|
|
|
|
/csharp/.paket/Paket.Restore.targets linguist-generated=true eol=crlf
|
2024-05-27 14:17:06 +03:00
|
|
|
/csharp/paket.main.bzl linguist-generated=true
|
|
|
|
/csharp/paket.main_extension.bzl linguist-generated=true
|
2024-05-29 16:46:29 +03:00
|
|
|
|
|
|
|
# ripunzip tool
|
2024-06-05 15:46:59 +03:00
|
|
|
/misc/ripunzip/ripunzip-* filter=lfs diff=lfs merge=lfs -text
|
2024-05-29 16:46:29 +03:00
|
|
|
|
|
|
|
# swift prebuilt resources
|
|
|
|
/swift/third_party/resource-dir/*.zip filter=lfs diff=lfs merge=lfs -text
|