Simply invoke check_ycp
with the YCP file(s) you wish to check as
arguments:
check_ycp myfile.ycp
check_ycp *.ycp
The error messages should be self explanatory. They stick to the GNU standards for error messages, so you can use your favourite editor's (e.g. Emacs) function to process them.
Most of the checks can individually be turned off. Type
check_ycp -h
for a complete list of command line options. Those options are intentionally not listed here since such a list would inevitably be outdated before too long.