Files
dbx/.gitattributes

47 lines
2.4 KiB
Plaintext

# Keep formatter-sensitive source files consistent across platforms. The three
# apps/desktop rules below the .vue line exist for
# docs_export_bundle_is_current, which hashes raw bytes: every extension it
# manifests (.css, tsconfig.json, and the one .ts outside src/ —
# vite.docs-export.config.ts) needs an explicit eol=lf, or a CRLF checkout
# fails the guard for files the contributor never touched.
apps/desktop/src/**/*.ts text eol=lf
apps/desktop/src/**/*.vue text eol=lf
apps/desktop/**/*.css text eol=lf
apps/desktop/tsconfig.json text eol=lf
apps/desktop/*.ts text eol=lf
src-tauri/windows/nsis/**/*.nsi text eol=lf
# Keep plugin dev-host formatting checks consistent on Windows checkouts.
plugins/sdk/dev-host/** text=auto eol=lf
# The vendored WebView2 loaders are hash-pinned build inputs. `-text` disables
# any eol conversion on checkout, because build.rs verifies their raw SHA256.
vendor/webview2-com-sys/**/*.lib -text -diff
vendor/webview2-com-sys/**/*.dll -text -diff
# Keep tests available for review and CI without counting them as shipped code
# in GitHub's repository language breakdown.
packages/app-tests/** linguist-vendored
apps/desktop/src/**/__tests__/** linguist-vendored
apps/desktop/src/**/*.spec.ts linguist-vendored
apps/desktop/src/**/*.test.ts linguist-vendored
packages/**/tests/** linguist-vendored
packages/**/*.spec.ts linguist-vendored
packages/**/*.test.ts linguist-vendored
# Build output, committed because the Rust crate embeds it. Minified and large,
# so it would drown every diff and review it appears in — `-diff` makes git
# report "Binary files differ" instead. The manifest stays diffable on purpose:
# it is how a reviewer sees which sources moved. `-text` disables any
# eol conversion on checkout: docs_export_bundle_is_current hashes these two
# files' raw bytes, and an autocrlf checkout would otherwise change those
# bytes and fail the guard for a contributor who touched neither file.
crates/dbx-core/assets/docs-export.js -text -diff linguist-generated
crates/dbx-core/assets/docs-export.css -text -diff linguist-generated
# The pnpm launcher fixtures are captured from real installations and baked into
# the Rust unit tests with include_str!, so the bytes those tests hand to the shim
# parser must not depend on the contributor's core.autocrlf: a CRLF checkout
# silently rewrites all three files.
src-tauri/tests/fixtures/** text eol=lf