Skip to content

Commit 075870d

Browse files
authored
Remove reuse lint check (#6810)
## Summary For some reason, `reuse lint` has slowly gotten slower and slower to run on my machine over the past few months. To the point where I can't be bothered to run it anymore pre commit. ## Testing N/A Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
1 parent dfb6478 commit 075870d

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

scripts/pre-commit

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -53,40 +53,7 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
5353
cd "$ROOT_DIR"
5454

5555
# ============================================================================
56-
# CHECK 1: REUSE Compliance (License Headers)
57-
# ============================================================================
58-
# Ensure all files have proper license headers as required by REUSE specification.
59-
# This helps maintain clear licensing information throughout the codebase.
60-
61-
print_header "📜 Checking REUSE compliance"
62-
63-
if ! command -v reuse &> /dev/null; then
64-
print_warning "⚠️ REUSE tool not found - skipping license check."
65-
echo " Install from: https://reuse.software/"
66-
else
67-
# Run REUSE lint check.
68-
REUSE_OUTPUT=$(reuse lint 2>&1)
69-
REUSE_EXIT_CODE=$?
70-
71-
if [ $REUSE_EXIT_CODE -eq 0 ]; then
72-
print_success "✅ REUSE compliant - all files have proper license headers"
73-
else
74-
print_error "❌ REUSE compliance check failed"
75-
echo
76-
# Show first 30 lines of errors.
77-
echo "$REUSE_OUTPUT" | head -30
78-
if [ $(echo "$REUSE_OUTPUT" | wc -l) -gt 30 ]; then
79-
echo
80-
echo "... (output truncated, run 'reuse lint' for full report)"
81-
fi
82-
echo
83-
print_warning "⚠️ To skip checks: git commit --no-verify"
84-
exit 1
85-
fi
86-
fi
87-
88-
# ============================================================================
89-
# CHECK 2: Code Formatting
56+
# CHECK: Code Formatting
9057
# ============================================================================
9158
# Verify that all Rust code and TOML files follow the project's formatting standards.
9259
# Consistent formatting improves readability and reduces merge conflicts.

0 commit comments

Comments
 (0)