Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/**/.yarn/** linguist-generated
* -text
* -text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if there was a previous .gitattributes rule and what it covered
git log -p --follow -1 -- .gitattributes 2>/dev/null | head -50 || echo "No git history available"

# Check for other text-related gitattributes in the repo
cat .gitattributes 2>/dev/null

Repository: storybookjs/storybook

Length of output: 169


Justify the global * -text setting or use more targeted patterns.

The * -text rule disables Git's automatic line ending normalization for all files in the repository. This is a broad setting that could cause inconsistent line endings across different operating systems (Windows vs. Linux/macOS) for contributors.

If this is intentional, add a comment explaining the rationale. If it's meant to apply only to specific file types (e.g., binary files or generated workflows), replace it with more targeted patterns instead.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.gitattributes at line 2, The global rule "* -text" in .gitattributes
disables Git's EOL normalization for every file; either add a clear comment
above that line explaining why global disabling is required (e.g., repository
contains mixed binary/generated files that must preserve native line endings) or
replace the broad rule with targeted patterns (e.g., list specific binary or
generated file globs such as *.png, *.jar, build/**, generated/** with "-text")
so only those file types are excluded from normalization; update the single "*
-text" entry accordingly and include a short rationale comment if you decide to
keep a global rule.


.github/workflows/*.lock.yml linguist-generated=true merge=ours
Loading
Loading