Animated movie in small town with animals

I watched it many times as a kid. All the characters were animals, and they looked something like Goofy. I don’t even Remember the plot, but i remember two scenes. One is some police officer or sherif getting hit by a shovel in a graveyard at night, and the other is many villiagers searching for someone in caves, with dog leading the way.

Hmmm could be a few, how about Oliver and Company? Or one of the American Tale movies?