Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3205

Syntax errors in core examples are not detected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.0
    • Component/s: None
    • Labels:
      None

      Description

      The check_outputs test in core ignores examples that don't have expected output comments. So many of our examples have syntax errors.

      /northern.tech/cfengine/core/examples/edit_passwd_file.cf:66:27: error: Expected attribute, got ',' (comma after promiser is not allowed since 3.5.0)
            "$($(v)[$(index)])",
                                ^
      

        Attachments

          Release management

            Activity

              People

              Assignee:
              olehermanse Ole Herman Schumacher Elgesem
              Reporter:
              olehermanse Ole Herman Schumacher Elgesem
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: