FxCop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Buckley

    #1

    FxCop

    I've recently been enforcing coding standards in my project using FxCop.
    I've noticed that some of the standard rules are not applied to non-public
    members (i.e. internal classes and private methods). Am I the only person
    that thinks it's a good idea to enforce standards on all classes and
    methods, whether they are public or not?

    Paul.


  • Miha Markic

    #2
    Re: FxCop

    Hi Paul,

    No need to enforce on internals and privates since they won't be used by
    external assemblies - this is the point of FxCop.

    --
    Miha Markic - RightHand .NET consulting & development
    miha at rthand com

    "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
    news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I've recently been enforcing coding standards in my project using FxCop.
    > I've noticed that some of the standard rules are not applied to non-public
    > members (i.e. internal classes and private methods). Am I the only person
    > that thinks it's a good idea to enforce standards on all classes and
    > methods, whether they are public or not?
    >
    > Paul.
    >
    >[/color]


    Comment

    • Mountain Bikn' Guy

      #3
      Re: FxCop

      Paul,
      I would agree with you. I've been thinking about using FxCop, but I will not
      do so if it doesn't allow me to enforce coding standards on all code. Anyone
      know of another tool that would not have this "feature"?
      Regards,
      Mountain

      "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
      news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...[color=blue]
      > I've recently been enforcing coding standards in my project using FxCop.
      > I've noticed that some of the standard rules are not applied to non-public
      > members (i.e. internal classes and private methods). Am I the only person
      > that thinks it's a good idea to enforce standards on all classes and
      > methods, whether they are public or not?
      >
      > Paul.
      >
      >[/color]


      Comment

      • Jan Tielens

        #4
        Re: FxCop

        I think enforcing these rules on public members is very important if you
        want to share your compiled component with other people. On the other hand,
        applying the rules also on the internal members (e.g. private) can be very
        important if you share to code with for example other colleagues. So my
        opinion: yes these rules should apply on all members, also the internal
        ones. Although I can understand the goals of FXCop.


        --
        Greetz,
        Jan
        _______________ _______________ ____
        Read my weblog: http://weblogs.asp.net/jan

        "Miha Markic" <miha at rthand com> schreef in bericht
        news:O5mcG2ouDH A.2520@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Hi Paul,
        >
        > No need to enforce on internals and privates since they won't be used by
        > external assemblies - this is the point of FxCop.
        >
        > --
        > Miha Markic - RightHand .NET consulting & development
        > miha at rthand com
        >
        > "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
        > news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...[color=green]
        > > I've recently been enforcing coding standards in my project using FxCop.
        > > I've noticed that some of the standard rules are not applied to[/color][/color]
        non-public[color=blue][color=green]
        > > members (i.e. internal classes and private methods). Am I the only[/color][/color]
        person[color=blue][color=green]
        > > that thinks it's a good idea to enforce standards on all classes and
        > > methods, whether they are public or not?
        > >
        > > Paul.
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Alek Davis

          #5
          Re: FxCop

          Since you did not say "another FREE tool", check out Parasoft's .test tool
          (http://www.parasoft.com/jsp/products...est&itemId=41).
          One of it's features (although, not the primary) is coding rules check. It
          can be expensive though (since it's primary purpose is unit testing, which
          is much more complex than coding standards analysis).

          Alek

          "Mountain Bikn' Guy" <vc@attbi.com > wrote in message
          news:wuKzb.4197 16$HS4.3342695@ attbi_s01...[color=blue]
          > Paul,
          > I would agree with you. I've been thinking about using FxCop, but I will[/color]
          not[color=blue]
          > do so if it doesn't allow me to enforce coding standards on all code.[/color]
          Anyone[color=blue]
          > know of another tool that would not have this "feature"?
          > Regards,
          > Mountain
          >
          > "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
          > news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...[color=green]
          > > I've recently been enforcing coding standards in my project using FxCop.
          > > I've noticed that some of the standard rules are not applied to[/color][/color]
          non-public[color=blue][color=green]
          > > members (i.e. internal classes and private methods). Am I the only[/color][/color]
          person[color=blue][color=green]
          > > that thinks it's a good idea to enforce standards on all classes and
          > > methods, whether they are public or not?
          > >
          > > Paul.
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Mountain Bikn' Guy

            #6
            Re: FxCop

            Thanks, but it's too expensive for me, and it doesn't mention C# (only C++)

            for unit testing, I'm looking into HarnessIT

            "Alek Davis" <alekDOTdavisAT intelDOTcom> wrote in message
            news:ufs5IDquDH A.2456@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Since you did not say "another FREE tool", check out Parasoft's .test tool
            > (http://www.parasoft.com/jsp/products...est&itemId=41).
            > One of it's features (although, not the primary) is coding rules check. It
            > can be expensive though (since it's primary purpose is unit testing, which
            > is much more complex than coding standards analysis).
            >
            > Alek
            >
            > "Mountain Bikn' Guy" <vc@attbi.com > wrote in message
            > news:wuKzb.4197 16$HS4.3342695@ attbi_s01...[color=green]
            > > Paul,
            > > I would agree with you. I've been thinking about using FxCop, but I will[/color]
            > not[color=green]
            > > do so if it doesn't allow me to enforce coding standards on all code.[/color]
            > Anyone[color=green]
            > > know of another tool that would not have this "feature"?
            > > Regards,
            > > Mountain
            > >
            > > "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
            > > news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...[color=darkred]
            > > > I've recently been enforcing coding standards in my project using[/color][/color][/color]
            FxCop.[color=blue][color=green][color=darkred]
            > > > I've noticed that some of the standard rules are not applied to[/color][/color]
            > non-public[color=green][color=darkred]
            > > > members (i.e. internal classes and private methods). Am I the only[/color][/color]
            > person[color=green][color=darkred]
            > > > that thinks it's a good idea to enforce standards on all classes and
            > > > methods, whether they are public or not?
            > > >
            > > > Paul.
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Alek Davis

              #7
              Re: FxCop

              Yes, it must be expensive, but I think it works with C# (I doubt that it
              works with C++, though; I think that C++ Test does, not .Test). Anyway, it
              (I mean, the pricing) seems to be more for corporate customers with deeper
              pockets. A nice tool, though. I should check out HarnessIT, haven't tried
              this one.

              Alek

              "Mountain Bikn' Guy" <vc@attbi.com > wrote in message
              news:4QNzb.4217 19$HS4.3348321@ attbi_s01...[color=blue]
              > Thanks, but it's too expensive for me, and it doesn't mention C# (only[/color]
              C++)[color=blue]
              >
              > for unit testing, I'm looking into HarnessIT
              >
              > "Alek Davis" <alekDOTdavisAT intelDOTcom> wrote in message
              > news:ufs5IDquDH A.2456@TK2MSFTN GP12.phx.gbl...[color=green]
              > > Since you did not say "another FREE tool", check out Parasoft's .test[/color][/color]
              tool[color=blue][color=green]
              > >[/color][/color]
              (http://www.parasoft.com/jsp/products...est&itemId=41).[color=blue][color=green]
              > > One of it's features (although, not the primary) is coding rules check.[/color][/color]
              It[color=blue][color=green]
              > > can be expensive though (since it's primary purpose is unit testing,[/color][/color]
              which[color=blue][color=green]
              > > is much more complex than coding standards analysis).
              > >
              > > Alek
              > >
              > > "Mountain Bikn' Guy" <vc@attbi.com > wrote in message
              > > news:wuKzb.4197 16$HS4.3342695@ attbi_s01...[color=darkred]
              > > > Paul,
              > > > I would agree with you. I've been thinking about using FxCop, but I[/color][/color][/color]
              will[color=blue][color=green]
              > > not[color=darkred]
              > > > do so if it doesn't allow me to enforce coding standards on all code.[/color]
              > > Anyone[color=darkred]
              > > > know of another tool that would not have this "feature"?
              > > > Regards,
              > > > Mountain
              > > >
              > > > "Paul Buckley" <paul.buckley@r ebusis.com> wrote in message
              > > > news:OZLyVvouDH A.3196@TK2MSFTN GP11.phx.gbl...
              > > > > I've recently been enforcing coding standards in my project using[/color][/color]
              > FxCop.[color=green][color=darkred]
              > > > > I've noticed that some of the standard rules are not applied to[/color]
              > > non-public[color=darkred]
              > > > > members (i.e. internal classes and private methods). Am I the only[/color]
              > > person[color=darkred]
              > > > > that thinks it's a good idea to enforce standards on all classes and
              > > > > methods, whether they are public or not?
              > > > >
              > > > > Paul.
              > > > >
              > > > >
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              Working...