c# - StyleCop rule for different bracing style instead of just disabling it? -
1st, lets clear bracing style taste only - is, if team decides on taste, question (within reason).
the problem when use tools stylecop (btw. there other c# tools stylecop? have impression rather singular in c# ecosystem?)
stylecop, default, enforces bracing style, 1 in question found is: curlybracketsformultilinestatementsmustnotshareline
, i.e. enforces
void bla() { return x; }
instead of
void bla() { return x; }
the team, however, really stick second style.
the question ask myself now:
- can stylecop validate other rule, instead of just disabling rule?
- are shooting ourselves in foot deviating stylecop recommendation?
you can create own rule validate specific style.
take on tutorial: creating custom stylecop rules in c#
Comments
Post a Comment