language agnostic - How to make developers follow coding standards? -


How can developers follow the coding standard?

In our company:

  1. I have given the documents and they do not have the patience to read and follow it.
  2. I tried to tell them again and again "Please do it in such a way" They have cleared their head, but still do it incorrectly
  3. We are doing a project for the third time and still do not want them to follow it properly.

I am very tired of this now. What is the best way to set standards for coding and make sure they follow them?

Edit:

There are only 10 developers in my team. They are under pressure and do the code nicely to comment on time, because the product from our management There is more pressure to complete. What will be the solution for this?

Automate it.

You can integrate StyleCop and FxCop (Code Analysis VS2008) in your build process.

In this way, when someone examines something in which the rule breaks, the build brakes and they have to fix it. If you do not have any automated build process that supports it, Always run the device manually before the review etc.

You probably will not find a perfect match for your coding standards, but you should be able to close something beautiful.

StyleCop

FxCop:


Comments