Skip to content

Commit dba150c

Browse files
srawlinsscheglov
andauthored
Merge master branch into nnbd branch (#2885)
* Stop using JavaFile. (#2856) * Add a resources-dir option (#2857) * Skip sdk-analyzer job (#2863) * Use 'index' to access the enum value index. (#2865) Co-authored-by: Sam Rawlins <[email protected]> * Re-enable sdk-analyzer job, but make it not failing (#2864) Co-authored-by: Konstantin Scheglov <[email protected]>
1 parent 060c847 commit dba150c

File tree

3 files changed

+40
-22
lines changed

3 files changed

+40
-22
lines changed

analysis_options.yaml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ analyzer:
3232
- 'testing/test_package_export_error/**'
3333
linter:
3434
rules:
35-
- always_declare_return_types
36-
- always_put_required_named_parameters_first
37-
- avoid_bool_literals_in_conditional_expressions
38-
- avoid_unused_constructor_parameters
39-
- directives_ordering
40-
- no_adjacent_strings_in_list
41-
- package_api_docs
42-
- prefer_single_quotes
43-
- sort_child_properties_last
44-
- unawaited_futures
45-
- unnecessary_null_aware_assignments
35+
always_declare_return_types: true
36+
always_put_required_named_parameters_first: true
37+
avoid_bool_literals_in_conditional_expressions: true
38+
avoid_dynamic_calls: true
39+
avoid_single_cascade_in_expression_statements: true
40+
avoid_unused_constructor_parameters: true
41+
avoid_init_to_null: true
42+
directives_ordering: true
43+
no_adjacent_strings_in_list: true
44+
package_api_docs: true
45+
prefer_final_fields: true
46+
prefer_initializing_formals: true
47+
prefer_single_quotes: true
48+
prefer_void_to_null: true
49+
slash_for_doc_comments: true
50+
type_annotate_public_apis: true
51+
# Work in progress canonical score lints
52+
unawaited_futures: true
53+
unnecessary_null_aware_assignments: true

analysis_options_presubmit.yaml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,22 @@ analyzer:
3636
- 'testing/test_package_bad/**'
3737
linter:
3838
rules:
39-
- always_declare_return_types
40-
- always_put_required_named_parameters_first
41-
- avoid_bool_literals_in_conditional_expressions
42-
- avoid_unused_constructor_parameters
43-
- directives_ordering
44-
- no_adjacent_strings_in_list
45-
- package_api_docs
46-
- prefer_single_quotes
47-
- sort_child_properties_last
48-
- unawaited_futures
49-
- unnecessary_null_aware_assignments
39+
always_declare_return_types: true
40+
always_put_required_named_parameters_first: true
41+
avoid_bool_literals_in_conditional_expressions: true
42+
avoid_dynamic_calls: true
43+
avoid_single_cascade_in_expression_statements: true
44+
avoid_unused_constructor_parameters: true
45+
avoid_init_to_null: true
46+
directives_ordering: true
47+
no_adjacent_strings_in_list: true
48+
package_api_docs: true
49+
prefer_final_fields: true
50+
prefer_initializing_formals: true
51+
prefer_single_quotes: true
52+
prefer_void_to_null: true
53+
slash_for_doc_comments: true
54+
type_annotate_public_apis: true
55+
# Work in progress canonical score lints
56+
unawaited_futures: true
57+
unnecessary_null_aware_assignments: true

lib/options.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ class DartdocGeneratorOptionContext extends DartdocOptionContext {
4141
String? get relCanonicalPrefix =>
4242
optionSet['relCanonicalPrefix'].valueAt(context);
4343

44+
/// The 'templatesDir' dartdoc option if one was specified; otherwise `null`.
4445
String? get templatesDir => optionSet['templatesDir'].valueAt(context);
4546

4647
// TODO(jdkoren): duplicated temporarily so that GeneratorContext is enough for configuration.
4748
@override
4849
bool get useBaseHref => optionSet['useBaseHref'].valueAt(context);
4950

51+
/// The 'resourcesDir' dartdoc option if one was specified; otherwise `null`.
5052
String? get resourcesDir => optionSet['resourcesDir'].valueAt(context);
5153
}
5254

0 commit comments

Comments
 (0)