Skip to content

style-check and style-fix do not agree #3271

@alex-courtis

Description

@alex-courtis

style-check finds most but not all formatting problems that style-fix does.

There are outstanding style issues that result in style-fix reformatting files outside of the scope of the change e.g. #3261

Replication at 516f95e

make style-check

OK

make style-fix

files changed

git diff --name-only
lua/nvim-tree/_meta/api/decorator.lua
lua/nvim-tree/_meta/api/decorator_example.lua
lua/nvim-tree/_meta/config/renderer.lua

Options:

  1. Try to fix the issue with style-check luals call. May be difficult as style-fix uses a different tool CodeFormat
  2. Add a test similar to help-check that runs style-fix and fails on diffs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions