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

How are the filenames listed by the '--files' option ordered? #1053

Closed
Adamska1008 opened this issue Dec 22, 2023 · 0 comments · Fixed by #1059 · May be fixed by UPB-CS-OpenSourceUpstream/tokei#1
Closed

How are the filenames listed by the '--files' option ordered? #1053

Adamska1008 opened this issue Dec 22, 2023 · 0 comments · Fixed by #1059 · May be fixed by UPB-CS-OpenSourceUpstream/tokei#1

Comments

@Adamska1008
Copy link

I start a new project and use tokei to track code lines. It seems that the filenames are not sorted in lexicographical order with --files flag. It confused me because all files in different directories are mixed together, here is what it looks like

$ tokei --files
===========================================================================================================================================================
 Language                                                                                        Files        Lines         Code     Comments       Blanks
===========================================================================================================================================================
 Go                                                                                                  8          332          273           12           47
-----------------------------------------------------------------------------------------------------------------------------------------------------------
 ./middleware/auth_middleware.go                                                                                  7            5            0            2
 ./main.go                                                                                                       64           54            0           10
 ./handlers/task_handlers.go                                                                                     23           12            0           11
 ./config/config.go                                                                                              48           40            1            7
 ./models/task_models_test.go                                                                                    36           33            0            3
 ./models/user_models.go                                                                                          9            7            0            2
 ./handlers/auth_handlers.go                                                                                     97           82            9            6
 ./models/task_models.go                                                                                         48           40            2            6
===========================================================================================================================================================
 Total                                                                                               8          332          273           12           47
===========================================================================================================================================================

I know the order of filenames is not really an important issue, but I think having order is always better than disorder. I would appreciate hearing the opinions of others, if you don't mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant