|
| 1 | +# Auto-detect text files and normalize line endings |
1 | 2 | * text=auto |
2 | | -*.py text eol=lf |
3 | | -*.pyi text eol=lf |
4 | | -*.sh text eol=lf |
5 | | -*.bash text eol=lf |
6 | | -*.ps1 text eol=crlf |
7 | | -*.psm1 text eol=crlf |
8 | | -*.toml text eol=lf |
9 | | -*.cfg text eol=lf |
| 3 | + |
| 4 | +# Common text files |
| 5 | +*.md text eol=lf |
| 6 | +*.txt text eol=lf |
10 | 7 | *.yml text eol=lf |
11 | 8 | *.yaml text eol=lf |
12 | 9 | *.json text eol=lf |
13 | | -*.md text eol=lf |
| 10 | +*.toml text eol=lf |
| 11 | +*.cfg text eol=lf |
| 12 | +*.ini text eol=lf |
| 13 | +*.xml text eol=lf |
14 | 14 | .gitignore text eol=lf |
15 | 15 | .gitattributes text eol=lf |
| 16 | +.editorconfig text eol=lf |
| 17 | + |
| 18 | +# Shell scripts |
| 19 | +*.sh text eol=lf |
| 20 | +*.bash text eol=lf |
| 21 | +*.cmd text eol=crlf |
| 22 | +*.bat text eol=crlf |
| 23 | +*.ps1 text eol=crlf |
| 24 | +*.psm1 text eol=crlf |
| 25 | +{% if project.type.value in ('cli-python', 'library-python', 'backend-frontend', 'backend-frontend-tray', 'data-ml') %} |
| 26 | + |
| 27 | +# Python |
| 28 | +*.py text eol=lf |
| 29 | +*.pyi text eol=lf |
| 30 | +*.pyx text eol=lf |
| 31 | +{% endif %} |
| 32 | +{% if project.type.value in ('cli-rust', 'library-rust') %} |
| 33 | + |
| 34 | +# Rust |
| 35 | +*.rs text eol=lf |
| 36 | +Cargo.lock text -diff linguist-generated |
| 37 | +{% endif %} |
| 38 | +{% if project.type.value in ('cli-go',) %} |
| 39 | + |
| 40 | +# Go |
| 41 | +*.go text eol=lf |
| 42 | +go.sum text -diff linguist-generated |
| 43 | +{% endif %} |
| 44 | +{% if project.type.value in ('cli-c', 'library-c', 'embedded-hardware') %} |
| 45 | + |
| 46 | +# C / C++ |
| 47 | +*.c text eol=lf |
| 48 | +*.h text eol=lf |
| 49 | +*.cpp text eol=lf |
| 50 | +*.hpp text eol=lf |
| 51 | +*.o binary |
| 52 | +*.a binary |
| 53 | +*.so binary |
| 54 | +*.dll binary |
| 55 | +{% endif %} |
| 56 | +{% if project.type.value in ('web-frontend', 'fullstack-js', 'browser-extension', 'monorepo') %} |
| 57 | + |
| 58 | +# JavaScript / TypeScript |
| 59 | +*.js text eol=lf |
| 60 | +*.ts text eol=lf |
| 61 | +*.jsx text eol=lf |
| 62 | +*.tsx text eol=lf |
| 63 | +*.css text eol=lf |
| 64 | +*.scss text eol=lf |
| 65 | +*.html text eol=lf |
| 66 | +package-lock.json text -diff linguist-generated |
| 67 | +yarn.lock text -diff linguist-generated |
| 68 | +pnpm-lock.yaml text -diff linguist-generated |
| 69 | +{% endif %} |
| 70 | +{% if project.type.value == 'dotnet-app' %} |
| 71 | + |
| 72 | +# .NET |
| 73 | +*.cs text eol=lf |
| 74 | +*.csproj text eol=lf |
| 75 | +*.sln text eol=crlf |
| 76 | +*.dll binary |
| 77 | +*.exe binary |
| 78 | +{% endif %} |
| 79 | +{% if project.type.value == 'fpga-rtl' %} |
| 80 | + |
| 81 | +# FPGA / RTL |
| 82 | +*.vhd text eol=lf |
| 83 | +*.vhdl text eol=lf |
| 84 | +*.v text eol=lf |
| 85 | +*.sv text eol=lf |
| 86 | +*.xdc text eol=lf |
| 87 | +*.sdc text eol=lf |
| 88 | +*.tcl text eol=lf |
| 89 | +*.bit binary |
| 90 | +*.bin binary |
| 91 | +*.xsa binary |
| 92 | +*.ltx binary |
| 93 | +*.mmi binary |
| 94 | +{% endif %} |
| 95 | +{% if project.type.value in ('yocto-bsp',) %} |
| 96 | + |
| 97 | +# Yocto / BitBake |
| 98 | +*.bb text eol=lf |
| 99 | +*.bbappend text eol=lf |
| 100 | +*.bbclass text eol=lf |
| 101 | +*.conf text eol=lf |
| 102 | +*.dts text eol=lf |
| 103 | +*.dtsi text eol=lf |
| 104 | +{% endif %} |
| 105 | +{% if project.type.value == 'pcb-hardware' %} |
| 106 | + |
| 107 | +# KiCad / PCB |
| 108 | +*.kicad_pcb binary diff |
| 109 | +*.kicad_sch binary diff |
| 110 | +*.kicad_pro text eol=lf |
| 111 | +*.step binary |
| 112 | +*.wrl binary |
| 113 | +{% endif %} |
| 114 | +{% if project.type.value == 'research-paper' %} |
| 115 | + |
| 116 | +# LaTeX |
| 117 | +*.tex text eol=lf |
| 118 | +*.bib text eol=lf |
| 119 | +*.cls text eol=lf |
| 120 | +*.sty text eol=lf |
| 121 | +*.pdf binary |
| 122 | +*.eps binary |
| 123 | +{% endif %} |
| 124 | +{% if project.type.value == 'api-specification' %} |
| 125 | + |
| 126 | +# API / Protobuf |
| 127 | +*.proto text eol=lf |
| 128 | +*.graphql text eol=lf |
| 129 | +{% endif %} |
| 130 | +{% if project.type.value == 'mobile-app' %} |
| 131 | + |
| 132 | +# Mobile |
| 133 | +*.swift text eol=lf |
| 134 | +*.kt text eol=lf |
| 135 | +*.dart text eol=lf |
| 136 | +*.apk binary |
| 137 | +*.aab binary |
| 138 | +*.ipa binary |
| 139 | +{% endif %} |
| 140 | +{% if project.type.value == 'devops-iac' %} |
| 141 | + |
| 142 | +# Terraform / IaC |
| 143 | +*.tf text eol=lf |
| 144 | +*.tfvars text eol=lf |
| 145 | +*.hcl text eol=lf |
| 146 | +{% endif %} |
0 commit comments