Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
34 lines (32 loc) · 1.77 KB
/
Copy path.gitattributes
File metadata and controls
34 lines (32 loc) · 1.77 KB
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
34
# Line endings.
#
# Every text file in this repository is stored with LF, and some of them are
# compared byte for byte at test time: the golden documents under
# internal/router/testdata are diffed against generator output, and the
# generators always write "\n".
#
# Git for Windows enables core.autocrlf by default, which rewrites text files to
# CRLF on checkout. That made every line of every golden file differ by a
# trailing \r, and TestGoldenSpecs failed on Windows for a reason that had
# nothing to do with the code -- 883 of 883 lines "different", each one visually
# identical to its counterpart.
#
# text=auto keeps Git's content detection, so binaries are still left alone;
# eol=lf pins the working-tree ending on every platform no matter what the
# developer's autocrlf is set to. Nothing in the repository is stored with CRLF
# today, so this normalises working trees without rewriting a single blob.
* text=auto eol=lf
# Fixtures that are compared byte for byte. Covered by the rule above, but
# spelled out so the requirement is discoverable from this file and survives
# anyone loosening the global default.
**/testdata/** text eol=lf
# Flutter platform runners in the Dart package examples are generated by
# `flutter create`. Marking them generated keeps their Swift, Kotlin and C++
# out of GitHub's language detection, so CodeQL default setup does not try to
# autobuild an Xcode project that only builds after Flutter has generated its
# plugin package (forge_client_offline/example/macos runs the real-keychain test).
dart-packages/*/example/macos/** linguist-generated
dart-packages/*/example/ios/** linguist-generated
dart-packages/*/example/android/** linguist-generated
dart-packages/*/example/linux/** linguist-generated
dart-packages/*/example/windows/** linguist-generated