Merge branch 'static_code_analyser' into 'master'
[CI] Add code analyze job which is allowed to fail See merge request famedly/famedlysdk!14
This commit is contained in:
commit
147dd933b3
|
@ -19,6 +19,14 @@ coverage:
|
|||
- ./scripts/coverage.sh
|
||||
- flutter pub pub publish --dry-run
|
||||
|
||||
code_analyze:
|
||||
image: cirrusci/flutter
|
||||
stage: coverage
|
||||
dependencies: []
|
||||
script:
|
||||
- flutter analyze
|
||||
allow_failure: true
|
||||
|
||||
builddocs:
|
||||
stage: builddocs
|
||||
image: cirrusci/flutter
|
||||
|
@ -28,7 +36,7 @@ builddocs:
|
|||
paths:
|
||||
- doc/api/
|
||||
only:
|
||||
- master
|
||||
- master
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
|
@ -41,6 +49,6 @@ pages:
|
|||
- builddocs
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
- master
|
9
analysis_options.yaml
Normal file
9
analysis_options.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
linter:
|
||||
rules:
|
||||
#- camel_case_types
|
||||
|
||||
analyzer:
|
||||
# exclude:
|
||||
# - path/to/excluded/files/**
|
|
@ -292,7 +292,7 @@ packages:
|
|||
source: hosted
|
||||
version: "1.6.2"
|
||||
pedantic:
|
||||
dependency: transitive
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: pedantic
|
||||
url: "https://pub.dartlang.org"
|
||||
|
|
|
@ -30,6 +30,8 @@ dev_dependencies:
|
|||
build_runner: ^1.5.2
|
||||
json_serializable: ^3.0.0
|
||||
|
||||
pedantic: ^1.5.0 # DO NOT UPDATE AS THIS WOULD CAUSE FLUTTER TO FAIL
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://www.dartlang.org/tools/pub/pubspec
|
||||
|
||||
|
|
Loading…
Reference in a new issue