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 static code rules for path traversal #1338

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

SachinAkash01
Copy link
Member

Purpose

$subject

Related issues: #7511 #7283

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@SachinAkash01 SachinAkash01 marked this pull request as ready for review February 26, 2025 06:36
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 12.59259% with 118 lines in your changes missing coverage. Please review.

Project coverage is 80.91%. Comparing base (c8dd2ea) to head (2d8e89e).

Files with missing lines Patch % Lines
...er/staticcodeanalyzer/IOPathInjectionAnalyzer.java 0.00% 105 Missing ⚠️
...ballerina/stdlib/io/compiler/IOCompilerPlugin.java 0.00% 5 Missing ⚠️
...io/compiler/staticcodeanalyzer/IOCodeAnalyzer.java 0.00% 5 Missing ⚠️
...ava/io/ballerina/stdlib/io/compiler/Constants.java 0.00% 1 Missing ⚠️
.../stdlib/io/compiler/staticcodeanalyzer/IORule.java 88.88% 1 Missing ⚠️
...tdlib/io/compiler/staticcodeanalyzer/RuleImpl.java 88.88% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1338      +/-   ##
============================================
- Coverage     84.76%   80.91%   -3.85%     
  Complexity       14       14              
============================================
  Files            59       66       +7     
  Lines          2396     2531     +135     
  Branches        401      432      +31     
============================================
+ Hits           2031     2048      +17     
- Misses          288      406     +118     
  Partials         77       77              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarqubecloud bot commented Mar 3, 2025

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.

2 participants