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

Transforming input before reporting #1067

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Shogoki
Copy link

@Shogoki Shogoki commented Feb 2, 2024

Hey there,

We had the need to sometimes apply some transformations on the content of code files before getting the statistics for them. Right now tokei was not really giving us the possibility to do that.

Therefor I did take a look at the code and thought this would be easy to add, without affecting any existing functionality. Would be cool if we could get that integrated into an upcoming version.

What i did is, I added another Config option, which allows to pass a function, which will transform the text content of a file before getting the statistics.

Would love to hear your thoughts, and happy to adapt the feature in a way that might suit the project better.

@Shogoki
Copy link
Author

Shogoki commented Mar 15, 2024

Hey @XAMPPRocky,

Any chance you can take it a look at this and we can get this merged?

@XAMPPRocky
Copy link
Owner

Thank you for your PR! However I'm quite busy right now, so it will be quite awhile before I can review this feature addition.

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

Successfully merging this pull request may close these issues.

2 participants