Skip to content
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

[IJ Plugin] Add 'Input class constructor issue' inspection #5427

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Dec 4, 2023

Screen.Recording.2023-12-04.at.19.15.58.mov

Fix for #5374

Copy link

netlify bot commented Dec 4, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit c041c7b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/656f11c318489c000876be9e

Copy link
Contributor

@martinbonnin martinbonnin left a comment

Choose a reason for hiding this comment

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

A bunch of wording nitpicks but looks great overall!

implementationClass="com.apollographql.ijplugin.inspection.ApolloInputConstructorNamedArgsInspection"
groupPathKey="inspection.group.graphql"
groupKey="inspection.group.graphql.apolloKotlin"
key="inspection.inputConstructorNamedArgs.displayName"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can there be a description that explains the issue in more depth?

@BoD BoD merged commit bba855e into main Dec 5, 2023
9 checks passed
@BoD BoD deleted the ij-plugin-input-constructor-inspectio branch December 5, 2023 14:37
Comment on lines +12 to +13
context(LocalInspectionTool)
fun ProblemsHolder.registerProblem(
Copy link
Contributor

Choose a reason for hiding this comment

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

🤯 Do we have context receivers in the codebase now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahaha yeah actually I've used them before in the plugin code 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

Plugin is probably OK but I'm not sure about the compatibility implication of those so I'd rather not use them in the libs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed 👍 We have a bit more leeway in the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants