Skip to content

Conversation

@panzarino
Copy link
Contributor

Updates codeclimate to only include files that are actually being scored. Currently there are many files that do not contribute to the overall score (such as markdown docs) but they add clutter to the codeclimate interface. This change removes those documents from showing up on codeclimate.

@panzarino panzarino requested a review from simonbrunel August 13, 2017 19:09
Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch by removing useless file from the CC reports.

paths:
- "src/**/*.js"
exclude_paths:
- dist/**/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's safer to keep dist/ since this folder is pushed in tags - in case we want CC score for releases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

- coverage/**/*
- '.github/'
- 'dist/'
- 'test/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make sense to run code climate on the test code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change isn't removing scores for tests on codeclimate, as they were never scored before (Lines 13-14). This is just removing them from showing up on codeclimate without any score.

As far as running codeclimate on the tests, I think it would just add a whole host of problems that we can't do anything about because tests have a very repetitive structure.

@panzarino panzarino merged commit 7e6b462 into chartjs:master Aug 14, 2017
@simonbrunel simonbrunel added this to the Version 2.7 milestone Aug 14, 2017
silverspectro pushed a commit to silverspectro/Chart.js that referenced this pull request Aug 21, 2017
* Update codeclimate.yml

* Update .codeclimate.yml
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
* Update codeclimate.yml

* Update .codeclimate.yml
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
* Update codeclimate.yml

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants