Skip to content

feat: error if index of indexed access is invalid#796

Merged
lars-reimann merged 3 commits intomainfrom
16-validation-error-illegal-indexed-access
Nov 24, 2023
Merged

feat: error if index of indexed access is invalid#796
lars-reimann merged 3 commits intomainfrom
16-validation-error-illegal-indexed-access

Conversation

@lars-reimann
Copy link
Member

Closes #16

Summary of Changes

  • Show an error if we know that a map key does not exist.
  • Show an error if we know that a list index is out of bounds.

@lars-reimann lars-reimann linked an issue Nov 24, 2023 that may be closed by this pull request
@github-actions
Copy link

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ REPOSITORY git_diff yes no 0.07s
✅ TYPESCRIPT eslint 4 0 0 4.09s
✅ TYPESCRIPT prettier 4 0 0 0.99s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@codecov
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2d1abc9) 100.00% compared to head (48efe1d) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #796   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           85        86    +1     
  Lines        13402     13497   +95     
  Branches      2823      2855   +32     
=========================================
+ Hits         13402     13497   +95     

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

@lars-reimann lars-reimann marked this pull request as ready for review November 24, 2023 09:35
@lars-reimann lars-reimann merged commit 5017759 into main Nov 24, 2023
@lars-reimann lars-reimann deleted the 16-validation-error-illegal-indexed-access branch November 24, 2023 09:35
lars-reimann pushed a commit that referenced this pull request Nov 25, 2023
## [0.5.0](v0.4.0...v0.5.0) (2023-11-25)

### Features

* error if index of indexed access is invalid ([#796](#796)) ([5017759](5017759)), closes [#16](#16)
* full implementation of partial evaluator ([#798](#798)) ([7643794](7643794)), closes [#603](#603)
* settings to hide selected warnings/infos ([#795](#795)) ([ff7c23a](ff7c23a)), closes [#35](#35)

### Bug Fixes

* handling of default values in entry point of call graph computation ([#797](#797)) ([a5db23c](a5db23c))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Included in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation error: Illegal indexed access

1 participant