-
-
Notifications
You must be signed in to change notification settings - Fork 106
chore: misc changes for 2.9.0 #1873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ymc9
commented
Nov 18, 2024
- Jetbrains changelog update
- Removed redundant new line at the end of generated code
- TRPC test baselines update
- Jetbrains changelog update - Removed redundant new line at the end of generated code - TRPC test baselines update
📝 WalkthroughWalkthroughThe pull request introduces updates to the changelog for the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (1)
packages/ide/jetbrains/CHANGELOG.md (1)
5-7
: Remove unnecessary empty line after section headerThe empty line after "### Added" is inconsistent with the formatting of other sections in the changelog.
### Added - - Support for using `@@validate` attribute inside type declarations.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (32)
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/Post.nuxt.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/User.nuxt.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/nuxt.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/utils.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/helper.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/Post.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/User.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/index.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/Post.nuxt.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/User.nuxt.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/nuxt.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/utils.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/helper.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/Post.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/User.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/index.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/Post.next.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/User.next.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/next.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/utils.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/helper.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/Post.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/User.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/index.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/Post.react.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/User.react.type.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/react.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/utils.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/helper.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/Post.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/User.router.ts
is excluded by!**/generated/**
,!**/generated/**
packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/index.ts
is excluded by!**/generated/**
,!**/generated/**
📒 Files selected for processing (2)
packages/ide/jetbrains/CHANGELOG.md
(1 hunks)packages/sdk/src/code-gen.ts
(1 hunks)
🔇 Additional comments (2)
packages/ide/jetbrains/CHANGELOG.md (1)
7-7
: LGTM! Clear and concise feature documentation
The changelog entry effectively communicates the new feature addition and follows the established documentation style.
packages/sdk/src/code-gen.ts (1)
33-33
: LGTM! Verify generated code formatting
The indentation change aligns with the PR objective to remove redundant newlines. This should result in cleaner generated code output.
Let's verify the generated code formatting:
✅ Verification successful
Formatting change verified - single newline maintained
The code-gen.ts file maintains exactly one newline at the end of the file, which is the standard formatting practice. The change aligns with the PR objective of removing redundant newlines while preserving proper file formatting.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check the formatting of recently generated files to ensure proper indentation
# Find and examine recently modified generated files
find . -type f -name "*.generated.*" -o -name "*.gen.*" -mtime -1 | while read -r file; do
echo "=== Checking formatting of $file ==="
# Check for any lines with only whitespace at the end of the file
tail -n 5 "$file" | awk 'NF==0{print NR": empty line"}'
# Show the last few lines to verify no extra newlines
tail -n 5 "$file"
done
Length of output: 15113
Script:
#!/bin/bash
# Let's search for recently modified files in the repository to find actual generated files
# rather than the node_modules content
# Find files modified in the last day, excluding node_modules
find . -type f -mtime -1 -not -path "*/node_modules/*" -not -path "*/.git/*" | while read -r file; do
# Check if it looks like a generated file
if [[ "$file" =~ \.(generated|gen)\. ]] || grep -l "Generated by" "$file" > /dev/null 2>&1; then
echo "=== Found potentially generated file: $file ==="
# Show the last few lines to check formatting
echo "Last few lines:"
tail -n 5 "$file"
echo
# Check if file ends with exactly one newline
if [ -s "$file" ]; then
if [ -z "$(tail -c1 "$file")" ]; then
echo "File ends with a newline"
else
echo "File does not end with a newline"
fi
fi
echo "---"
fi
done
Length of output: 135012
Script:
#!/bin/bash
# Let's check for recently modified files in the repository to find actual generated files
# and examine their content, focusing on the end of files
# Find files modified in the last day, excluding node_modules and .git
find . -type f -mtime -1 -not -path "*/node_modules/*" -not -path "*/.git/*" | while read -r file; do
# Check if it's a text file
if file "$file" | grep -q "text"; then
echo "=== Examining $file ==="
# Show the last few lines and check for trailing newlines
echo "Last few lines:"
tail -n 3 "$file"
echo
# Check if file ends with exactly one newline
if [ -s "$file" ]; then
if [ -z "$(tail -c1 "$file")" ]; then
echo "File ends with a newline"
else
echo "File does not end with a newline"
fi
# Count trailing newlines
nl_count=$(tail -c2 "$file" | tr -cd '\n' | wc -c)
echo "Number of trailing newlines: $nl_count"
fi
echo "---"
fi
done
Length of output: 123137
Script:
#!/bin/bash
# Let's try a different approach to check generated files and their formatting
# using cat and wc to examine file content and newlines
# First, let's find any recently generated files
find . -type f -mtime -1 -not -path "*/node_modules/*" -not -path "*/.git/*" -exec sh -c '
for file do
if head -n1 "$file" | grep -q "Generated" || echo "$file" | grep -E "\.(generated|gen)\." > /dev/null; then
echo "=== Examining generated file: $file ==="
# Count total lines and trailing newlines
total_lines=$(wc -l < "$file")
echo "Total lines: $total_lines"
# Check trailing newlines
if [ -s "$file" ]; then
trailing_newlines=$(tail -c2 "$file" | tr -cd "\n" | wc -c)
echo "Trailing newlines: $trailing_newlines"
# Show last few lines
echo "Last few lines:"
tail -n 3 "$file"
fi
echo "---"
fi
done
' sh {} +
# Also check the specific file mentioned in the review
echo "=== Examining code-gen.ts ==="
if [ -f "./packages/sdk/src/code-gen.ts" ]; then
echo "Last few lines:"
tail -n 5 "./packages/sdk/src/code-gen.ts"
echo
if [ -s "./packages/sdk/src/code-gen.ts" ]; then
trailing_newlines=$(tail -c2 "./packages/sdk/src/code-gen.ts" | tr -cd "\n" | wc -c)
echo "Trailing newlines: $trailing_newlines"
fi
fi
Length of output: 1645