Skip to content

Add two additional PATH env checks for the rule 'os-04' #188

Description

@MikhailAseev

Description

I suggest adding two checks for the rule 'os-04' for PATH environment variable:

  • check that there are no spaces;
  • check that there are no '..' (parent directory of the current one).

I guess it won't be superfluous.

Solution

Can be easily solved as:

...
    its('split') { should_not include(' ') }
    its('split') { should_not include('..') }
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions