Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15617

Add shellcheck to prepare-commit-msg

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 9223372036854775807

    Description

      Add shellcheck to prepare-commit-msg.

      Attachments

        Issue Links

          Activity

            [LU-15617] Add shellcheck to prepare-commit-msg
            pjones Peter Jones added a comment -

            Landed for 2.16

            pjones Peter Jones added a comment - Landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46705/
            Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 57abd991ade9a381ac3ec94ca1d02993378c8e7c

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46705/ Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg Project: fs/lustre-release Branch: master Current Patch Set: Commit: 57abd991ade9a381ac3ec94ca1d02993378c8e7c

            Andreas, will have a go at this one LU-15617 & LU-15626 are done.

            arshad512 Arshad Hussain added a comment - Andreas, will have a go at this one LU-15617 & LU-15626 are done.
            adilger Andreas Dilger added a comment - - edited

            The other place where shellcheck could be usefully added (once it is working in prepare-commit-msg) is in contrib/scripts/gerrit-checkpatch.py, which is doing the actual work of calling checkpatch.pl on each submitted patch and posting comments on the patches in Gerrit.

            Like in prepare-commit-msg, it would need to determine which files are shell scripts, and then run shellcheck on the file and limit it to lines which are modified by the patch and call add_comment() for each one, and the script should handle the rest. The gerrit-checkpatch.py script is in Python, so I can't help very much with that, but hopefully it is fairly clear.

            adilger Andreas Dilger added a comment - - edited The other place where shellcheck could be usefully added (once it is working in prepare-commit-msg ) is in contrib/scripts/gerrit-checkpatch.py , which is doing the actual work of calling checkpatch.pl on each submitted patch and posting comments on the patches in Gerrit. Like in prepare-commit-msg , it would need to determine which files are shell scripts, and then run shellcheck on the file and limit it to lines which are modified by the patch and call add_comment() for each one, and the script should handle the rest. The gerrit-checkpatch.py script is in Python, so I can't help very much with that, but hopefully it is fairly clear.

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/46705
            Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: baac4ea013463ff277383afa09aad3abe892f0fb

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/46705 Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: baac4ea013463ff277383afa09aad3abe892f0fb

            People

              arshad512 Arshad Hussain
              arshad512 Arshad Hussain
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: