Page MenuHomeDevCentral

Add shellcheck linter
ClosedPublic

Authored by dereckson on Nov 3 2017, 18:24.
Referenced Files
F6898116: D1163.diff
Wed, Apr 16, 17:48
Unknown Object (File)
Mon, Apr 7, 03:52
Unknown Object (File)
Sun, Apr 6, 13:20
Unknown Object (File)
Sun, Apr 6, 04:54
Unknown Object (File)
Sat, Apr 5, 18:45
Unknown Object (File)
Wed, Apr 2, 12:05
Unknown Object (File)
Mon, Mar 24, 05:00
Unknown Object (File)
Mon, Mar 24, 04:54

Details

Summary

Setup similar to rOPSf637b1b858173

Test Plan

arc lint

Diff Detail

Repository
rDARC nasqueron/arcanist Docker image
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Works fine:

$ cat > foo.sh
#!/bin/sh

foo $1
$ git add foo.sh 
$ arc lint
>>> Lint for foo.sh:


   Advice  (SC2086) SHELLCHECK
    Double quote to prevent globbing and word splitting.

               1 #!/bin/sh
               2 
    >>>        3 foo $1
                     ^
 OKAY  No lint warnings.
This revision is now accepted and ready to land.Nov 3 2017, 18:30
This revision was automatically updated to reflect the committed changes.