Skip to content

Commit

Permalink
Merge pull request fluttercommunity#681 from diegotori/flutter_3.3_li…
Browse files Browse the repository at this point in the history
…nt_fixes

Flutter 3.3 lint fixes
  • Loading branch information
diegotori authored Nov 3, 2022
2 parents b847af3 + eb09638 commit 9261f8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
name: CI

on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
pull_request:
- master
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
check-format:
name: Check format using flutter format .
name: Check format using flutter format.
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: beta
- name: Flutter Action
uses: subosito/flutter-action@v2
- name: Check format
run: flutter format -n . --set-exit-if-changed
run: flutter format . --set-exit-if-changed

lint:
name: Lint
Expand All @@ -28,14 +31,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: beta
- name: Flutter Action
uses: subosito/flutter-action@v2
- name: Install Package Dependencies
run: flutter packages get
- name: Get dependencies for example
run: flutter pub get
working-directory: example
- name: Lint using flutter analyze
run: flutter analyze
run: flutter analyze .

# test:
# name: Test2
Expand Down
2 changes: 1 addition & 1 deletion example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:lint/analysis_options_package.yaml
include: package:flutter_lints/flutter.yaml

analyzer:
strong-mode:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
lint: ^1.8.2
flutter_lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
Expand Down

0 comments on commit 9261f8b

Please sign in to comment.