GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — biome step: Allow specifying path to JSON config file directly, requires biome 2.0 or higher by blutorange · Pull Request #2548 · diffplug/spotless

Conversation

@blutorange

@blutorange blutorange commented Jul 9, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Not urgent, so feel free to merge and release when you have time.

Starting with biome 2.0, they now allow specifying a configuration file directly. Previously, we had to specify a folder that had to contain a biome.json file. This can be useful when you need to adjust some biome settings for use with spotless. biome now allows creating a config file that inherits from another file, and overwrite only selected settings.

This PR adjust the spotless wrapper for biome to allow specifying configuration files directly, and adds a test for that scenario.

For example:

// biome-spotless.json
{
  "extends": ["./biome.json"],
  "files": {
    "includes": ["**"]
  }
}
// biome.json
{
  "$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 120
  },
  "files": {
    "maxSize": 5097152,
    "includes": []
  }
}
<biome>
  <configPath>${project.basedir}/biome-spotless.json</configPath>
</biome>

After creating the PR, please add a commit that adds a bullet-point under the [Unreleased] section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:

  • a summary of the change
  • either
    • a link to the issue you are resolving (for small changes)
    • a link to the PR you just created (for big changes likely to have discussion)

If your change only affects a build plugin, and not the lib, then you only need to update the plugin-foo/CHANGES.md for that plugin.

If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update CHANGES.md for both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them.

This makes it easier for the maintainers to quickly release your changes :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
awa-xima added 2 commits July 9, 2025 18:58
@awa-xima
biome step: Allow specifying path to JSON config file directly, requi…
38b0c7b
…res biome 2.0 or higher
@awa-xima
Add link to PR to CHANGES.md
b79b2d3
@nedtwigg
nedtwigg merged commit b7c829e into diffplug:main Jul 16, 2025
@nedtwigg

nedtwigg commented Jul 20, 2025

Copy link
Copy Markdown
Member

Published in plugin-gradle 7.2.0 and plugin-maven 2.46.0

blutorange reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@blutorange @nedtwigg @awa-xima
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.