Skip to content

Incorrect lloc count #262

@shabi9605

Description

@shabi9605

I'm getting incorrect lloc count, when a dictionary is in the code.

def sample_dict():
    a = {'user1': 'password1', 'user2': 'password2'}
    print(a)
    return a

I'm calculating lloc of this function with this below command :-
'radon raw 'path' -s'
Result:-
LOC: 4
LLOC: 5
SLOC: 4
Comments: 0
Single comments: 0
Multi: 0
Blank: 0
- Comment Stats
(C % L): 0%
(C % S): 0%
(C + M % L): 0%

In this result lloc is incorrect , there is only 4 lloc. If I remove the dictionary, then the lloc will be correct. I think, here the issue is colon is present in the dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions