SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    phplint configuration

    Hello dear friends at Sitepoint.

    I'm new to php and just started to create some things on the language.

    Recentely stumble across with a plugin for sublimetext 3 called phplint. Have you tried it ?

    The problem is that this phplint plugin is linting even the must basic variables on the file, and wondering why or if I need to customize it?.

    Does anyone know how to customize the errors?, it is very anoying that simple variables or functions (that I know are correct) marked as errors.

    Any help with this is very much apreciated. Or maybe some read ... a light !?

    Thanks.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,161
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    AFAIK Lint checks both style and syntax.

    I don't know how picky it is, but if you know the code has the correct syntax it might be it doesn't like your style. eg.
    You are using spaces to indent and it wants tabs.
    You are using camelCase names and it wants under_scrores
    (or vice-versus)

    IMHO having a certain style is important when others are working on the code or you're sharing the code. Otherwise, if you're the only one working with the code as long as you have a style you like and are consistant you'll be fine.

    Sorry, I don't know if Lint has the option of turning of style checking. But definately leave syntax checking on.

  3. #3
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mittineague View Post
    AFAIK Lint checks both style and syntax.

    I don't know how picky it is, but if you know the code has the correct syntax it might be it doesn't like your style. eg.
    You are using spaces to indent and it wants tabs.
    You are using camelCase names and it wants under_scrores
    (or vice-versus)

    IMHO having a certain style is important when others are working on the code or you're sharing the code. Otherwise, if you're the only one working with the code as long as you have a style you like and are consistant you'll be fine.

    Sorry, I don't know if Lint has the option of turning of style checking. But definately leave syntax checking on.

    Yes it is very picky.

    Maybe I will use it sometime after a lot reading on how to configure the plugin.

    Thank you very much Mittineague for taking the time to answer.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •