https://bugs.kde.org/show_bug.cgi?id=468147

            Bug ID: 468147
           Summary: .editorconfig with trim_trailing_whitespace = true
                    should not apply globally for existing files
    Classification: Applications
           Product: kate
           Version: 22.12.3
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: ilmari.lauhakan...@libreoffice.org
  Target Milestone: ---

If you have an .editorconfig file defining

trim_trailing_whitespace = true

Kate will also apply the rule for existing files, trimming all trailing
whitespace found in the file. This is not in line with how it is implemented
elsewhere:

https://github.com/editorconfig/editorconfig/wiki/FAQ#my-files-are-not-automatically-reformatted-the-editorconfig-plugin-is-not-working

> Existing files are not reformatted by the plugin (only newly input lines are 
> formatted in the format given in the .editorconfig files)

It's true that this is not defined as strictly in the property description, but
it seems like a sane way to behave.

https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#trim_trailing_whitespace

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to