S
S
Sergey552013-01-30 06:19:35
.NET
Sergey55, 2013-01-30 06:19:35

Setting StyleCop + Hg?

Good day!
The other day I faced the task of attaching an analyzer to Mercurial when, because some bad programmers do not want to adhere to the code writing standard generally accepted in our organization. And to my surprise, I could not find a single article describing this process. Actually the task: when committing, StyleCop should check the code for compliance with the standard and if something is wrong, reject this very commit with the output of the corresponding message. Does anyone have experience in solving similar problems? And should I use StyleCop or are there any better solutions?
PS: 99% of the code is written in C#.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ostapbender, 2013-02-05
@ostapbender

This will only work if there is a central server. And it won't work fast.
You need a hook on pretxnchangegroup . The general idea is here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question