Menu

#1288 MethodNamingConventions for native should be deactivated

PMD-5.2.3
closed
None
PMD
3-Major
Feature-Request
5.1.3
2014-12-21
2014-12-02
No

protected final native void surfunc(Point3d[] points, double xmin, double xmax, double ymin, double ymax, double binx, double biny, double tension, float[] data);

=> There is a MethodNamingConventions error due to underscores, but this is a false positive as it's a "native" function, so we cannot force its name and cannot remove the underscores !

Could you modify this rule to ignore native functions ?
Regards,

Related

Issues: #1288

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-12-17
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
    • Type: Bug --> Feature-Request
     
    • Denis SEMMAU

      Denis SEMMAU - 2014-12-18

      Great !
      Thanks a lot !

      De : Andreas Dangel [mailto:adangel@users.sf.net]
      Envoyé : mercredi 17 décembre 2014 21:58
      À : [pmd:bugs]
      Objet : [pmd:bugs] #1288 MethodNamingConventions for native should be deactivated

      • status: open --> closed
      • assigned_to: Andreas Dangel
      • Milestone: New Tickets --> PMD-Next
      • Type: Bug --> Feature-Request
      • Comment:

      Added a new property checkNativeMethods with which you can ignore native methods.
      Will be included in the next release.


      [bugs:#1288]http://sourceforge.net/p/pmd/bugs/1288 MethodNamingConventions for native should be deactivated

      Status: closed
      Milestone: PMD-Next
      Created: Tue Dec 02, 2014 01:47 PM UTC by Denis SEMMAU
      Last Updated: Tue Dec 02, 2014 01:47 PM UTC
      Owner: Andreas Dangel

      protected final native void surfunc(Point3d[] points, double xmin, double xmax, double ymin, double ymax, double binx, double biny, double tension, float[] data);

      => There is a MethodNamingConventions error due to underscores, but this is a false positive as it's a "native" function, so we cannot force its name and cannot remove the underscores !

      Could you modify this rule to ignore native functions ?
      Regards,


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pmd/bugs/1288/https://sourceforge.net/p/pmd/bugs/1288

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/https://sourceforge.net/auth/subscriptions

       

      Related

      Issues: #1288

  • Andreas Dangel

    Andreas Dangel - 2014-12-17

    Added a new property checkNativeMethods with which you can ignore native methods.
    Will be included in the next release.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.