I'm confused, what exactly do you want? Do I miss a special restriction?

Lint means compile-time checking, but perl methods are evaluated at run-time and there are myriads of different OOP moduls for perl abstracting the interface. Not mentioning dynamic AUTOLOAD of methods or adding methods on the fly at run-time.

This question is strongly related to static parsing and why refactoring and intellisense are so complicated to realize in perl.

You see there is no simple answer if your not providing more information about your case.

In general the answer is: "No it's not possible while allowing perl's full dynamic flexibility!"

Cheers Rolf

UPDATE: One approach could be to simulate static typing, see Re: Compile-time/Auto-test method checking?.


In reply to Re: linting for undefined object methods by LanX
in thread linting for undefined object methods by aespen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.