Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-6397

Clarify rules on file termination

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Done
    • Coding style
    • None

    Description

      Policy: Rules on file/line termination

      Since 17th Jun 2021, these points have been agreed:

      • Every line must be terminated by a Unix line feed character (LF, decimal 10, hexadecimal 0x0A).
      • Carriage returns (CR, decimal 13, hexadecimal 0x0D) must NOT be used alone or with LFs.
      • There must be no whitespace characters (spaces or tabs) at the end of any line.
      • There must be no extra blank lines at the end of a file; every file should end with a single LF character.

      Note: This is consistent with the conventions of PSR-12.

      Clarify the rules on file termination both in coding style, and in CI.

      Attachments

        1. C67FBAAD-4449-4C52-90BB-8AD331662ABF.jpeg
          737 kB
          Andrew Lyons
        2. no-end-LF.png
          9 kB
          Eric Merrill
        3. proposal_6397.md
          2 kB
          Andrew Lyons
        4. screenshot-1.png
          4 kB
          Neill Magill
        5. with-end-LF.png
          10 kB
          Eric Merrill

        Activity

          People

            vmdef Víctor Déniz Falcón
            dobedobedoh Andrew Lyons
            Marina Glancy, Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: