-
Notifications
You must be signed in to change notification settings - Fork 378
add-lints #3356
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
Merged
add-lints #3356
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
3163868
add lints (wip)
malik1004x e2076fb
Merge branch 'dev' into add-lints
malik1004x ce86bb8
move to builtin custom lint api
malik1004x 963573f
Merge branch 'dev' into add-lints
malik1004x 6356db6
remove broken lint.sh
malik1004x 639347b
remove use_decorated_box
malik1004x 120699c
connect lint_check ci to lint.sh
malik1004x c83d53b
add typecast so app builds without disabling analyzer
malik1004x a6fff48
remove broken analysis_options from cw_* packages
malik1004x b6ea250
remove unneeded dependency override
malik1004x 720f2d5
fix stupid naming
malik1004x 9803d12
add configure to ci
malik1004x 961dad1
move lint call to reusable-build.yml
malik1004x 064362b
workaround weird analyzer bug by reordering linter rules
malik1004x 676d24b
return to old lint.sh to not format deps in scripts
malik1004x 4869f0b
add super.key to BasePage constructor
malik1004x 7800700
disable use_key lint because it's bugged
malik1004x 1e2be90
Revert "add super.key to BasePage constructor"
malik1004x a78b4f0
add cw_* to lint.sh
malik1004x c1e52ed
remove obvious type lint because it's bugged again (thanks google!)
malik1004x e8b5771
ABORT_ON_CHANGE
malik1004x 266c72a
exclude tool and cw_custom_lints from printV check
malik1004x e597443
exclude cw_custom_lints from http import check
malik1004x 6022ebf
test add lint as separate action
malik1004x 30cde78
remove compile graphics from lint ci
malik1004x 1a77817
add container info to ci
malik1004x cefd15c
fix
malik1004x 73c8a55
fix
malik1004x 337c15f
format only files after te 29th
malik1004x 83f03c5
git-based date check
malik1004x 004327b
remove lint from reusable-build.yml
malik1004x f596e4b
move lint.sh out of scripts
malik1004x e469bc4
./
malik1004x 20ec6d3
test fix ci
malik1004x 2228a9b
move lint.sh
malik1004x 62c7ede
move lint.sh
malik1004x 7f3d15b
print all changed files
malik1004x df4e843
fix ci hopefully
malik1004x 5f610cd
revert
malik1004x 8bf8fa2
try ci without cache
malik1004x 800eda6
fix torch, apparently
malik1004x 904da2b
nicer logging
malik1004x 48110d2
add bitbox
malik1004x 53ac8e0
remove zec
malik1004x 54ad756
add zec prep-only
malik1004x a3897be
only detect changes in dart files
malik1004x 6d702ec
add main.dart
malik1004x 6920430
update lints
malik1004x 48a574e
Merge branch 'dev' into add-lints
malik1004x 990adc1
fix printV warnings being displayed when editing printV
malik1004x 4da1799
Merge remote-tracking branch 'origin/dev' into add-lints
MrCyjaneK c7b1ba0
Merge remote-tracking branch 'origin/dev' into add-lints
MrCyjaneK 698faab
Merge remote-tracking branch 'origin/add-lints' into add-lints
malik1004x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| name: Lint | ||
|
|
||
| on: [pull_request] | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
| jobs: | ||
| lint: | ||
| runs-on: [Linux, amd64, android] | ||
| container: | ||
| image: ghcr.io/cake-tech/cake_wallet:debian13-flutter3.41.9-ndkr28-go1.24.1-ruststablenightly | ||
| env: | ||
| STORE_PASS: test@cake_wallet | ||
| KEY_PASS: test@cake_wallet | ||
| MONEROC_CACHE_DIR_ROOT: /opt/generic_cache | ||
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
| ANDROID_AVD_HOME: /root/.android/avd | ||
| volumes: | ||
| - /opt/cw_cache_android/root/.cache:/root/.cache | ||
| - /opt/cw_cache_android/root/.android/avd/:/root/.android/avd | ||
| - /opt/cw_cache_android/root/.ccache:/root/.ccache | ||
| - /opt/cw_cache_android/root/.pub-cache/:/root/.pub-cache | ||
| - /opt/cw_cache_android/root/.gradle/:/root/.gradle | ||
| - /opt/cw_cache_android/root/.android/:/root/.android | ||
| - /opt/cw_cache_android/root/go/pkg:/root/go/pkg | ||
| - /opt/cw_cache_android/opt/generic_cache:/opt/generic_cache | ||
| - /dev/kvm:/dev/kvm | ||
| - /var/run/docker.sock:/var/run/docker.sock | ||
| strategy: | ||
| matrix: | ||
| api-level: [ 29 ] | ||
|
|
||
| steps: | ||
| - name: configure git | ||
| run: | | ||
| git config --global --add safe.directory '*' | ||
| git config --global user.email "ci@cakewallet.com" | ||
| git config --global user.name "CakeWallet CI" | ||
| - name: Fetch prebuilt Torch | ||
| run: | | ||
| set -x -e | ||
| pushd scripts | ||
| wget https://github.com/MrCyjaneK/torch_dart/releases/download/v1.0.17/torch_dart-v1.0.17.tar.gz -O torch_dart.tar.gz | ||
| rm -rf torch_dart | ||
| mkdir torch_dart | ||
| pushd torch_dart | ||
| tar -xzf ../torch_dart.tar.gz | ||
| popd | ||
| rm ./torch_dart.tar.gz | ||
| popd | ||
| - name: Fetch prebuilt Reown | ||
| run: | | ||
| set -x -e | ||
| pushd scripts | ||
| # cleaning | ||
| rm -rf reown_flutter | ||
| rm -f reown_flutter.tar.gz | ||
| wget https://github.com/cake-tech/reown_flutter/releases/download/v0.0.4/reown_flutter-v0.0.4.tar.gz -O reown_flutter.tar.gz | ||
| mkdir reown_flutter | ||
| pushd reown_flutter | ||
| tar -xzf ../reown_flutter.tar.gz | ||
| popd | ||
| rm ./reown_flutter.tar.gz | ||
| popd | ||
| - name: Build Bitbox Flutter | ||
| run: | | ||
| set -x -e | ||
| pushd scripts | ||
| ./build_bitbox_flutter.sh | ||
| popd | ||
| - name: Prepare Zcash | ||
| run: | | ||
| set -x -e | ||
| scripts/prepare_zcash.sh | ||
| - name: Execute Build and Setup Commands | ||
| run: | | ||
| pushd scripts/android | ||
| source ./app_env.sh cakewallet | ||
| export GITHUB_HUH=yeah | ||
| ./app_config.sh | ||
| popd | ||
| - name: Install Flutter dependencies | ||
| run: | | ||
| flutter pub get | ||
| - name: Build generated code | ||
| run: | | ||
| flutter --version | ||
| flutter clean | ||
| rm -rf .dart_tool | ||
| rm pubspec.lock | ||
| flutter pub get | ||
| ./model_generator.sh async | ||
| - name: Generate localization | ||
| run: | | ||
| dart run tool/generate_localization.dart | ||
| - name: Lint | ||
| run: | | ||
| ABORT_ON_CHANGE=yeah scripts/lint.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.