Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document cylc lint #480

Merged
merged 4 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/7-to-8/major-changes/config-changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ The old configurations are now deprecated, but still supported.
These will be highlighted upon ``cylc validate`` after renaming ``suite.rc``
to ``flow.cylc``.

Because some workflows use includes which may not be switched on at
wxtim marked this conversation as resolved.
Show resolved Hide resolved
the time of the initial ``cylc validate`` we have also provided
a script, :ref:`cylc lint -r 728 <cylc_lint_script>` to check for Cylc 7
syntax which may be deprecated.

There are some examples below of how to upgrade:

.. _7-to-8.graph_syntax:
Expand Down
8 changes: 8 additions & 0 deletions src/user-guide/writing-workflows/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,11 @@ All legal entries are documented in the :cylc:conf:`flow.cylc` reference.

If a :cylc:conf:`flow.cylc` file uses include-files ``cylc view`` will
show an inlined copy of the workflow with correct line numbers.

.. _cylc_lint_script:

``cylc lint``
^^^^^^^^^^^^^

.. automodule:: cylc.flow.scripts.lint

4 changes: 4 additions & 0 deletions src/workflow-design-guide/style-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Coding style is largely subjective, but for collaborative development of
complex systems it is important to settle on a clear and consistent style to
avoid getting into a mess. The following style rules are recommended.

.. seealso::

:ref:`cylc lint -r style <cylc_lint_script>` is a tool designed to help
you check your code style.

Tab Characters
--------------
Expand Down