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

Resolve CodeQL Alert 38-40: Missing variable declaration #5705

Closed
13 tasks done
Tracked by #5159
roslynwythe opened this issue Oct 15, 2023 · 4 comments · Fixed by #5947
Closed
13 tasks done
Tracked by #5159

Resolve CodeQL Alert 38-40: Missing variable declaration #5705

roslynwythe opened this issue Oct 15, 2023 · 4 comments · Fixed by #5947
Assignees
Labels
Complexity: Medium Feature: Code Alerts ready for dev lead Issues that tech leads or merge team members need to follow up on role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours

Comments

@roslynwythe
Copy link
Member

roslynwythe commented Oct 15, 2023

Prerequisite

  1. Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page.
  2. Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.

Overview

As developers. we need to analyze CodeQL alerts 38, 39 and 40 and to either recommend dismissal of the alerts or update the code to resolve the alerts.

Action Items

For merge team/dev lead

Resources/Instructions

@roslynwythe roslynwythe added Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing size: missing labels Oct 15, 2023
@github-actions

This comment was marked as resolved.

@roslynwythe roslynwythe added Complexity: Medium size: 1pt Can be done in 4-6 hours role: front end Tasks for front end developers Feature: Code Alerts and removed Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing size: missing labels Oct 15, 2023
@ExperimentsInHonesty ExperimentsInHonesty added this to the x. Technical debt milestone Nov 6, 2023
@jackyuan1 jackyuan1 assigned jackyuan1 and unassigned jackyuan1 Nov 29, 2023
Copy link

Hi @jackyuan1, thank you for taking up this issue! Hfla appreciates you :)

Do let fellow developers know about your:-
i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?)
ii. ETA: (When do you expect this issue to be completed?)

You're awesome!

P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)

@hackforla hackforla deleted a comment from github-actions bot Nov 29, 2023
@jackyuan1
Copy link
Member

Availability: Wednesday/Thursday 12-5p
ETA: Dec 13

@jackyuan1
Copy link
Member

Analysis- The "categ" variable is used for iterating the "this.options.data" array. If a similar variable name were to be used else where, it could cause a bug in assigning the "val" variable to the specific item in "this.options.data[categ]".

Recommendation- Update code to declare categ as a local variable to narrow its scope.

@jackyuan1 jackyuan1 added the ready for dev lead Issues that tech leads or merge team members need to follow up on label Nov 29, 2023
@roslynwythe roslynwythe changed the title Resolve CodeQL Alert 38: Missing variable declaration Resolve CodeQL Alert 38-40: Missing variable declaration Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Medium Feature: Code Alerts ready for dev lead Issues that tech leads or merge team members need to follow up on role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours
Projects
Development

Successfully merging a pull request may close this issue.

3 participants