<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rake task for syntax checking a Ruby on Rails project</title>
	<atom:link href="http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/</link>
	<description>The guys behind LivingSocial</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:58:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joe Grossberg</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-156</link>
		<dc:creator>Joe Grossberg</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-156</guid>
		<description>Ooh, interesting.

How would this approach work for CSS though, since it&#039;s not executed? Are you talking about using a W3C validator or the like?</description>
		<content:encoded><![CDATA[<p>Ooh, interesting.</p>
<p>How would this approach work for CSS though, since it&#8217;s not executed? Are you talking about using a W3C validator or the like?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Manges</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-157</link>
		<dc:creator>Dan Manges</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-157</guid>
		<description>Wouldn&#039;t it be much better to use tests? At least for the .rb and .erb files.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be much better to use tests? At least for the .rb and .erb files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bailey</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-158</link>
		<dc:creator>Chris Bailey</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-158</guid>
		<description>Pretty cool.  I ran it on my current project, which uses Edge Rails/Rails 2.1, and every single error it spit out was from vendor/rails :)</description>
		<content:encoded><![CDATA[<p>Pretty cool.  I ran it on my current project, which uses Edge Rails/Rails 2.1, and every single error it spit out was from vendor/rails <img src='http://blog.hungrymachine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szeryf</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-159</link>
		<dc:creator>szeryf</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-159</guid>
		<description>If you have Rails in vendor/rails, you might want to skip it in checking too. To do this, change the line 23 (3rd line of task :check_ruby) to:

    next if file.match(&quot;vendor/.*/generators/.*/templates&quot;)

It also barfs on several Rails yml files, so I added the following before line 37 (3rd line of task :check_yml):

    next if file.match(&quot;vendor/rails&quot;)

Other than that, it&#039;s really cool! :)</description>
		<content:encoded><![CDATA[<p>If you have Rails in vendor/rails, you might want to skip it in checking too. To do this, change the line 23 (3rd line of task :check_ruby) to:</p>
<p>    next if file.match(&quot;vendor/.*/generators/.*/templates&quot;)</p>
<p>It also barfs on several Rails yml files, so I added the following before line 37 (3rd line of task :check_yml):</p>
<p>    next if file.match(&quot;vendor/rails&quot;)</p>
<p>Other than that, it&#8217;s really cool! <img src='http://blog.hungrymachine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Warren</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-160</link>
		<dc:creator>Warren</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-160</guid>
		<description>Joe: I haven&#039;t found one yet, but I would imagine that there is a regular expression that describes valid syntax for a CSS file.  Syntax checking would simply be a matter of checking each .css file against this regexp.  Hitting the W3C service would most likely be very slow.

Dan: Test don&#039;t necessarily cover every single file in your project.

Chris/szeryf: I hadn&#039;t thought of skipping vendor/rails... great idea! I&#039;ve updated the post to reflect that!  Skipping vendor/rails should also speed this task up significantly.</description>
		<content:encoded><![CDATA[<p>Joe: I haven&#8217;t found one yet, but I would imagine that there is a regular expression that describes valid syntax for a CSS file.  Syntax checking would simply be a matter of checking each .css file against this regexp.  Hitting the W3C service would most likely be very slow.</p>
<p>Dan: Test don&#8217;t necessarily cover every single file in your project.</p>
<p>Chris/szeryf: I hadn&#8217;t thought of skipping vendor/rails&#8230; great idea! I&#8217;ve updated the post to reflect that!  Skipping vendor/rails should also speed this task up significantly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Bair</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-161</link>
		<dc:creator>Adam Bair</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-161</guid>
		<description>Using it now...  Look at that, it&#039;s already found some ugly.  I set it up to ignore vendor/plugins as well as vendor/rails.  Thanks guys, nice work!</description>
		<content:encoded><![CDATA[<p>Using it now&#8230;  Look at that, it&#8217;s already found some ugly.  I set it up to ignore vendor/plugins as well as vendor/rails.  Thanks guys, nice work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-162</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-162</guid>
		<description>Wouldn&#039;t it be better to just use flog or heckle?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be better to just use flog or heckle?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Fairchild</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-163</link>
		<dc:creator>Michael Fairchild</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-163</guid>
		<description>Thanks, on the first run I found an error in my project.  Much better me than someone else. I&#039;ll be using this all the time now.</description>
		<content:encoded><![CDATA[<p>Thanks, on the first run I found an error in my project.  Much better me than someone else. I&#8217;ll be using this all the time now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Christensen</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-164</link>
		<dc:creator>Morten Christensen</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-164</guid>
		<description>RailsCheck (http://railscheck.rubyforge.org/) do all this and more.</description>
		<content:encoded><![CDATA[<p>RailsCheck (<a href="http://railscheck.rubyforge.org/" rel="nofollow">http://railscheck.rubyforge.org/</a>) do all this and more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wikki</title>
		<link>http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/comment-page-1/#comment-165</link>
		<dc:creator>Wikki</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/06/05/rake-task-for-syntax-checking-a-ruby-on-rails-project#comment-165</guid>
		<description>Nice thing, I am going to use it...</description>
		<content:encoded><![CDATA[<p>Nice thing, I am going to use it&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
