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

fix: disable files that are unnecessary to scan #1241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ardasnturk
Copy link
Member

  • added file types we don't want codeclimate to scan to exclude_paths
  • added .ts and .tsx file types that we want to be rated by codeclimate to the ratings section

SVA-1557

@ardasnturk ardasnturk added the bug Something isn't working label Jan 30, 2025
@ardasnturk ardasnturk added this to the 4.1.0 milestone Jan 30, 2025
@ardasnturk ardasnturk requested a review from donni106 January 30, 2025 12:19
@ardasnturk ardasnturk self-assigned this Jan 30, 2025
@@ -32,13 +34,22 @@ exclude_paths:
- node_modules/
- scripts/
- src/config/
- __tests__/
Copy link
Member

Choose a reason for hiding this comment

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

maybe the tests are ok, but only the snapshots inside not?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this covers the whole tests folder. Am I wrong?

Copy link
Member

@donni106 donni106 Jan 30, 2025

Choose a reason for hiding this comment

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

yes, this is what i ask about. why should all be excluded? i suggest excluding just snapshots

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. Okay, I understand better now. Inside the tests folder we have the snapshots folder. But there are also snapshots folders inside the screens or navigation folders. Do you think we should block all snapshots folders? Why don't you want to block all tests folders? We haven't written a new test for a very long time and I don't think this section needs to be checked.

Copy link
Member

Choose a reason for hiding this comment

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

the fact that we don't write tests shouldn't be a reason for codeclimate not to take this into account. we should write tests and if we do, the files should be checked, right?! it's not codeclimate's fault that we neglect this.
if the snapshot folder does not make any problems for codeclimate, you do not need to exclude it. i don't know, find some articles or other repositories to check out how to do best.

@ardasnturk ardasnturk force-pushed the fix/SVA-1557-disable-files-that-are-unnecessary-to-scan branch from 16e8b64 to 35090ab Compare January 30, 2025 12:23
.codeclimate.yml Outdated Show resolved Hide resolved
- added file types we don't want codeclimate to scan to `exclude_paths`
- added .ts and .tsx file types that we want to be rated by codeclimate to the `ratings` section

SVA-1557
@ardasnturk ardasnturk force-pushed the fix/SVA-1557-disable-files-that-are-unnecessary-to-scan branch from 35090ab to 16b1c08 Compare January 30, 2025 12:29
@ardasnturk ardasnturk modified the milestones: 4.1.0, 4.1.1 Feb 7, 2025
@donni106 donni106 force-pushed the master branch 3 times, most recently from 67ae56a to 30b5bc4 Compare February 12, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants