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

Other languages and file types

Last post 01-30-2017, 12:46 AM by Serge B. (SubMain). 3 replies.
Sort Posts: Previous Next
  •  01-24-2017, 5:01 AM 4421

    Other languages and file types

    Hello.

    I need to add some simple rules to .sql and .txt files included to my project (rules like find strings). 

    Is it possible to configure CodeIt.Right to parse files which are not directly c# project compiled files (like *.txt, *.xml or *.sql files)?

  •  01-24-2017, 9:55 AM 4422 in reply to 4421

    Re: Other languages and file types

    Hello Mihail,

    CodeIt.Right SDK is based on language parsers, and currently, it is shipped with C#, VB and JavaScript parsers.

    What are you looking to find in the .txt or .sql file? Can you give some examples so we could understand the need?

    Thanks! 


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft MVP  |  ASP Insider
    » » CodeIt.Right Will Fix Your Code!™ - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
  •  01-25-2017, 12:57 AM 4426 in reply to 4422

    Re: Other languages and file types

    Serge, thank you for your response.

    I have the C# project contains either c# language files(.cs) and other files(.sql and .txt files). 

    I need to search the whole solution for some string expressions which are not allowed and generate build errors if this violations were found.

    As example, I need to ensure that string "MyViolationString" doesn't exist both in my .cs files and .sql files included to project. For this purpose I can create my own custom rule and integrate it to solution. But .sql files are not available for ItCode.Right parser, and I have found no way to make it execute .slq files. Furthermore .sql files are disabled for single-file parsing option.

    Is it possible to extend the tool-engine to parse other(not language-specific) file types?  

    Thanks! 

     

  •  01-30-2017, 12:46 AM 4427 in reply to 4426

    Re: Other languages and file types

    Mihail,

    CodeIt.Right SDK would need to be extended with the ability to scan source files using patterns - this is to enable the kind of scanning you are after. As I mentioned, currently the SDK is based on language parsers.

    Thanks! 


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft MVP  |  ASP Insider
    » » CodeIt.Right Will Fix Your Code!™ - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |