Here we have an example of one of the problems of our shallow light-switch boxes (this is the standard depth of 1/2 inch).

The arcing which has taken place here could have been due to a loose wire or skinned insulation, but from the location of the marks, my money is on a conductor being trapped and nicked as the switch was jammed into the box.

Oh, and there's also a code violation here as well.

[Linked Image]
[Linked Image]