Skip to content

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

Open
@MikhailAseev

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('..') }
...

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