Skip to content

SONARPY-376 Rule S5443: Using publicly writable directories is securi…#284

Merged
andrea-guarino-sonarsource merged 3 commits intomasterfrom
SONARPY-376
Sep 3, 2019
Merged

SONARPY-376 Rule S5443: Using publicly writable directories is securi…#284
andrea-guarino-sonarsource merged 3 commits intomasterfrom
SONARPY-376

Conversation

@andrea-guarino-sonarsource
Copy link
Copy Markdown
Contributor

…ty-sensitive

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could refine that to avoid some FPs:

open("/tmpx")
open("C:\Temperatures")

Copy link
Copy Markdown
Contributor

@pynicolas pynicolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the issues raised by SonarQube on the PR.
Otherwise, LGTM.


private boolean isNonCompliantOsEnvironArgument(Tree tree) {
Tree argumentOrExpression = tree;
if (tree.is(Kind.ARGUMENT)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could remove this if and add .map(PyArgumentTree::expression) at line 64.

@andrea-guarino-sonarsource andrea-guarino-sonarsource merged commit d3aad16 into master Sep 3, 2019
@andrea-guarino-sonarsource andrea-guarino-sonarsource deleted the SONARPY-376 branch September 3, 2019 11:44
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request May 27, 2025
…rewrite using <dict/list/set>() (#284)

GitOrigin-RevId: 768bf94a77a026b1ab76c1b9abe5b5d7ddb58165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants