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

Support of pipe of single sourcefile #865

Open
paul-hammant opened this issue Nov 2, 2024 · 1 comment
Open

Support of pipe of single sourcefile #865

paul-hammant opened this issue Nov 2, 2024 · 1 comment

Comments

@paul-hammant
Copy link

I've read #465 and this is different, but still about pipes, though.

Give a concise description of what you want cloc to be able to do.

cat My.java | sed '/\w*}\w*/d' | cloc --src-file-from-pip

In this situation I'm trying to make a claim to readers that only have so many consequential lines of code. The source is in the end-of-line-bracing style and I don't care to count } on a line on their own. Sed can remove those for me (the source would not longer compile) and it'd be great if cloc could still do the stats. Workaround is to make a temp file.

@AlDanial
Copy link
Owner

AlDanial commented Nov 2, 2024

Rather than supporting source code piped into cloc, my plan is to implement "ignore" filters such as requested in #862 . I'll keep this open until I implement that.

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