Skip to content

Rename this field "totalCount" to match the regular expression ^[_a-z][_a-z0-9]*$ #2887

@anirudhprmar

Description

@anirudhprmar

Describe the bug
So in backend/tests/apps/github/management/commands/github_sync_user_test.py. There is field named as totalCount, it will be good to use camelCase expression if the backend was in javascript but its in python and according to python's naming convention using snake_case which will support the required regular expression ^[_a-z][_a-z0-9]*$ & will be more efficient. The camelCased totalCount violates this rule.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'backend/tests/apps/github/management/commands/github_sync_user_test.py'
  2. rename totalCount to total_count

Expected behavior
A clear and concise description of what you expected to happen.

Are you going to work on fixing this?

  • Yes
  • No

Additional Context:
https://sonarcloud.io/project/issues?impactSeverities=LOW&issueStatuses=OPEN%2CCONFIRMED&id=OWASP_Nest&open=AZp-i-mzHhyenAko7tNZ

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions