<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>51029</bug_id>
          
          <creation_ts>2010-12-14 05:14:19 -0800</creation_ts>
          <short_desc>Would like a pre-commit hook that checks for well-formedness of .vcproj/.vsprops XML files</short_desc>
          <delta_ts>2015-12-07 10:08:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>mrowe</cc>
    
    <cc>sfalken</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>321907</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-12-14 05:14:19 -0800</bug_when>
    <thetext>It&apos;s very common for people to introduce XML syntax errors when manually editing .vcproj/.vsprops files (see, e.g., &lt;http://trac.webkit.org/changeset/73914&gt; and &lt;http://trac.webkit.org/changeset/73921&gt;). It would be nice to have a pre-commit hook that would check that these files are well-formed. Steve suggested using `xmllint --noout`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322066</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-14 11:30:30 -0800</bug_when>
    <thetext>Maybe this could be as early as svn-create-patch and/or style checker, in addition to commit hook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322287</commentid>
    <comment_count>2</comment_count>
    <who name="William Siegrist">wsiegrist</who>
    <bug_when>2010-12-14 15:25:42 -0800</bug_when>
    <thetext>This is possible, but is a pre-commit hook the right solution? If we wanted pre-commit hooks to verify our syntax, why not have a tool that lints xml as well as C++, Python, IDL, etc.  In other words, why does XML linting need to block commits but not C++?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322332</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Falkenburg">sfalken</who>
    <bug_when>2010-12-14 16:25:07 -0800</bug_when>
    <thetext>Here are some recent build fixes required after incorrect edits to WebCore.vcproj that would have been caught by an XML well-formedness check:

http://trac.webkit.org/changeset/73887/trunk/WebCore/WebCore.vcproj/WebCore.vcproj
http://trac.webkit.org/changeset/73773/trunk/WebCore/WebCore.vcproj/WebCore.vcproj
http://trac.webkit.org/changeset/72795/trunk/WebCore/WebCore.vcproj/WebCore.vcproj

Adding this to the style checker might be an ok place to start.
This seems worse than a simple lint or style issue since these aren&apos;t stylistic problems (they&apos;re fatal errors).
Not sure where the line is between pre-commit hook and style checker. We check for tabs in pre-commit hook for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322574</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-12-15 04:54:50 -0800</bug_when>
    <thetext>Let&apos;s start with making check-webkit-style catch these errors, and then see if more is needed. I filed bug 51103.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>