Resource Static Analysis overview - microsoft/Resource-Static-Analysis GitHub Wiki
Resource Static Analysis
The Resource Static Analysis is a rule-based expert system designed to automate repetitive validation and analysis tasks on static resources, where the main activity consists of object classification to one or more categories. The focus of this project is to assist developers & engineers with localizable resource analysis and validation in search of potential localizability and internationalization issues.
Data Source
The Data Source is where the resources to be validate reside. These can range from standard code resource files, such as .resx, to resources stored in a SQL database – as long as there is a Data Adapter to create the Classification Object.
Data Adapters & Classification Object
The Classification Object (CO) is an object containing a set of properties that are needed for the validation rules to execute on. For example, Source string, Developer comment, Resource ID etc. In order to pass the correct values to the validation engine, there needs to be a Data Adapter to create the correct CO from the Data Source.
Validation Rules
The rules are where we define the logic for each check and can be created individually based on the scenario that is needed. For example, missing placeholders or tokens, insufficient developer comments, duplicate or missing hotkeys, inconsistent punctuation etc.
Validation Engine
The engine runs the rules on the properties in the Classification Object, returning the results of the validation.