-
-
Notifications
You must be signed in to change notification settings - Fork 419
Improve the init
buildgen
code resolving some TODOs
#5866
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
Open
ShreckYe
wants to merge
42
commits into
com-lihaoyi:main
Choose a base branch
from
ShreckYe:improve-init-buildgen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 37 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
cc110dd
Initial plan
Copilot 71a3394
Update a TODO comment
ShreckYe 852b470
Convert generic type parameters to abstract type members in BuildGenBase
Copilot 98a7dd3
Rename `optional` in `BuildGenUtil` to `renderIfArgsNonEmpty`
ShreckYe 5f421c2
Address all review comments: remove TODO, fix type parameters, format…
Copilot a309e67
Rename `Config` to `MavenAndGradleCommonConfig` in `BuildGenUtil` to …
ShreckYe 5111c97
[autofix.ci] apply automated fixes
autofix-ci[bot] 8098b5d
Remove redundant explicit inherited type members
ShreckYe 3308601
Merge branch 'copilot/fix-9475931d-2457-49c4-9a71-fd7144c9d4ef' of ht…
ShreckYe 7cf17b2
Reformat
ShreckYe 75bb185
[autofix.ci] apply automated fixes
autofix-ci[bot] 8b5fb6a
Remove `moduleOptionTree` which seems redundant
ShreckYe 3572715
Review the TODO `// TODO consider filtering out projects without the …
ShreckYe 26f1f55
Merge pull request #1 from ShreckYe/copilot/fix-9475931d-2457-49c4-9a…
ShreckYe 2259cab
Add a missing backtick in a comment
ShreckYe 4ab8c14
Remove the "filter out Gradle projects without the `java` plugin" TODO
ShreckYe 855c022
Replace all Yoda conditions concerning `null`
ShreckYe 403d495
Find and replace more Yoda conditions using GitHub Copilot
ShreckYe e7a8240
Fix some mistakes in commit 855c0222fd8690981b455f8748ac8d1eded4bbc0
ShreckYe dfe3d14
Merge branch 'BuildGenUtil-rename-Config-to-MavenAndGradleCommonConfi…
ShreckYe b6154dd
Merge branch 'BuildGenUtil-rename-optional-to-renderIfArgsNonEmpty' i…
ShreckYe c3b9483
Merge branch 'remove-redundant-moduleOptionTree' into improve-init-gu…
ShreckYe e781428
Merge branch 'build-gen-base-convert-type-parameters-to-abstract-type…
ShreckYe 99f28bd
Merge branch 'sbt-ExportBuildPlugin-add-missing-backtick' into improv…
ShreckYe 8b838ec
Merge branch 'remove-filter-out-Gradle-projects-without-java-plugin-t…
ShreckYe 4672eef
Merge branch 'replace-yoda-conditions' into improve-init-guildgen
ShreckYe ae7ea49
Rename `IrBuild` to `IrModuleBuild`
ShreckYe a39cd8d
Update a TODO comment to an ordinary comment
ShreckYe ab843e4
Rename `IrTrait` to `IrBaseInfo` and replace the original references …
ShreckYe fb6f970
Remove remaining occurrences of `IrTrait`
ShreckYe 53499b1
Replace remaining occurrences of `IrBuild`
ShreckYe d8860ef
Rename `extractScopedDeps` to `extractConfigurationDeps` in `GradleBu…
ShreckYe 43bf2da
Update a TODO to an ordinary comment
ShreckYe d1f801c
Change `I` to `(BuildExport, Tree[Node[Option[Project]]])` in `SbtBui…
ShreckYe 4932766
Fix format
ShreckYe d787684
Fix format
ShreckYe a1e2a85
[autofix.ci] apply automated fixes
autofix-ci[bot] cc2cacc
Remove the `D` type member
ShreckYe 53ea96f
Rename the type members to be more specific
ShreckYe 09027fa
Rename `_java` to `javaModel`
ShreckYe 4d8d00a
Merge remote-tracking branch 'origin/improve-init-buildgen' into impr…
ShreckYe 45813a1
[autofix.ci] apply automated fixes
autofix-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we have more descriptive names here?
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.
Yeah, they are respectively
Module
,Dependency
,Input
, andConfig
.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.
I also just noticed that
D
/Dependency
is no longer used in the current implementation. Shall I remove it or just keep it for possible use and better readability?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.
If it's unused, remove it.
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.
I have removed
D
and renamedM
andI
.C
is kept as renaming it would conflict with theConfig
nested classes. I guess it can be renamed to something likeConfigT
if needed, but I am not sure whether this is conventional in Scala.