Skip to content

Remove init-script from readme #1562

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mlykotom
Copy link
Contributor

No description provided.

@mlykotom mlykotom requested a review from a team as a code owner May 16, 2025 08:04
@mlykotom mlykotom requested a review from JolandaVerhoef May 16, 2025 08:04
Copy link

@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.

Hello @mlykotom, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini here, providing a summary of this pull request. This PR, authored by mlykotom, aims to clean up the documentation by removing an unnecessary flag from the gradlew commands used for running Spotless on individual samples. The --init-script buildscripts/init.gradle.kts flag is no longer required for these specific tasks, simplifying the instructions for users.

Highlights

  • Documentation Update: The primary change is an update to the README.md file, specifically in the 'Formatting' section.
  • Simplify Spotless Commands: The --init-script buildscripts/init.gradle.kts flag has been removed from the gradlew spotlessCheck and gradlew spotlessApply commands listed for checking/formatting single samples, making the commands shorter and simpler.

Changelog

  • README.md
    • Removed the --init-script buildscripts/init.gradle.kts flag from the command to check a single sample for Spotless errors (line 79).
    • Removed the --init-script buildscripts/init.gradle.kts flag from the command to format a single sample using Spotless (line 80).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Old flag is removed,
Commands are now short and sweet,
Docs are clean and clear.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@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 simplifies the Gradle commands in the README.md for running Spotless checks and applying formatting to individual samples. By removing the --init-script buildscripts/init.gradle.kts argument, the instructions are now more concise and easier to follow.

This change appears to be well-justified, as the Spotless plugin and its configuration are now applied to subprojects directly from the root JetLagged/build.gradle.kts file. This centralization makes the explicit init script redundant for commands executed within individual sample directories.

Well done on this simplification! It improves the developer experience when working with individual samples.

Summary of Findings

  • Potential for Further Simplification in Related Scripts: The scripts/format.sh script (line 27: ./scripts/gradlew_recursive.sh --init-script buildscripts/init.gradle.kts spotlessApply) still utilizes the --init-script argument. Given that the Spotless configuration has been centralized in the root build.gradle.kts (applying to subprojects), it's worth investigating if this --init-script argument can also be removed from scripts/format.sh for consistency and to fully deprecate reliance on the init script for Spotless. This is a low severity observation concerning overall project consistency. As per review settings, a direct comment was not made as this file is not part of the current diff and the observation is of low severity.

Merge Readiness

The changes in this pull request are clear, correct, and improve the documentation. The simplification of the README commands is a welcome improvement. I believe this PR is ready to be merged. As a reviewer, I am not authorized to approve the pull request, so please ensure it undergoes any further necessary review and approval processes before merging.

@mlykotom mlykotom enabled auto-merge May 16, 2025 09:32
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