You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Christopher Currens <cu...@gmail.com> on 2012/01/24 08:20:25 UTC

[Lucene.Net] Coding Standards

All,

I just wanted to confirm everyone's stance on the coding guidelines
listed in the wiki.
https://cwiki.apache.org/confluence/display/LUCENENET/Coding+Guidelines

Are these the official guidelines we are using?  If they are, has
anyone who has Resharper already created rules so others don't have
to?  I believe that these are the exact rules used in StyleCop, so
people without Resharper can use those rules to test the code before
check-in, so we may not need to have a ruleset for those who just want
to use the stylecop plugin.

There are things I like and dislike about the Microsoft Design
Standards, specifically, I prefer private variables to start with an
underscore for easy identification.  Either way, making sure there's a
ruleset will be helpful for other people when using tools to conform
to the standards.


Thanks,
Christopher

Re: [Lucene.Net] Coding Standards

Posted by Christopher Currens <cu...@gmail.com>.
Nice.  I noticed with R# 6.1 we can share settings on a
solution/project basis along with easy import.  Do you happen to have
one pre-made with the coding standards we're using, or is one already
checked into the repo, like we have with StyleCop?

Thanks,
Christopher

On Tue, Jan 24, 2012 at 7:24 AM, Michael Herndon
<mh...@wickedsoftware.net> wrote:
> You can. I've used it extensively on the 4.0 branch. painful for any
> Javascript coding or projects, but it has been extremely helpful with
> writing C# code and testing.
>
> On Tue, Jan 24, 2012 at 2:23 AM, Prescott Nasser <ge...@hotmail.com>wrote:
>
>>
>> fyi, I believe you can request a free resharper license for being an
>> active committer to an open source project (ie Lucene.Net).
>>
>>
>>
>> ---------------------------------------- > Date: Mon, 23 Jan 2012 23:20:25
>> -0800 > From: currens.chris@gmail.com > To:
>> lucene-net-dev@lucene.apache.org > Subject: [Lucene.Net] Coding Standards
>> > > All, > > I just wanted to confirm everyone's stance on the coding
>> guidelines > listed in the wiki. >
>> https://cwiki.apache.org/confluence/display/LUCENENET/Coding+Guidelines >
>> > Are these the official guidelines we are using? If they are, has > anyone
>> who has Resharper already created rules so others don't have > to? I
>> believe that these are the exact rules used in StyleCop, so > people
>> without Resharper can use those rules to test the code before > check-in,
>> so we may not need to have a ruleset for those who just want > to use the
>> stylecop plugin. > > There are things I like and dislike about the
>> Microsoft Design > Standards, specifically, I prefer private variables to
>> start with an > underscore for easy identification. Either way, making sure
>> there's a > ruleset will be helpful for other people when using tools to
>> conform > to the standards. > > > Thanks, > Christopher
>>

Re: [Lucene.Net] Coding Standards

Posted by Michael Herndon <mh...@wickedsoftware.net>.
You can. I've used it extensively on the 4.0 branch. painful for any
Javascript coding or projects, but it has been extremely helpful with
writing C# code and testing.

On Tue, Jan 24, 2012 at 2:23 AM, Prescott Nasser <ge...@hotmail.com>wrote:

>
> fyi, I believe you can request a free resharper license for being an
> active committer to an open source project (ie Lucene.Net).
>
>
>
> ---------------------------------------- > Date: Mon, 23 Jan 2012 23:20:25
> -0800 > From: currens.chris@gmail.com > To:
> lucene-net-dev@lucene.apache.org > Subject: [Lucene.Net] Coding Standards
> > > All, > > I just wanted to confirm everyone's stance on the coding
> guidelines > listed in the wiki. >
> https://cwiki.apache.org/confluence/display/LUCENENET/Coding+Guidelines >
> > Are these the official guidelines we are using? If they are, has > anyone
> who has Resharper already created rules so others don't have > to? I
> believe that these are the exact rules used in StyleCop, so > people
> without Resharper can use those rules to test the code before > check-in,
> so we may not need to have a ruleset for those who just want > to use the
> stylecop plugin. > > There are things I like and dislike about the
> Microsoft Design > Standards, specifically, I prefer private variables to
> start with an > underscore for easy identification. Either way, making sure
> there's a > ruleset will be helpful for other people when using tools to
> conform > to the standards. > > > Thanks, > Christopher
>

RE: [Lucene.Net] Coding Standards

Posted by Prescott Nasser <ge...@hotmail.com>.
fyi, I believe you can request a free resharper license for being an active committer to an open source project (ie Lucene.Net). 

 

---------------------------------------- > Date: Mon, 23 Jan 2012 23:20:25 -0800 > From: currens.chris@gmail.com > To: lucene-net-dev@lucene.apache.org > Subject: [Lucene.Net] Coding Standards > > All, > > I just wanted to confirm everyone's stance on the coding guidelines > listed in the wiki. > https://cwiki.apache.org/confluence/display/LUCENENET/Coding+Guidelines > > Are these the official guidelines we are using? If they are, has > anyone who has Resharper already created rules so others don't have > to? I believe that these are the exact rules used in StyleCop, so > people without Resharper can use those rules to test the code before > check-in, so we may not need to have a ruleset for those who just want > to use the stylecop plugin. > > There are things I like and dislike about the Microsoft Design > Standards, specifically, I prefer private variables to start with an > underscore for easy identification. Either way, making sure there's a > ruleset will be helpful for other people when using tools to conform > to the standards. > > > Thanks, > Christopher