Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MikhailAseev opened this issue Aug 21, 2024 · 0 comments · May be fixed by #189
Open

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

MikhailAseev opened this issue Aug 21, 2024 · 0 comments · May be fixed by #189

Comments

@MikhailAseev
Copy link

MikhailAseev commented Aug 21, 2024

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('..') }
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant