forked from arnovanliere/object_3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged with upstream. Added recommended changes to color face PR.
- Loading branch information
Showing
6 changed files
with
190 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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,67 @@ | ||
name: Flutter CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cirruslabs/flutter:stable | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Flutter pub get | ||
run: flutter pub get | ||
|
||
- name: Activate dart_code_metrics | ||
run: flutter pub global activate dart_code_metrics | ||
|
||
- name: Run code metrics | ||
run: flutter pub global run dart_code_metrics:metrics lib -r codeclimate > gh-code-quality-report.json | ||
|
||
- name: Upload code quality report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: code-quality-report | ||
path: gh-code-quality-report.json | ||
|
||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cirruslabs/flutter:stable | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Flutter pub get | ||
run: flutter pub get | ||
|
||
- name: Run Dart analyze | ||
run: dart analyze --fatal-infos | ||
|
||
format: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cirruslabs/flutter:stable | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Flutter pub get | ||
run: flutter pub get | ||
|
||
- name: Run Dart format | ||
run: dart format . -o none --set-exit-if-changed |
This file contains 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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# 1.0.0 (Not Released) | ||
- More precise gesture control (https://github.com/arnovanliere/object_3d/pull/2). | ||
|
||
# 0.0.1 (October 23, 2022) | ||
Initial release. | ||
|
This file contains 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,19 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
exclude: | ||
# workaround for https://github.com/dart-lang/sdk/issues/42910 | ||
- 'example/**' | ||
|
||
linter: | ||
# https://dart-lang.github.io/linter/lints/index.html. | ||
rules: | ||
prefer_single_quotes: true | ||
require_trailing_commas: true | ||
prefer_final_locals: true | ||
prefer_final_in_for_each: true | ||
use_build_context_synchronously: true | ||
always_declare_return_types: true | ||
always_specify_types: false | ||
omit_local_variable_types: true | ||
avoid_types_on_closure_parameters: true |
This file contains 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
Oops, something went wrong.