| 1 |
#************************************************************************** |
| 2 |
#* * |
| 3 |
#* OCaml * |
| 4 |
#* * |
| 5 |
#* Damien Doligez, projet Gallium, INRIA * |
| 6 |
#* * |
| 7 |
#* Copyright 2015 Institut National de Recherche en Informatique et * |
| 8 |
#* en Automatique. * |
| 9 |
#* * |
| 10 |
#* All rights reserved. This file is distributed under the terms of * |
| 11 |
#* the GNU Lesser General Public License version 2.1, with the * |
| 12 |
#* special exception on linking described in the file LICENSE. * |
| 13 |
#* * |
| 14 |
#************************************************************************** |
| 15 |
|
| 16 |
# Default behaviour, for if core.autocrlf isn't set |
| 17 |
* text=auto |
| 18 |
|
| 19 |
# It is not possible to wrap lines lines in .gitattributes files |
| 20 |
.gitattributes typo.long-line=may typo.non-ascii |
| 21 |
.gitmodules typo.long-line=may typo.tab=may |
| 22 |
|
| 23 |
.editorconfig typo.missing-header=may |
| 24 |
|
| 25 |
# Binary files |
| 26 |
/boot/ocamlc binary |
| 27 |
/boot/ocamllex binary |
| 28 |
*.gif binary |
| 29 |
*.png binary |
| 30 |
*.tfm binary |
| 31 |
|
| 32 |
/boot/menhir/parser.ml* -diff |
| 33 |
|
| 34 |
# configure is a shell-script; the linguist-generated attribute suppresses |
| 35 |
# changes being displayed by default in pull requests. |
| 36 |
/configure text eol=lf -diff linguist-generated |
| 37 |
|
| 38 |
# 'union' merge driver just unions textual content in case of conflict |
| 39 |
# http://krlmlr.github.io/using-gitattributes-to-avoid-merge-conflicts/ |
| 40 |
/.mailmap merge=union |
| 41 |
|
| 42 |
# We tried using 'union' for Changes and it did not work: |
| 43 |
# instead of creating Changes conflict it would silently duplicate |
| 44 |
# the lines involved in the conflict, which is arguably worse |
| 45 |
#/Changes merge=union |
| 46 |
|
| 47 |
# No header for text and META files (would be too obtrusive). |
| 48 |
*.md typo.missing-header |
| 49 |
README* typo.missing-header |
| 50 |
VERSION typo.missing-header |
| 51 |
*.adoc typo.missing-header |
| 52 |
api_docgen/*.mld typo.missing-header |
| 53 |
api_docgen/alldoc.tex typo.missing-header |
| 54 |
tools/mantis2gh_stripped.csv typo.missing-header |
| 55 |
META.in typo.missing-header |
| 56 |
|
| 57 |
# Hyperlinks and other markup features cause long lines |
| 58 |
*.adoc typo.long-line=may typo.very-long-line=may typo.non-ascii=may |
| 59 |
*.md typo.long-line=may typo.very-long-line=may typo.non-ascii=may |
| 60 |
|
| 61 |
# Github templates and scripts lack headers, have long lines |
| 62 |
/.github/** typo.missing-header typo.long-line=may typo.very-long-line=may |
| 63 |
/.github/workflows/*.yml typo.non-ascii=may |
| 64 |
|
| 65 |
/.mailmap typo.long-line typo.missing-header typo.non-ascii |
| 66 |
/CONTRIBUTING.md typo.non-ascii |
| 67 |
/Changes typo.non-ascii typo.missing-header |
| 68 |
/release-info/News typo.non-ascii typo.missing-header |
| 69 |
/LICENSE typo.very-long-line typo.missing-header |
| 70 |
# tools/ci/appveyor/appveyor_build.cmd only has missing-header because |
| 71 |
# dra27 too lazy to update check-typo to interpret Cmd-style comments! |
| 72 |
/tools/ci/appveyor/appveyor_build.cmd typo.very-long-line typo.missing-header typo.non-ascii |
| 73 |
/tools/ci/inria/bootstrap/remove-sinh-primitive.patch typo.prune |
| 74 |
/release-info/howto.md typo.missing-header typo.long-line |
| 75 |
/release-info/templates/*.md typo.missing-header typo.very-long-line=may |
| 76 |
# ignore auto-generated .depend files |
| 77 |
.depend typo.prune |
| 78 |
/.depend.menhir typo.prune |
| 79 |
|
| 80 |
# Makefiles may contain tabs |
| 81 |
Makefile* typo.makefile-whitespace=may |
| 82 |
|
| 83 |
asmcomp/*/emit.mlp typo.tab=may typo.long-line=may |
| 84 |
|
| 85 |
# Unicode character used for graphical debugging and box drawing |
| 86 |
typing/gprinttyp.mli typo.non-ascii |
| 87 |
typing/gprinttyp.ml typo.non-ascii |
| 88 |
|
| 89 |
# The build-aux directory contains bundled files so do not check it |
| 90 |
build-aux typo.prune |
| 91 |
|
| 92 |
/manual typo.prune |
| 93 |
/manual/** typo.prune |
| 94 |
|
| 95 |
# configure is generated so do not check it |
| 96 |
configure typo.prune |
| 97 |
|
| 98 |
ocaml-variants.opam typo.prune |
| 99 |
|
| 100 |
ocamldoc/** typo.long-line=may |
| 101 |
ocamldoc/Changes.txt typo.missing-header |
| 102 |
ocamldoc/ocamldoc.sty typo.missing-header |
| 103 |
ocamldoc/odoc_index.html typo.missing-header |
| 104 |
|
| 105 |
otherlibs/unix/readlink_win32.c typo.long-line |
| 106 |
otherlibs/unix/stat_win32.c typo.long-line |
| 107 |
otherlibs/unix/symlink_win32.c typo.long-line |
| 108 |
|
| 109 |
# Some Unicode characters here and there |
| 110 |
utils/misc.ml typo.non-ascii |
| 111 |
runtime/sak.c typo.non-ascii |
| 112 |
|
| 113 |
testsuite/tests/** typo.missing-header typo.long-line=may |
| 114 |
testsuite/tests/lib-bigarray-2/bigarrf.f typo.tab linguist-language=Fortran |
| 115 |
testsuite/tests/lib-unix/win-stat/fakeclock.c typo.missing-header=false |
| 116 |
testsuite/tests/misc-unsafe/almabench.ml typo.long-line |
| 117 |
testsuite/tests/parsing/latin9.ml typo.non-ascii typo.very-long-line |
| 118 |
testsuite/tests/parsing/comments.ml typo.non-ascii |
| 119 |
testsuite/tests/tool-ocamldoc/Latin9.ml typo.non-ascii |
| 120 |
testsuite/tests/parsetree/source.ml typo.non-ascii |
| 121 |
testsuite/tests/typing-unicode/*.ml typo.non-ascii |
| 122 |
testsuite/tests/tool-toplevel/strings.ml typo.non-ascii |
| 123 |
testsuite/tests/win-unicode/*.ml typo.non-ascii |
| 124 |
testsuite/tests/unicode/見.ml typo.non-ascii |
| 125 |
testsuite/tests/lib-format/unicode.ml typo.non-ascii |
| 126 |
testsuite/tests/lib-string/test_string.ml typo.non-ascii |
| 127 |
testsuite/tests/lib-uchar/test.ml typo.non-ascii |
| 128 |
testsuite/tests/lexing/reject_bad_encoding.ml typo.prune |
| 129 |
testsuite/tests/asmgen/immediates.cmm typo.very-long-line |
| 130 |
testsuite/tests/generated-parse-errors/errors.* typo.very-long-line |
| 131 |
testsuite/tools/*.S typo.missing-header |
| 132 |
testsuite/tools/*.asm typo.missing-header |
| 133 |
testsuite/tests/messages/highlight_tabs.ml typo.tab |
| 134 |
testsuite/tests/tool-toplevel/multi_phrase_line.ml typo.very-long-line |
| 135 |
|
| 136 |
# prune testsuite reference files |
| 137 |
testsuite/tests/**/*.reference typo.prune |
| 138 |
|
| 139 |
# Expect tests with overly long lines of expected output |
| 140 |
testsuite/tests/parsing/docstrings.ml typo.very-long-line |
| 141 |
|
| 142 |
# Generated test with overly long ocamltest description |
| 143 |
testsuite/tests/lib-dynlink-domains/main.ml typo.very-long-line |
| 144 |
|
| 145 |
# The normalisation tests have very specific line endings which mustn't be |
| 146 |
# corrupted by git. |
| 147 |
testsuite/tests/tool-ocamltest/norm*.reference binary |
| 148 |
|
| 149 |
tools/magic typo.missing-header |
| 150 |
|
| 151 |
# TODO we should fix the long-line errors in yacc/*.c |
| 152 |
/yacc/*.[ch] typo.very-long-line=may |
| 153 |
|
| 154 |
# bootstrap files produced by Menhir |
| 155 |
/boot/menhir/** typo.long-line=may typo.very-long-line=may |
| 156 |
/boot/menhir/** typo.missing-header=may |
| 157 |
/boot/menhir/** typo.white-at-eol=may |
| 158 |
/boot/menhir/** typo.non-ascii=may |
| 159 |
|
| 160 |
# Line-ending specifications, for Windows interoperability |
| 161 |
*.sh text eol=lf |
| 162 |
*.sh.in text eol=lf |
| 163 |
*.awk text eol=lf |
| 164 |
*.m4 text eol=lf linguist-language=M4Sugar |
| 165 |
|
| 166 |
# ocamltest hooks which are used in the testsuite |
| 167 |
*.check-program-output text eol=lf |
| 168 |
*.run text eol=lf |
| 169 |
|
| 170 |
/tools/ci/appveyor/appveyor_build.cmd text eol=crlf |
| 171 |
|
| 172 |
Makefile* linguist-language=Makefile |
| 173 |
*.c linguist-language=C |
| 174 |
*.h linguist-language=C |
| 175 |
*.h.in linguist-language=C |
| 176 |
*.hva linguist-language=TeX |
| 177 |
*.ml linguist-language=OCaml |
| 178 |
*.ml? linguist-language=OCaml |
| 179 |
*.mld linguist-documentation |
| 180 |
*.ml*.in linguist-language=OCaml |
| 181 |
*.tbl linguist-language=C |
| 182 |
|
| 183 |
aclocal.m4 typo.tab -linguist-vendored linguist-language=M4Sugar |
| 184 |
configure.ac text eol=lf |
| 185 |
# These scripts are all parts of autoconf and are tagged linguist-generated |
| 186 |
# to suppress inclusion in PR diffs. |
| 187 |
build-aux/config.guess linguist-generated text eol=lf |
| 188 |
build-aux/config.sub linguist-generated text eol=lf |
| 189 |
build-aux/install-sh linguist-generated text eol=lf |
| 190 |
build-aux/ltmain.sh linguist-generated text eol=lf |
| 191 |
build-aux/*.m4 linguist-vendored |
| 192 |
build-aux/ocaml_version.m4 -linguist-vendored linguist-language=M4Sugar |
| 193 |
ocamltest/OCAMLTEST.org typo.long-line=may typo.missing-header |
| 194 |
stdlib/Compflags text eol=lf |
| 195 |
stdlib/hashbang -text |
| 196 |
tools/autogen text eol=lf |
| 197 |
tools/bump-magic-numbers eol=lf typo.long-line |
| 198 |
tools/ci/inria/bootstrap/remove-sinh-primitive.patch -text |
| 199 |
tools/ci/inria/bootstrap/script text eol=lf |
| 200 |
tools/ci/inria/dune-build/script text eol=lf |
| 201 |
tools/ci/inria/launch text eol=lf |
| 202 |
tools/ci/inria/light text eol=lf |
| 203 |
tools/ci/inria/main text eol=lf |
| 204 |
tools/ci/inria/other-configs/script text eol=lf |
| 205 |
tools/ci/inria/sanitizers/script text eol=lf |
| 206 |
tools/ci/inria/step-by-step-build/script text eol=lf |
| 207 |
tools/check-typo text eol=lf |
| 208 |
tools/check-symbol-names text eol=lf |
| 209 |
tools/msvs-promote-path text eol=lf |
| 210 |
tools/magic text eol=lf |
| 211 |
tools/ocamlsize text eol=lf |
| 212 |
tools/pre-commit-githook text eol=lf |
| 213 |
runtime/caml/sizeclasses.h typo.missing-header |
| 214 |
|
| 215 |
/tools/gdb_ocamlrun.py typo.long-line |
| 216 |
|
| 217 |
# Tests which include references spanning multiple lines fail with \r\n |
| 218 |
# endings, so use \n endings only, even on Windows. |
| 219 |
testsuite/tests/basic-modules/anonymous.ml text eol=lf |
| 220 |
testsuite/tests/formatting/test_locations.ml text eol=lf |
| 221 |
testsuite/tests/functors/functors.ml text eol=lf |
| 222 |
testsuite/tests/parsing/attributes.ml text eol=lf |
| 223 |
testsuite/tests/parsing/extensions.ml text eol=lf |
| 224 |
testsuite/tests/parsing/hash_ambiguity.ml text eol=lf |
| 225 |
testsuite/tests/parsing/int_and_float_with_modifier.ml text eol=lf |
| 226 |
testsuite/tests/parsing/pr6865.ml text eol=lf |
| 227 |
testsuite/tests/parsing/quotedextensions.ml text eol=lf |
| 228 |
testsuite/tests/parsing/shortcut_ext_attr.ml text eol=lf |
| 229 |
testsuite/tests/tool-ocamlc-stop-after/stop_after_parsing_impl.ml text eol=lf |
| 230 |
testsuite/tests/tool-ocamlc-stop-after/stop_after_parsing_intf.mli text eol=lf |
| 231 |
testsuite/tests/tool-ocamlc-stop-after/stop_after_typing_impl.ml text eol=lf |
| 232 |
testsuite/tests/translprim/module_coercion.ml text eol=lf |
| 233 |
|
| 234 |
# This is forced to \n to allow the Cygwin testsuite to pass on a |
| 235 |
# Windows-checkout |
| 236 |
testsuite/tests/parsetree/locations_test.ml text eol=lf |