mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This commit sets initial dbschemes for cpp, csharp, java, javascript, and python so that automated testing for upgrade scripts would also cover legacy upgrades.
65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
# 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):
|
|
#
|
|
# git add --renormalize .
|
|
# git status [just to show what files were renormalized]
|
|
# git commit -m "Normalize line endings"
|
|
|
|
# Anything Git auto-detects as text gets normalized and checked out as LF
|
|
* text=auto eol=lf
|
|
|
|
# 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
|
|
|
|
# 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
|
|
*.dll -text
|
|
*.pdb -text
|
|
|
|
java/ql/test/stubs/**/*.java linguist-generated=true
|
|
java/ql/test/experimental/stubs/**/*.java linguist-generated=true
|
|
|
|
# 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.
|
|
*/ql/lib/upgrades/initial/*.dbscheme -text
|
|
|
|
# Generated test files - these are synced from the standard JavaScript libraries using
|
|
# `javascript/ql/experimental/adaptivethreatmodeling/test/update_endpoint_test_files.py`.
|
|
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.js linguist-generated=true -merge
|
|
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.ts linguist-generated=true -merge
|