Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 3 additions & 37 deletions app/over_react_redux/todo_client/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
include: package:pedantic/analysis_options.1.8.0.yaml
# TODO use v1.recommended.yaml, remove duplicates in "rules" section
# This includes a global ignore of `uri_has_not_been_generated`. See: https://github.com/Workiva/over_react/blob/new_boilerplate_wip/doc/new_boilerplate_migration.md#ignore-ungenerated-warnings-project-wide>
include: package:workiva_analysis_options/v1.yaml

linter:
rules:
# -------------------
# Pedantic
# -------------------
avoid_empty_else: true
avoid_init_to_null: true
avoid_relative_lib_imports: true
avoid_return_types_on_setters: true
avoid_shadowing_type_parameters: true
avoid_types_as_parameter_names: true
curly_braces_in_flow_control_structures: true
empty_catches: true
empty_constructor_bodies: true
empty_statements: true
library_names: true
library_prefixes: true
no_duplicate_case_values: true
null_closures: true
prefer_contains: true
prefer_equal_for_default_values: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_iterable_whereType: true
recursive_getters: true
slash_for_doc_comments: true
type_init_formals: true
unawaited_futures: true
unnecessary_const: true
unnecessary_new: true
unnecessary_null_in_if_null_operators: true
unrelated_type_equality_checks: true
use_rethrow_when_possible: true
valid_regexps: true

# -------------------
# Other
# -------------------
annotate_overrides: true
avoid_bool_literals_in_conditional_expressions: true
avoid_classes_with_only_static_members: true
Expand Down
1 change: 1 addition & 0 deletions app/over_react_redux/todo_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dev_dependencies:
test_html_builder: ^1.0.0
time: ^1.2.0
w_common: ^1.20.0
workiva_analysis_options: ^1.1.0

dependency_overrides:
over_react:
Expand Down
3 changes: 3 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ targets:
- "example/**.dart"
- "test/*.browser_test.dart"
- "web/**/index.dart"
options:
dart2js_args:
- --no-minify