I've created a Talend job that checks a list of Talend Job in a workspace. This job checks that:
- a global variable is used
- a context variable is used
- a tDie refer to the message of the component that generates the onComponentError
You just have add this job in the workspace, create a directory CODE_ANALYSIS somewhere, refer to this directory in the java code of the job, create a context file in this directory to indicate where is the workspace and create a file that contains the list of jobs to analyze.
There are around 10 rules implemented. The job is really simple with only 10 components but it is really easy to find some mistakes with it and you can add your own rules in java.
The result is a csv file with all errors (job, component).
If you want to improve the job, no problem.
Thanks for sharing your practice on forum.
Join us live for a sneak peek!
Create systems and workflow to manage clean data ingestion and data transformation.
Introduction to Talend Open Studio for Data Integration.
Test drive Talend's enterprise products.