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

ci: Add depcheck test #7124

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# List things here that *are - 'used, that depcheck is wrong about'
ignores:

# Note: Everything below this line should be removed after investigation
# TODO: Investigate each dependency to see whether it's used

## Unused dependencies to investigate
- '@babel/preset-env'
- '@babel/runtime'
- '@cucumber/message-streams'
- '@cucumber/messages'
- '@metamask/mobile-provider'
- '@rpii/wdio-html-reporter'
- '@testing-library/react'
- '@testing-library/react-hooks'
- '@types/jest'
- '@types/react-native-video'
- '@wdio/appium-service'
- '@wdio/browserstack-service'
- '@wdio/junit-reporter'
- '@wdio/local-runner'
- '@wdio/spec-reporter'
- 'appium'
- 'assert'
- 'babel-core'
- 'babel-loader'
- 'chromedriver'
- 'eslint-config-prettier'
- 'eslint-plugin-prettier'
- 'eslint-plugin-react-native'
- 'execa'
- 'fbjs-scripts'
- 'improved-yarn-audit'
- 'jetifier'
- 'metro'
- 'metro-react-native-babel-preset'
- 'octonode'
- 'oss-attribution-generator'
- 'prettier-plugin-gherkin'
- 'react-native-svg-asset-plugin'
- 'regenerator-runtime'
- 'rn-nodeify'

## Unused devDependencies to investigate
- '@ethersproject/abi'
- '@metamask/swappable-obj-proxy'
- '@react-native-picker/picker'
- '@rnhooks/keyboard'
- '@segment/sovran-react-native'
- '@tradle/react-native-http'
- 'asyncstorage-down'
- 'buffer'
- 'd3-shape'
- 'dnode'
- 'eciesjs'
- 'eth-block-tracker'
- 'eth-json-rpc-infura'
- 'events'
- 'https-browserify'
- 'obs-store'
- 'path'
- 'pbkdf2'
- 'pify'
- 'punycode'
- 'randomfill'
- 'react-native-aes-crypto'
- 'react-native-aes-crypto-forked'
- 'react-native-crypto'
- 'react-native-flash-message'
- 'react-native-level-fs'
- 'react-native-os'
- 'react-native-randombytes'
- 'react-native-redash'
- 'react-native-swipe-gestures'
- 'react-native-tcp'
- 'react-native-v8'
- 'socket.io-client'
- 'stream-browserify'
- 'url'
- 'vm-browserify'

## Missing dependencies to investigate
- '@react-navigation/core'
- 'app'
- 'i18n-js'
- 'images'
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- lint
- lint:tsc
- audit:ci
- test:depcheck
- test:tgz-check
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"test:wdio:android": "yarn wdio ./wdio/config/android.config.debug.js",
"test:wdio:android:browserstack": "yarn wdio ./wdio/config/android.config.browserstack.js",
"test:wdio:android:browserstack:local": "yarn wdio ./wdio/config/android.config.browserstack.local.js",
"test:depcheck": "yarn depcheck",
"test:tgz-check": "./scripts/tgz-check.sh",
"test:attribution-check": "./scripts/attributions-check.sh",
"test:merge-coverage": "nyc merge ./tests/coverage ./tests/merged-coverage/coverage.json",
Expand Down Expand Up @@ -408,6 +409,7 @@
"babel-plugin-transform-remove-console": "6.9.4",
"browserstack-local": "^1.5.1",
"chromedriver": "^99.0.0",
"depcheck": "^1.4.5",
"detox": "^20.11.0",
"dotenv": "^16.0.3",
"enzyme": "3.9.0",
Expand Down
Loading