#4900 has gone beyond a basic sed file and is now the basis for a more generic linter 🎉.
Some follow-on ideas:
Editor integration:
(See #5014)
7 to 8 migration rules
This linter could be a highly valuable tool in the 7->8 upgrade. Also include a couple of Python 2->3 pointers.
Additional style rules and bug bears
Pull requests welcome!
#4900 has gone beyond a basic
sedfile and is now the basis for a more generic linter 🎉.Some follow-on ideas:
Editor integration:
(See #5014)
7 to 8 migration rules
suite.rcorflow.cylcfile and the first line of the file is not a matching shebang.rose suite-runused to tolerate missing shebang lines)cylc->cylc.flowrose->metomi.roseisodatetime->metomi.isodatetimefrom _ importandimport _..cylc&.rcfilesfrom "_" import.cylc,.rcfiles.05rather than5, previously accepted, now a Jinja2 syntax error..cylcfiles only).$(rose host-select).filterinterface yet).rose host-selectis definitely unnecessary.cylc.flow.scripts.cylc.DEAD_ENDS).<x><y>is valid but can be simplified<x, y><param1><param2>in inherited family names #5537%(suite)= Feat.lint obsolete vars #5879rose suite-hook(command removed at Rose 2)CYLC_VERSION={{CYLC_VERSION}}(same forROSE_andFCM_). lint: Warn users thatCYLC_VERSION={{CYLC_VERSION}}is deprecated #5890cylc workflow-statein a task-script, should use theworkflow_statextrigger instead:expiredoutput must be optional if used (also:expire,:expire-alland:expire-any), see optional output extension proposal.Additional style rules and bug bears
Pull requests welcome!