script error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lyle
    New User
    • Feb 2007
    • 1

    script error

    I have the script below, and i keep getting script error: incorrect parameters. Please help. Even though i'm using verbose debugging, the error messages aren't helping. The script runs for ~350 seconds before i get the incorrect parameters message.

    Script:


    log verbose c:\log.log
    criteria rules-based
    filter "*.cs;*.csproj;*.vb;*.vbproj;*.config;*.sln;*.xml; *.xsd;*.js;*.bat;*.fxcop;"
    load C:\Data\Curr C:\Data\Prev
    expand all
    select all
    file-report &
    layout:composite &
    options:ignore-unimportant,display-mismatches,display-context &
    output-to:c:\Data\Reports\projectreport.txt &
    output-options:html-color
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: script error

    Here's a corrected version of your script that should work:

    Code:
    log verbose c:\log.log
    filter "*.cs;*.csproj;*.vb;*.vbproj;*.config;*.sln;*.xml;*.xsd;*.js;*.bat;*.fxcop;"
    load C:\Data\Curr C:\Data\Prev
    expand all
    select all.files
    file-report &
    layout:composite &
    options:ignore-unimportant,display-context &
    output-to:c:\Data\Reports\projectreport.txt &
    output-options:html-color
    The main problem was that you had both "display-context" and "display-mismatches" as options. You can use one or the other, but not both. Also, the criteria rules-based is unnecessary because file-report automatically does a rules-based comparison. If you used a folder-report instead you would need the criteria command. I also changed "select all" to "select all.files" because file-report only operates on files, not folders.
    Chris K Scooter Software

    Comment

    Working...