Skip to content

Better Linting And Errors

Compare
Choose a tag to compare
@crismali crismali released this 28 Dec 20:22
· 96 commits to master since this release

A bunch of stuff has been improved here:

  • rake magic_lamp:lint is now a million times better than it was. It now tells you which fixture is broken and all kinds of information about it and the error.
  • You can now visit /magic_lamp/lint in your browser to lint your fixtures. Not the prettiest styles but definitely useful.
  • there are now sub tasks (magic_lamp:lint:config, magic_lamp:lint:files, magic_lamp:lint:fixtures) which do what you'd expect
  • double rendering in a fixture now raises an error
  • redirect_to now raises an error
  • any error with a status over 400 now triggers a generic error in the JavaScript