← Back to team overview

kicad-developers team mailing list archive

Re: 3D-Viewer - Request for merge evaluation

 

Hi Wayne,

I ran several (eye) passes on my source code and corrected it with your guidelines.
Let me know if you find anything that should be fixed.

Regards,
Mario Luzeiro
________________________________________
From: Wayne Stambaugh [stambaughw@xxxxxxxxx]
Sent: 28 June 2016 20:33
To: Mário Luzeiro; kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Kicad-developers] 3D-Viewer - Request for merge evaluation

I haven't looked at all of your latest commits but I saw quite a few
coding policy issues in your code.  Source file maximum line length is
100 characters with an exception for long strings (although I prefer
that they be broken into smaller strings).  I saw a lot of line wrapping
in your code.  There are quite a few places where you missed spaces
between function call parameters and parenthesis.  You have some nested
for() loops where the inner loop is not indented.  While not required, I
would prefer you put the inner for() loop inside curly brackets as well
for improved readability.  Doxygen comments belong in header files
unless it's local to the source file.  You have inlined if statements.
Please put the statement after the if() on the next line and indented.
Move your comments to the line above the code rather than going past the
100 character limit with inline comment.

I'm fine with committing this once the coding policy violations have
been resolved.  Anyone else have any objections to this being merged
into the product branch?  Speak now or forever hold your peace.

@Mario, please keep you branch synched up with the product branch so
I'll be sure to get a clean merge.

Thanks,

Wayne

On 6/28/2016 2:52 PM, Mário Luzeiro wrote:
> Hi Wayne,
>
> From the email below, I took your advice about the camel case and underscores naming and updated my branch,
> renaming variables and some function names, to apply to that policy.
>
> https://code.launchpad.net/~mrluzeiro/kicad/kicad_new3d-viewer
>
> I didn't received any more reports related with freezes or crashes.
> I am not planning at moment any addition, I will just keep it updated with main branch.
>
> Regards,
> Mario Luzeiro


Follow ups

References