-
Notifications
You must be signed in to change notification settings - Fork 89
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
Do Code Climate analysis again #11
Comments
@ekryski say: Tightening up some of rules it uses is on my radar for the other repos as well. Definitely not a huge priority though given most of the repos have a 4.0 GPA. |
The repositories we set up so far (like https://github.com/feathersjs/feathers-permissions) don't seem to include the test files in Code Climate. Maybe because the config at https://github.com/feathersjs/feathers-permissions/blob/master/.istanbul.yml sets the root? |
Oh nevermind, I see it in some of the other repos, too. Let's look into if we can ignore the |
We might be able to even just ignore certain rules |
Here's info I rec'd earlier this year. I had stopped using CC by then because of their tardy support.Jenna Smith [email protected] It was buried at the bottom, so not sure if you saw it in my previous I realize now that I probably should have put that above the information Does that answer your questions? Or is there anything else I can do to help?Other links: In case it's helpful, here's a doc that explains all of this in further And here's the section that talks about excluding on a per engine basis: Here are the analysis CC can run: |
The analysis of feathers-hooks-common is here. Do you want me to make the repetative code on different modules DRY? I think that would worsen its quality. One alternative is to have CC ignore these particular dups. However you can't tell what is being excluded because its a hash. You can't reasonably include the dup code as comments to doc the hash because it could be 20 lines long. So we would end up with
The other alternative is to disable the check but I think CC gives us mainly (only?) dup checking since eslint'ing is already part of Travis. So besides a badge, what would CC do for us if we disabled the check? It seems like some repos will end up pasting hashes to get the badge. |
Code Climate complains about duplicate code even if its in different modules. I found that did not work well for me with unit tests as I want each test to be as obvious as possible. I'll look into how to ignore test files.
The text was updated successfully, but these errors were encountered: