Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. StyleCop - Aarrgh

StyleCop - Aarrgh

Scheduled Pinned Locked Moved The Lounge
questioncsharpcssvisual-studiocom
25 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The Man from U N C L E
    wrote on last edited by
    #1

    A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

    If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

    P T K P C 10 Replies Last reply
    0
    • T The Man from U N C L E

      A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

      T Offline
      T Offline
      Todd Smith
      wrote on last edited by
      #2

      StyleCop was created by someone who happens to be VERY ANAL. It's a waste of time imho.

      Todd Smith

      1 Reply Last reply
      0
      • T The Man from U N C L E

        A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

        P Offline
        P Offline
        Prakash Nadar
        wrote on last edited by
        #3

        The Man from U.N.C.L.E. wrote:

        . Use spaces not tabs (why? tabs are neater)

        I prefer spaces, when the code is developed with different editors on different platforms, spaces makes the code neater.

        The Man from U.N.C.L.E. wrote:

        . Put a space before and open bracket, or place the bracket on a new line

        I agree with this. The "source code" should readable and not space saving. Also the stylecoding makes sure that different code writters follows the same coding pattern so that different part of the code does not look different.

        J 1 Reply Last reply
        0
        • T The Man from U N C L E

          A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          IIRC, you can tell style cop which rules to ignore, and add your own.

          The Man from U.N.C.L.E. wrote:

          Use spaces not tabs (why? tabs are neater)

          A bit arcane, but different IDEs use different spacing for tabs.

          The Man from U.N.C.L.E. wrote:

          Put a space before and open bracket, or place the bracket on a new line

          I does look neater IMO, if(condition = something) { /*Twizzle*/ } wins hands down over if(condition = something){ /*Twizzle*/ } but this is a matter of opinion.

          The Man from U.N.C.L.E. wrote:

          Put using statements inside of namespaces not outside.

          I'm totally with you on this one, I [think I] disabled it last time I used StyleCop.

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]

          1 Reply Last reply
          0
          • T The Man from U N C L E

            A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

            P Offline
            P Offline
            peterchen
            wrote on last edited by
            #5

            The Man from U.N.C.L.E. wrote:

            Use spaces not tabs (why? tabs are neater)

            because tabs break this:

            switch (foo)
            {
            case Bar: RunBar(); break;
            case Foobar: RunFoo(); RunBar(); break;
            }

            The Man from U.N.C.L.E. wrote:

            Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.)

            Because most coders, when growing up, migrate away from compactness and towards expressive structure.

            The Man from U.N.C.L.E. wrote:

            Put using statements inside of namespaces not outside.

            Umm.... hrrrrr...... errr... You know that you can disable individual rules, don't you?

            Agh! Reality! My Archnemesis![^]
            | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

            C J T 3 Replies Last reply
            0
            • T The Man from U N C L E

              A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

              If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #6

              StyleCop is a tool that includes a set of preset rules. You need to tune StyleCop to work with, and help you enforce, the rules your organisation uses instead of thinking you need to change your rules to suit StyleCop.

              cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

              1 Reply Last reply
              0
              • T The Man from U N C L E

                A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

                If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                realJSOPR Offline
                realJSOPR Offline
                realJSOP
                wrote on last edited by
                #7

                StyleCop is nothing more than an arbitrary metric from which to analyze your code (notice the "anal" is part of that word). For what it's worth, you can configure it to ignore pretty much any styling faux paux that doesn't meet your own exacting standards. In the end, it's not worth messing with and is a complete waste of time.

                .45 ACP - because shooting twice is just silly
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                1 Reply Last reply
                0
                • T The Man from U N C L E

                  A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

                  If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                  M Offline
                  M Offline
                  Marc Clifton
                  wrote on last edited by
                  #8

                  The Man from U.N.C.L.E. wrote:

                  will fail another stylecop rule thereby making this one redundant.

                  :laugh: Well, you sort of asked for it. We all have our own style, and running a program to tell us how our style doesn't comply with someone's idea of the "perfect" style is ridiculous.

                  The Man from U.N.C.L.E. wrote:

                  Consistency of coding style across a company is good

                  I've given up on enforcing that! Marc

                  1 Reply Last reply
                  0
                  • T The Man from U N C L E

                    A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

                    If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    The Man from U.N.C.L.E. wrote:

                    but please Microsoft, make the rules make sense!

                    They won't be arbitrary. Those are good questions you asked, and the answers aren't always obvious. Some of the warnings are listed on MSDN[^], giving you a reasoning on why that particular warning was added. If it says 'warning', then I want to know 'why' and whether it could bite me.

                    I are Troll :suss:

                    1 Reply Last reply
                    0
                    • T The Man from U N C L E

                      A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

                      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                      V Offline
                      V Offline
                      Vikram A Punathambekar
                      wrote on last edited by
                      #10

                      Can you not suppress rules? FxCop allows you to do that.

                      Cheers, विक्रम (Got my troika of CCCs!) After all is said and done, much is said and little is done.

                      N 1 Reply Last reply
                      0
                      • T The Man from U N C L E

                        A rant, not a question. Is it just me, or is StyleCop designed to drive you insane. Just fired it up on a small project, so small that it consists only of Visual Studio templated classes/forms etc. Thousands of errors are flagged! . Use spaces not tabs (why? tabs are neater) . Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.) . Put using statements inside of namespaces not outside. ....and many more That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant. Consistency of coding style across a company is good, but please Microsoft, make the rules make sense!

                        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #11

                        The Man from U.N.C.L.E. wrote:

                        That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant.

                        Wow. If I remember rightly, they also have a rule about specifying only one class per file.

                        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                        Forgive your enemies - it messes with their heads

                        My blog | My articles | MoXAML PowerToys | Onyx

                        N 1 Reply Last reply
                        0
                        • P peterchen

                          The Man from U.N.C.L.E. wrote:

                          Use spaces not tabs (why? tabs are neater)

                          because tabs break this:

                          switch (foo)
                          {
                          case Bar: RunBar(); break;
                          case Foobar: RunFoo(); RunBar(); break;
                          }

                          The Man from U.N.C.L.E. wrote:

                          Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.)

                          Because most coders, when growing up, migrate away from compactness and towards expressive structure.

                          The Man from U.N.C.L.E. wrote:

                          Put using statements inside of namespaces not outside.

                          Umm.... hrrrrr...... errr... You know that you can disable individual rules, don't you?

                          Agh! Reality! My Archnemesis![^]
                          | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                          C Offline
                          C Offline
                          Chris Meech
                          wrote on last edited by
                          #12

                          Shouldn't that be

                          switch (foo)
                          {
                          case Foobar: RunFoo();
                          case Bar: RunBar(); break;
                          };

                          instead. :)

                          Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                          1 Reply Last reply
                          0
                          • P peterchen

                            The Man from U.N.C.L.E. wrote:

                            Use spaces not tabs (why? tabs are neater)

                            because tabs break this:

                            switch (foo)
                            {
                            case Bar: RunBar(); break;
                            case Foobar: RunFoo(); RunBar(); break;
                            }

                            The Man from U.N.C.L.E. wrote:

                            Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.)

                            Because most coders, when growing up, migrate away from compactness and towards expressive structure.

                            The Man from U.N.C.L.E. wrote:

                            Put using statements inside of namespaces not outside.

                            Umm.... hrrrrr...... errr... You know that you can disable individual rules, don't you?

                            Agh! Reality! My Archnemesis![^]
                            | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #13

                            peterchen wrote:

                            because tabs break this:

                            Not if you configure your IDE. Personally I prefer tabs because it's less keystrokes to navigate through.

                            Jeremy Falcon

                            1 Reply Last reply
                            0
                            • P Prakash Nadar

                              The Man from U.N.C.L.E. wrote:

                              . Use spaces not tabs (why? tabs are neater)

                              I prefer spaces, when the code is developed with different editors on different platforms, spaces makes the code neater.

                              The Man from U.N.C.L.E. wrote:

                              . Put a space before and open bracket, or place the bracket on a new line

                              I agree with this. The "source code" should readable and not space saving. Also the stylecoding makes sure that different code writters follows the same coding pattern so that different part of the code does not look different.

                              J Offline
                              J Offline
                              Jeremy Falcon
                              wrote on last edited by
                              #14

                              Mr.Prakash wrote:

                              I prefer spaces, when the code is developed with different editors on different platforms, spaces makes the code neater.

                              But, realistically every IDE you'll use allows you to configure tab width.

                              Jeremy Falcon

                              P 1 Reply Last reply
                              0
                              • V Vikram A Punathambekar

                                Can you not suppress rules? FxCop allows you to do that.

                                Cheers, विक्रम (Got my troika of CCCs!) After all is said and done, much is said and little is done.

                                N Offline
                                N Offline
                                Nish Nishant
                                wrote on last edited by
                                #15

                                Vikram A Punathambekar wrote:

                                Can you not suppress rules? FxCop allows you to do that.

                                Yes you can. It even lets you specify new rules. It baffles me that people would download a free customizable app, refuse to customize it, and then complain about its default behavior in a public forum using their real name. :~

                                Regards, Nish


                                My technology blog: voidnish.wordpress.com (recently moved from web-host to wordpress)

                                T 1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  The Man from U.N.C.L.E. wrote:

                                  That last one is the worst. The reasoning is that you can put more than one namespace in the same file so using statements should be scoped to the namespace not the file. Sorry, but in that instance I would want to scope them to the file as well! Also, putting two namespaces in the same file will fail another stylecop rule thereby making this one redundant.

                                  Wow. If I remember rightly, they also have a rule about specifying only one class per file.

                                  I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                                  Forgive your enemies - it messes with their heads

                                  My blog | My articles | MoXAML PowerToys | Onyx

                                  N Offline
                                  N Offline
                                  Nish Nishant
                                  wrote on last edited by
                                  #16

                                  Pete O'Hanlon wrote:

                                  Wow. If I remember rightly, they also have a rule about specifying only one class per file.

                                  Which is a good rule to follow in my opinion. I even use that for enums, even small ones.

                                  Regards, Nish


                                  My technology blog: voidnish.wordpress.com (recently moved from web-host to wordpress)

                                  L P 2 Replies Last reply
                                  0
                                  • P peterchen

                                    The Man from U.N.C.L.E. wrote:

                                    Use spaces not tabs (why? tabs are neater)

                                    because tabs break this:

                                    switch (foo)
                                    {
                                    case Bar: RunBar(); break;
                                    case Foobar: RunFoo(); RunBar(); break;
                                    }

                                    The Man from U.N.C.L.E. wrote:

                                    Put a space before and open bracket, or place the bracket on a new line (why? it makes my code look neater without the space for if statements etc. takes up less lines as well.)

                                    Because most coders, when growing up, migrate away from compactness and towards expressive structure.

                                    The Man from U.N.C.L.E. wrote:

                                    Put using statements inside of namespaces not outside.

                                    Umm.... hrrrrr...... errr... You know that you can disable individual rules, don't you?

                                    Agh! Reality! My Archnemesis![^]
                                    | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                                    T Offline
                                    T Offline
                                    The Man from U N C L E
                                    wrote on last edited by
                                    #17

                                    I know, I can disable rules but that rather defeats the point. I started from the point of how can I be expected to match the rules if the Visual Studio generated code itself does not. As to coding and brackets, I prefer, the following, though I know personal preference and all that.

                                    switch (foo){
                                    case Bar:
                                    RunBar();
                                    break;
                                    case Foobar:
                                    RunFoo();
                                    RunBar();
                                    break;
                                    }

                                    In this example Style cop would prefer the following:

                                    switch (foo)
                                    {
                                    case Bar:
                                    RunBar();
                                    break;
                                    case Foobar:
                                    RunFoo();
                                    RunBar();
                                    break;
                                    }

                                    Who can really say which is more readable, though I would use spaces if pasting on CP because it is easier to type in the editor, that does not allow you to type tabs.

                                    If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                                    P 1 Reply Last reply
                                    0
                                    • N Nish Nishant

                                      Pete O'Hanlon wrote:

                                      Wow. If I remember rightly, they also have a rule about specifying only one class per file.

                                      Which is a good rule to follow in my opinion. I even use that for enums, even small ones.

                                      Regards, Nish


                                      My technology blog: voidnish.wordpress.com (recently moved from web-host to wordpress)

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #18

                                      Nishant Sivakumar wrote:

                                      Which is a good rule to follow in my opinion. I even use that for enums, even small ones.

                                      Same here. Makes life easier 2 or 3 years down the road. Cheers, Drew.

                                      1 Reply Last reply
                                      0
                                      • N Nish Nishant

                                        Vikram A Punathambekar wrote:

                                        Can you not suppress rules? FxCop allows you to do that.

                                        Yes you can. It even lets you specify new rules. It baffles me that people would download a free customizable app, refuse to customize it, and then complain about its default behavior in a public forum using their real name. :~

                                        Regards, Nish


                                        My technology blog: voidnish.wordpress.com (recently moved from web-host to wordpress)

                                        T Offline
                                        T Offline
                                        The Man from U N C L E
                                        wrote on last edited by
                                        #19

                                        Got some interesting responses out of it though. MS does have some good explanations of the reasoning behind each rule, and clearly you have to chose the set for you as some rules don't sit well together. Customising the rules was the second thing I did. It is however a bit depressing that creating a default windows forms app in VS 2010, with the default auto created main form, will give so many warnings with the default settings. Over a hundred. You would have thought that MS supplied templates would match the MS supplied style rules. Oh well.

                                        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                                        N P 2 Replies Last reply
                                        0
                                        • T The Man from U N C L E

                                          Got some interesting responses out of it though. MS does have some good explanations of the reasoning behind each rule, and clearly you have to chose the set for you as some rules don't sit well together. Customising the rules was the second thing I did. It is however a bit depressing that creating a default windows forms app in VS 2010, with the default auto created main form, will give so many warnings with the default settings. Over a hundred. You would have thought that MS supplied templates would match the MS supplied style rules. Oh well.

                                          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                                          N Offline
                                          N Offline
                                          Nish Nishant
                                          wrote on last edited by
                                          #20

                                          The Man from U.N.C.L.E. wrote:

                                          It is however a bit depressing that creating a default windows forms app in VS 2010, with the default auto created main form, will give so many warnings with the default settings. Over a hundred. You would have thought that MS supplied templates would match the MS supplied style rules. Oh well.

                                          Yeah I hear you there. The VS team seems to have been wholly unaware of the StyleCop guidelines :-) BTW, my real name jab was an attempted joke (since you are not using your real name at all)!

                                          Regards, Nish


                                          My technology blog: voidnish.wordpress.com (recently moved from web-host to wordpress)

                                          T 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups