Page MenuHomeDevCentral

Address SC3028 at instruction level
ClosedPublic

Authored by dereckson on Sep 15 2025, 21:23.
Tags
None
Referenced Files
F12348908: D3680.diff
Mon, Oct 27, 14:51
F12348905: D3680.diff
Mon, Oct 27, 14:51
Unknown Object (File)
Sun, Oct 26, 21:08
Unknown Object (File)
Fri, Oct 24, 22:01
Unknown Object (File)
Fri, Oct 24, 08:12
Unknown Object (File)
Wed, Oct 22, 15:55
Unknown Object (File)
Sun, Oct 19, 20:39
Unknown Object (File)
Sun, Oct 19, 18:17
Subscribers
None

Details

Summary

The shellcheck SC3028 check warns when variables common in sh/bash
are not defined in POSIX sh. This is generally $UID and $EUID.

This check is currently suppressed at repository level, but that prevents
to check other variables like $HOSTNAME, $MACHTYPE or $SHELLOPTS.

Align code of operations repository with recommended D3679 snippet:

  • SC3028 is defined at instruction level, not arc configuration
  • all scripts use the snippet testing for EUID, with id as fallback

For reference, csh and tcsh are the two shells not implementing UID and EUID.

Test Plan

arc lint

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
dereckson retitled this revision from Address SC3028 at script level to Address SC3028 at instruction level.Sep 15 2025, 22:53
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Mon, Oct 13, 14:52
This revision was automatically updated to reflect the committed changes.