atom editor - uncrustify google style c++ config -


i using uncrustify , atom-beautify in atom.io format c++ code according google styling guide. using cpplint verify whether code formatted correctly. using config file https://gist.githubusercontent.com/philectron/1a1e1ccb06d5643cd61d85fc5ecaf429/raw/8813567b8f7dd49003228e19c3d10719b49995a1/uncrustify-preferences.cfg. after beautifying, cpplint reporting following problems.

  1. "at least 2 spaces best between code , comments [whitespace/comments]" not enforced , getting error in multiple places. answer question @ uncrustify - how align trailing comments two-space gap? not working.
  2. "protected: should indented +1 space inside." getting same error private , public well.

if not right way, how can beautify , lint inside atom.io.

well maybe wasn't clear enough in last answer or haven't read enough. here try.

uncrustify has spacing , aligning functions. aligning functions applied after spacing functions (at least in case of trailing comments).

if have align_right_cmt_span set greater 0 aligning functions will also applied on trailing comments. the option align_right_cmt_gap enabled, if set zero, default if not specify it. seems active if not zero. additionally problem have align_right_cmt_at_col set 1.

i not using cpplint, atom-beautify or google styling guide. if want help, upload code examples: input code, output code, expected code.


Comments