djberg96 ([info]djberg96) wrote,
@ 2008-12-18 21:16:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current mood:determined

Warnings == Errors
I see Piers has discovered that Rails doesn't run -w clean, and it's not alone.

I feel your pain Piers.

Here's the template for all of my Rake test tasks. You should take heed:

desc "Run the test suite"
Rake::TestTask.new("test") do |t|
   t.warning = true
   t.verbose = true
   # ...
end

A few incredibly obnoxious gcc warnings aside, if you treat warnings as errors you're going to end up with better code, and you might just spot a few bugs to boot.


Advertisement


(Read 2 comments)

Post a comment in response:

From:
(will be screened)
Help(will be screened)
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:

 
Notice! This user has turned on the option that logs your IP address when posting. Help
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…