mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
ci: dart analyser (#761)
* ci: dart analyser * ci(analyser): clarify the dart analysing step * refactor: ignore generated files * ci(analyser): apply suggestion from code-reviewer Co-Authored-By: Palm <palmpasuthorn@gmail.com> * ci(analyser): apply suggestion from code-reviewer Co-Authored-By: Palm <palmpasuthorn@gmail.com> * ci(analyser): apply suggestion from code-reviewer Co-authored-by: Palm <palmpasuthorn@gmail.com> --------- Co-authored-by: Palm <palmpasuthorn@gmail.com>
This commit is contained in:
parent
d214a02abd
commit
fa4063220f
26
.github/workflows/analyze.yml
vendored
Normal file
26
.github/workflows/analyze.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Analyze Code
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main", "dev" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main", "dev" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
cache: true
|
||||||
|
- name: Install Flutter dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
- name: Generate files with Builder
|
||||||
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
|
- name: Analyze code
|
||||||
|
uses: ValentinVignal/action-dart-analyze@v0.15
|
||||||
|
with:
|
||||||
|
fail-on: warning
|
@ -11,7 +11,10 @@ include: package:flutter_lints/flutter.yaml
|
|||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
exclude:
|
exclude:
|
||||||
- lib/utils/env_class.g.dart
|
- lib/app/app.locator.dart
|
||||||
|
- lib/app/app.router.dart
|
||||||
|
- lib/models/patch.g.dart
|
||||||
|
- lib/models/patched_application.g.dart
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
|
Loading…
Reference in New Issue
Block a user