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
|
- ./scripts/coverage.sh
|
||||||
- flutter pub pub publish --dry-run
|
- flutter pub pub publish --dry-run
|
||||||
|
|
||||||
|
code_analyze:
|
||||||
|
image: cirrusci/flutter
|
||||||
|
stage: coverage
|
||||||
|
dependencies: []
|
||||||
|
script:
|
||||||
|
- flutter analyze
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
builddocs:
|
builddocs:
|
||||||
stage: builddocs
|
stage: builddocs
|
||||||
image: cirrusci/flutter
|
image: cirrusci/flutter
|
||||||
|
|
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
|
source: hosted
|
||||||
version: "1.6.2"
|
version: "1.6.2"
|
||||||
pedantic:
|
pedantic:
|
||||||
dependency: transitive
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: pedantic
|
name: pedantic
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
|
|
|
@ -30,6 +30,8 @@ dev_dependencies:
|
||||||
build_runner: ^1.5.2
|
build_runner: ^1.5.2
|
||||||
json_serializable: ^3.0.0
|
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
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://www.dartlang.org/tools/pub/pubspec
|
# following page: https://www.dartlang.org/tools/pub/pubspec
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue