Skip to content

Conversation

@vLuckyyy
Copy link
Member

Fixes: #1209

@vLuckyyy vLuckyyy requested a review from a team as a code owner October 15, 2025 12:46
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an excellent feature for automating placeholder documentation using annotations. The refactoring in AfkPlaceholderSetup to use the new @PlaceholderDocs annotation is a great improvement for maintainability and clarity. The new API for scanning and resolving these annotations is well-designed. I have a couple of suggestions to further improve the code quality by addressing a minor code clarity issue and some code duplication.

Copy link
Member

@CitralFlo CitralFlo left a comment

Choose a reason for hiding this comment

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

Rollczi: dodatkowe review w commit wip. ogólnie spoko

@Jakubk15 Jakubk15 changed the title Add placeholder documentation automation. GH-1210 Add placeholder documentation automation. Oct 18, 2025

@Override
public PlaceholderResult resolve(EternalScanRecord record, PlaceholderDocs annotation) {
String prefixedName = "%eternalcore_" + annotation.name() + "%";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
String prefixedName = "%eternalcore_" + annotation.name() + "%";
String prefix = "%eternalcore_" + annotation.name() + "%";

public PlaceholderResult resolve(EternalScanRecord record, PlaceholderDocs annotation) {
String prefixedName = "%eternalcore_" + annotation.name() + "%";
return new PlaceholderResult(
prefixedName,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
prefixedName,
prefix,

@vLuckyyy vLuckyyy merged commit 9ea2d1b into master Oct 20, 2025
2 checks passed
@vLuckyyy vLuckyyy deleted the automate-placeholder-docs branch October 20, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate Placeholder Documentation Generation

6 participants