SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

Adding a Rule to check if the code files have a company disclaimer

Last post 07-15-2014, 8:00 AM by Misha Zhutov (SubMain). 2 replies.
Sort Posts: Previous Next
  •  07-10-2014, 11:26 PM 3924

    Adding a Rule to check if the code files have a company disclaimer

    Hi,

    I am looking to for a Rule which would check my .net code files have a disclaimer mentioning that "This Code belongs to Company..ABC..". 

    If the disclaimer is not present it should throw the violation.

    Any suggestions on this would help.

    regards,
    Sushil Nembhani

  •  07-14-2014, 10:40 PM 3929 in reply to 3924

    Re: Adding a Rule to check if the code files have a company disclaimer

    Hi,

    Do we have any updates ?

    regards,
    Sushil Nembhani

  •  07-15-2014, 8:00 AM 3931 in reply to 3929

    Re: Adding a Rule to check if the code files have a company disclaimer

    Sushil,

    Please take a look at SourceFileShouldHaveHeader rule (General category) -> Check method. You will be able to get file header text and analyze it.


    Thank you,
    Misha Zhutov
    http://submain.com - .NET Developer Tools | Microsoft VB MVP
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |