I’ve been working on adding security support to OH1 zwave and created a branch from 8b16776f9bf7 last year. Today I was trying to merge the upstream changes into my branch, but the conflict diffs show a lot of whitespace (tabs are now spaces) and formatting changes (max line length, case statement indentation). As you can imagine this is making conflict resolution very difficult.
Couple of questions:
- There really was some massive code cleanup/reformatting to OH1 in the past 6 months, or am I imaging things?
- Is there a script I can run on my old source to convert to the new format? or should I just do it from eclipse?
- Sounds like the new formatter settings are bundled with the new IDE setup instructions. I haven’t been able to get that environment working but I can at least poach the formatter/code cleanup settings from there
I’m hoping if I apply the formatting changes to my branch, then merge from upstream, the diffs will be cleaner.
I don’t mind putting in the effort to sync things up (I know I waited way too long to merge), but I just want to be sure I’m on the right track here…
Thanks!
Dave