diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f24f2a..cebe413 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - master \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..2ff74f1 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,9 @@ +include: package:pedantic/analysis_options.yaml + +linter: + rules: + #- camel_case_types + +analyzer: +# exclude: +# - path/to/excluded/files/** \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index d790ad6..ad155ed 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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" diff --git a/pubspec.yaml b/pubspec.yaml index eaf5ab1..4a3acb4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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