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

Fixes #1987, no empty files with biome when formatting ignored files #1989

Merged
merged 5 commits into from
Jan 15, 2024

Commits on Jan 9, 2024

  1. Fixes diffplug#1987, no empty files with biome when formatting ignore…

    …d files
    
    The issue happens only with the latest release 1.5.0.
    
    * When the biome output is empty, the contents of the input file to format are used unchanged instead.
    * When biome outputs warnings / errors to stderr, these are now logged. This includes warnings such as
      when biome ignores files. Otherwise people would be left wondering why certain files are not formatted.
    
    I also added a test for this scenarion.
    
    On another note, I mostly use Maven, so I always need to look up how to run tests via Gradle. I added
    a short section to CONTRIBUTING.md that gives some example commands how to run tests for this project,
    especially how to run only a single test.
    awa-xima committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    d73d05e View commit details
    Browse the repository at this point in the history
  2. Update changelog

    awa-xima committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    b82e75b View commit details
    Browse the repository at this point in the history
  3. Format code

    awa-xima committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    c431a70 View commit details
    Browse the repository at this point in the history
  4. Remove null check

    awa-xima committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    ac505ea View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. Configuration menu
    Copy the full SHA
    2b52f75 View commit details
    Browse the repository at this point in the history