coala / coala-bears

Bears for coala
https://coala.io/
GNU Affero General Public License v3.0
294 stars 580 forks source link

GofmtBear and SpaceConsistencyBear defaults are incompatible #899

Open jayvdb opened 8 years ago

jayvdb commented 8 years ago

GofmtBear uses tabs for indentation and spaces for alignment, with 8 space tabs, and can not be altered. SpaceConsistencyBear uses spaces for indentation by default. If if it is configured to use tabs, i should make exactly the same changes as GofmtBear.

So using both together is either problematic (and should emit an error), or redundant processing (and should emit a warning).

jack17529 commented 7 years ago

@Makman2 @jayvdb we can make a function that asks user how to interpret the code according to tabs or spaces and then execute the function in SpaceConsistencyBear seems too easy. If you like then please assign this to me as for me cobot is not working.