Page MenuHomeDevCentral

Add shellcheck linter
ClosedPublic

Authored by dereckson on Nov 3 2017, 18:24.
Referenced Files
F53983082: D1163.diff
Wed, Oct 14, 00:22
Unknown Object (File)
Sun, Oct 11, 15:30
Unknown Object (File)
Sun, Oct 11, 03:50
Unknown Object (File)
Thu, Oct 8, 20:00
Unknown Object (File)
Tue, Oct 6, 19:40
Unknown Object (File)
Tue, Oct 6, 18:01
Unknown Object (File)
Tue, Sep 29, 15:35
Unknown Object (File)
Tue, Sep 29, 15:06

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.