Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • PeoplePods 0.9
  • Brackets Sprint 8
  • elFinder 2.0 RC1
  • BBClone 0.6.1
  • Twitter Follow Box...
  • Multilingual Press...
  • SimplePie 1.2.1
  • TinyTips 1.2
  • SWFUpload 2.2.0.1 ...
  • Head Cleaner 1.4.2.9
  • Home > Scripts > Development Tools

    Run M-Lint on a directory tree and filter results

    Download button


    Downloads: 290  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.1/5)
    12 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Malcolm Wood | More scripts
    www.mathworks.com
    Freeware 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Matlab
    October 3rd, 2007, 08:09 GMT
    C: \ Development Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    Run M-Lint on a directory tree and filter results description

    Run M-Lint on a directory tree and filter results creates a report showing filtered results from M-Lint

    This function addresses two of the major shortcomings of the M-Lint report which is available in the MATLAB Directory Browser. Firstly, it will perform a recursive analysis, i.e. the current directory and its subdirectories and their subdirectories etc. Secondly, it allows the user to filter out classes of message which are not of interest.

    To run the function on a directory tree, simply change to that directory and type:
    >> runmlint
    An HTML report will be created, showing all the messages issed by M-Lint for files in the current MATLAB directory and its subdirectories.

    To filter the results, create an "options" file. Each line in this file specifies a "filter", which can:
    * filter out all messages with a specific ID
    * filter out all messages in a specific file
    * filter out messages with a specific ID in a specific file
    * filter out all messages for a specific line in a specific file
    * filter out messages with a specific ID for a specific line in a specific file

    The format is described in the Help. Examples are:
    | IgnoreAllID InefficientUsage:AndAnd
    | IgnoreFileID InefficientUsage:InputNotUsed my_dirmyfile.m
    | IgnoreLineID InefficientUsage:AssignmentNotUsed my_dirmyfile.m 99

    Then pass the name of that file as an argument to "runmlint", e.g.
    >> runmlint options.txt
    The filters will be displayed at the top of the report, followed by the messages which have not been filtered out.

    Tested in MATLABs 7.0.1 through 7.2 (R14sp1 through R2006a), but only on Windows. Should be platform independent, though the options file will need to have the right type of separators for the platform it is used on, and file names on all platforms will be compared case-insensitively.

    All file names must be specified relative to the current MATLAB directory. The function will not be tolerant of things like leading or duplicated separators. It also doesn't tolerate directory names which contain spaces.

    Requirements:

    · MATLAB Release: R2006a



    TAGS:

    directory tree | filter results | development tools | directory | tree | filter



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM