Answers.Body: <p>what sort of code style errors are you coming up against? CiviCRM's code style is very similar to Drupal's code style. I found some information about setting up NetBeans on CiviCRM's wiki, here:
  <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/IDE+Settings+to+Meet+Coding+Standards#IDESettingstoMeetCodingStandards-NetBeans" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/IDE+Settings+to+Meet+Coding+Standards#IDESettingstoMeetCodingStandards-NetBeans</a></p>
  
  <p>Hopefully these links provide the right answers. Otherwise let's update the wiki page!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T09:09:53.233Z
Answers.Text: Thanks for coming back to me.  I followed, I believe, the instruction in John's comment above in setting up NetBeans. Basically, Jenkins complains about things like the tabulation of arrays, that else statements need to start on a new line etc.  It ignores commenting errors.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T09:20:35.500Z
Answers.Text: I was unable to edit this last comment as I ran out of time.  Here it is again. Thanks for coming back to me.  I followed, I believe, the instruction in John's comment above in setting up NetBeans. Basically, Jenkins appears to ignore Commenting, most WhiteSpace and Naming Conventions errors, whilst picking up on Array and ControlStructures.  If NetBeans could ignore Commenting errors it would help greatly.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-14T08:51:09.927Z
Answers.Text: Sorry, what do you mean by 'ignore commenting errors'? Speaking from personal experience Jenkins normally kicks out my PRs when I've got a whitespace wrong somewhere ;], so I'm not sure what yo mean by Jenkins ignoring whitespace errors? Would be great for us to update the documentation if there is something we can improve in the configuration though.
Answers.UserDisplayName: John
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-15T14:43:45.850Z
Answers.Text: NetBeans throws up lots of Commenting errors, all about defects in the comments associated with the code.  Jenkins ignores them.
  [![Output from NetBeans code sniffer][1]][1]
  Jenkins also ignores the first WhiteSpace > OpenTagNewline
  
  I could only add images to the comment by being logged out.  I could then get a preview, too.  I then copied the comment, logged in and pasted it.
  
  
    [1]: https://i.sstatic.net/pY8w3.png
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-15T14:45:26.800Z
Answers.Text: And I can't see the image when logged in, but can when logged out in Edge.  In Chrome I can't see it at all except by clicking on the link.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-11T21:33:03.333Z
Answers.LastActivityDate: 2016-10-11T21:33:03.333Z
Answers.UserDisplayName: John
Body: <p>I have submitted a few PRs recently for code developed using NetBeans.  I have configured NetBeans Code Sniffer to use what I think are the coding standards for CiviCRM.  However, this produces lots of errors/observations regarding comments etc. that Jenkins, the system that checks coding standards in GitHub CiviCRM.  The result is that it is <em>very</em> easy to miss those errors to which Jenkins objects. Does anyone know how to solve this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-12T01:47:17.363Z
Comments.Text: Stephen - if the question is updated to include links to examples of coding standards checks that failed for your PR (ie, the Jenkins output you got), it might be easier to tell what config changes are required?
Comments.UserDisplayName: Chris Burgess
Tags: <developer>
Title: GitHub, Jenkins and coding standards
ThreadText: # GitHub, Jenkins and coding standards
  
  (Asked by: username_0 on 2016-10-10)
  
  I have submitted a few PRs recently for code developed using NetBeans. I have configured NetBeans Code Sniffer to use what I think are the coding standards for CiviCRM. However, this produces lots of errors/observations regarding comments etc. that Jenkins, the system that checks coding standards in GitHub CiviCRM. The result is that it is *very* easy to miss those errors to which Jenkins objects. Does anyone know how to solve this?
  
  **Tags:** developer
  
  > **Comments:**
  > **username_1**: Stephen - if the question is updated to include links to examples of coding standards checks that failed for your PR (ie, the Jenkins output you got), it might be easier to tell what config changes are required?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-10-11. Score: 1
  
  what sort of code style errors are you coming up against? CiviCRM's code style is very similar to Drupal's code style. I found some information about setting up NetBeans on CiviCRM's wiki, here:
  <https://wiki.civicrm.org/confluence/display/CRMDOC/IDE+Settings+to+Meet+Coding+Standards#IDESettingstoMeetCodingStandards-NetBeans>
  
  Hopefully these links provide the right answers. Otherwise let's update the wiki page!
  
  > **Comments:**
  > **username_0**: Thanks for coming back to me.  I followed, I believe, the instruction in username_2's comment above in setting up NetBeans. Basically, Jenkins complains about things like the tabulation of arrays, that else statements need to start on a new line etc.  It ignores commenting errors.  
  > **username_0**: I was unable to edit this last comment as I ran out of time.  Here it is again. Thanks for coming back to me.  I followed, I believe, the instruction in username_2's comment above in setting up NetBeans. Basically, Jenkins appears to ignore Commenting, most WhiteSpace and Naming Conventions errors, whilst picking up on Array and ControlStructures.  If NetBeans could ignore Commenting errors it would help greatly.  
  > **username_2**: Sorry, what do you mean by 'ignore commenting errors'? Speaking from personal experience Jenkins normally kicks out my PRs when I've got a whitespace wrong somewhere ;], so I'm not sure what yo mean by Jenkins ignoring whitespace errors? Would be great for us to update the documentation if there is something we can improve in the configuration though.  
  > **username_0**: NetBeans throws up lots of Commenting errors, all about defects in the comments associated with the code.  Jenkins ignores them. [![Output from NetBeans code sniffer][1]][1] Jenkins also ignores the first WhiteSpace > OpenTagNewline  I could only add images to the comment by being logged out.  I could then get a preview, too.  I then copied the comment, logged in and pasted it.     [1]: https://i.sstatic.net/pY8w3.png  
  > **username_0**: And I can't see the image when logged in, but can when logged out in Edge.  In Chrome I can't see it at all except by clicking on the link.  
  
  ---
  
  