Files
brave-core/.gitattributes
T
mkarolin f76e2e7e70 Use .gitattributes.
We should have git configured with core.autocrlf = false on Windows
which will allow .gitattributes to control how files are checked out and
added. Chromium seems to be using this approach as well.

Copied from src/.gitattributes and removed unneeded lines.

Added:

*.css
*.icon
*.patch
*.ts
*.tsx
*.xtb

Added CRLF files:
win_build_output/midl/google_update/*/*.c   text eol=crlf
win_build_output/midl/google_update/*/*.h   text eol=crlf
test/data/tor/tor_control/*_win/controlport   text eol=crlf

This is prompted by CI failing on cr93 branch while parsing an idl
file on Windows after applying our patch that is checked out with
CRLF:

C:/brave-browser/src/brave/vendor/depot_tools/bootstrap-2@3_8_10_chromium_20_bin/python3/bin/python3.exe ../../tools/json_schema_compiler/compiler.py ../../chrome/common/extensions/api/developer_private.idl --root=../../ --destdir=gen --namespace=extensions::api::%(namespace)s --generator=cpp --include-rules=extensions/common/api:extensions::api::%(namespace)s

../../chrome\common\extensions\api\developer_private.idl(235) : Unexpected EoF reached after
    boolean isSplitMode;
^
'canning error. Illegal character '
Traceback (most recent call last):
  File "../../tools/json_schema_compiler/compiler.py", line 211, in <module>
    result = GenerateSchema(opts.generator, file_paths, opts.root, opts.destdir,
  File "../../tools/json_schema_compiler/compiler.py", line 98, in GenerateSchema
    type_generator = CppTypeGenerator(api_model,
  File "C:\bb3\brave-browser\src\tools\json_schema_compiler\cpp_type_generator.py", line 35, in __init__

    self._default_namespace = list(model.namespaces.values())[0]
IndexError: list index out of range
2021-08-05 10:21:28 -04:00

57 lines
1.2 KiB
Plaintext

# Force LF checkout for all source files
*.bin binary
*.c text eol=lf
*.cc text eol=lf
*.cpp text eol=lf
*.css text eol=lf
*.csv text eol=lf
*.grd text eol=lf
*.grdp text eol=lf
*.gn text eol=lf
*.gni text eol=lf
*.h text eol=lf
*.html text eol=lf
*.icon text eol=lf
*.idl text eol=lf
*.in text eol=lf
*.inc text eol=lf
*.java text eol=lf
*.js text eol=lf
*.json text eol=lf
*.json5 text eol=lf
*.md text eol=lf
*.mm text eol=lf
*.mojom text eol=lf
*.patch text eol=lf
*.pdf -diff
*.proto text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.sql text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.xslt text eol=lf
*.xtb text eol=lf
.clang-format text eol=lf
.eslintrc.js text eol=lf
.git-blame-ignore-revs text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
.vpython text eol=lf
DEPS text eol=lf
LICENSE text eol=lf
LICENSE.* text eol=lf
OWNERS text eol=lf
README text eol=lf
README.* text eol=lf
VERSION text eol=lf
# These files should have CRLF
win_build_output/midl/google_update/*/*.c text eol=crlf
win_build_output/midl/google_update/*/*.h text eol=crlf
test/data/tor/tor_control/*_win/controlport text eol=crlf