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

Feature request: inline way of telling clonedigger to skip parts of code #4

Open
pitchforks opened this issue Jul 20, 2015 · 1 comment

Comments

@pitchforks
Copy link

There is the --func-prefixes option but it's not flexible enough. I'd rather want clonedigger to be also able to do what other code analysis tools (pylint, coverage) can - skip explicitly marked parts of code.

For example something like:

def foo():  # clonedigger: skip

would skip the function foo()

Or

class Bar:  # clonedigger: skip

would skip the whole class Bar

@floer32
Copy link

floer32 commented Dec 29, 2015

Yeah clonedigger needs something like this. But it would be even better if it were regexes or something that didn't clog up your code. Because I'm seeing now that it gets false positives for docstrings and doctests! I can't figure out how to fix it in the source code just yet but I'll keep trying...

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