Skip to content

Conversation

@zetaron
Copy link

@zetaron zetaron commented Jun 3, 2016

As I was in deer need to limit the scope of processed files, I added a
way to only check certain paths.

Fabian Stegemann added 2 commits June 3, 2016 18:02
…riable As I was in deer need to limit the scope of processed files, I added a way to only check certain paths.
to allow to skip the codeclimate given include_paths of the main scope
@wfleming
Copy link
Contributor

wfleming commented Jun 3, 2016

Hi @zetaron,

Thanks for the patch, but this isn't functionality we want to add right now. In general, we encourage users to use exclude_paths in their .codeclimate.yml to control which files an engine will analyze.

If that isn't suitable for your needs right now, I'd love to get more feedback about your use case.

Thanks!

@wfleming wfleming closed this Jun 3, 2016
@zetaron
Copy link
Author

zetaron commented Jun 4, 2016

Hey @wfleming,

It actually isn't suitable.
I'm maintaining several Magento 1x projects which are host for several extensions, which I am not the maintainer of.
But I want to at least use the codeclimate tool chain to rank my team's development.
And thus just need to process a very limited number of directories.

Therefore it would be great if you could accept the PR.
I'd provide similar functionality for the other engines we use.

On June 3, 2016 8:59:44 PM GMT+02:00, Will Fleming notifications@github.com wrote:

Hi @zetaron,

Thanks for the patch, but this isn't functionality we want to add right
now. In general, we encourage users to use exclude_paths in their
.codeclimate.yml

to control which files an engine will analyze.

If that isn't suitable for your needs right now, I'd love to get more
feedback about your use case.

Thanks!


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#39 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@wfleming
Copy link
Contributor

wfleming commented Jun 6, 2016

Thanks for the explanation, @zetaron. We have concerns about implementing this piece-meal and for each engine individually: that would lead to needing to maintain many different implementations & probably behavior differences between different engines, which we'd like to avoid for this kind of functionality. We're discussing ways of addressing this in the CLI itself so all engines would be able to benefit from the change immediately & the behavior would be consistent. Hopefully I'll have some more details for you on that soon.

@wfleming
Copy link
Contributor

wfleming commented Jun 6, 2016

@zetaron We just released an update for our CLI (0.34.0) and for our hosted analysis with support for negated exclude patterns, similar to how .gitignore works.

With this functionality, you can ignore everything for an engine & then un-ignore the specific files or glob patterns you care about. e.g.

engines: fixme: enabled: true exclude_paths: - "*" - "!somefile.txt" - "!something/else"

Thanks for your patience on this. Let me know if you run into trouble using this.

@zetaron
Copy link
Author

zetaron commented Jun 7, 2016

@wfleming thanks for the heads up, will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants