miss_hit icon indicating copy to clipboard operation
miss_hit copied to clipboard

Set specific newline character for autofix

Open paco-sevilla opened this issue 8 months ago • 1 comments

What kind of feature is this?

  • New feature in MISS_HIT

Your MATLAB/Octave environment

  • Both MATLAB and Octave
  • Any release/version

MISS_HIT component affected

  • Style checker

Describe the solution you'd like It would be great if the user could set a specific newline character in the configuration file, which would be used when calling mh_style --fix. The options could be lf, crlf and platform_dependent, which would set newline= to "\n", "\r\n" or None respectively in the open function here: https://github.com/florianschanda/miss_hit/blob/f01fbf9cd43c52fdb8fe6dce162c9772637ec199/miss_hit_core/work_package.py#L114 This would be of great help to get reproducible results for teams developing in multiple different platforms.

paco-sevilla avatar Jul 01 '24 22:07 paco-sevilla