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

language based on folder name #44

Closed
yfengBTI opened this issue Dec 4, 2020 · 4 comments
Closed

language based on folder name #44

yfengBTI opened this issue Dec 4, 2020 · 4 comments

Comments

@yfengBTI
Copy link

yfengBTI commented Dec 4, 2020

Is it possible to designate JSON files inside a folder a different language?
I see that filename is an option but not folder name, and I understand there's a directory view below.
This will give me control to create a better summary view up top.

@uctakeoff
Copy link
Owner

uctakeoff commented Dec 5, 2020

I'm sorry. Your English is too difficult for me to understand, I'm not sure I could.
Do you want to aggregate by folder?
I don't think your idea is useful to many other people at the moment.
You can get detailed statistics from the result.csv file.
Isn't it possible to get the information you want by processing the CSV file?

@uctakeoff
Copy link
Owner

Alternatively, you could also add the summary information to the CSV file and output the language distribution of each directory.

@yfengBTI
Copy link
Author

yfengBTI commented Dec 5, 2020

So let's say I have this folder structure:

objects/
├── processes/
│   ├── refresh-dimensions.json
│   ├── reload-data-files.json
│   ├── reload-env-var.json
│   └── reload-feeders.json
├── chores/
│   ├── on-server-startup.json
│   └── hourly.json

We use json files to define a lot of different object types, and each type follows a different schema.
It would be nice to be able to see these as Process-JSON and Chore-JSON instead of only JSON because of the schema differences.

Hope that makes sense.

@uctakeoff
Copy link
Owner

Thank you for the detailed explanation. Perhaps that makes sense.
But I still can't generalize your ideas.
And it is difficult to determine automatically when your ideas should be applied.

As an alternative, I suggest you to prepare a table in summary like the following

dir JSON YAML TypeScript ...
objects/ 3456 123 5678 ...
objects/processes 1222 0 0 ...
objects/chores 578 0 0 ...

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

No branches or pull requests

2 participants