pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

Pragmalint should also lint .tmc files (in addition to source code) #174

Open klauer opened 4 years ago

klauer commented 4 years ago

Source code is currently linted as errors can cause pragmas to not show up in the .tmc files.

When linting a project that includes a library with pragma syntax errors, no errors will be shown. However, generating records may result in pytmc crashing with confusing errors, such as:

result = [_LINE_PARSER.search(m).groupdict() for m in result_no_delims]
AttributeError: 'NoneType' object has no attribute 'groupdict'