51 |
52 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/docs/packages/build_runner/src/server/graph_viz.js:
--------------------------------------------------------------------------------
1 | window.$build = {}
2 | window.$build.initializeGraph = function (scope) {
3 | scope.options = {
4 | layout: {
5 | hierarchical: { enabled: true }
6 | },
7 | physics: { enabled: true },
8 | configure: {
9 | showButton: false
10 | },
11 | edges: {
12 | arrows: {
13 | to: {
14 | enabled: true
15 | }
16 | }
17 | }
18 | };
19 | scope.graphContainer = document.getElementById('graph');
20 | scope.network = new vis.Network(
21 | scope.graphContainer, { nodes: [], edges: [] }, scope.options);
22 | scope.network.on('doubleClick', function (event) {
23 | if (event.nodes.length >= 1) {
24 | var nodeId = event.nodes[0];
25 | scope.onFocus(nodeId);
26 | return null;
27 | }
28 | });
29 |
30 | return function (onFocus) {
31 | scope.onFocus = onFocus;
32 | };
33 | }(window.$build);
34 | window.$build.setData = function (scope) {
35 | return function (data) {
36 | scope.network.setData(data);
37 | }
38 | }(window.$build);
39 |
--------------------------------------------------------------------------------
/docs/packages/effective_dart/analysis_options.1.0.0.yaml:
--------------------------------------------------------------------------------
1 | linter:
2 | rules:
3 | # STYLE
4 | - camel_case_types
5 | - library_names
6 | - file_names
7 | - library_prefixes
8 | - non_constant_identifier_names
9 | - constant_identifier_names # prefer
10 | - directives_ordering
11 | #- lines_longer_than_80_chars # avoid
12 | - curly_braces_in_flow_control_structures
13 |
14 | # DOCUMENTATION
15 | - slash_for_doc_comments
16 | - package_api_docs # prefer # ?
17 | - public_member_api_docs # prefer # ?
18 | - comment_references
19 |
20 | # USAGE
21 | - avoid_relative_lib_imports # prefer
22 | - prefer_adjacent_string_concatenation
23 | - prefer_interpolation_to_compose_strings # prefer
24 | - unnecessary_brace_in_string_interps # avoid
25 | - prefer_collection_literals
26 | - avoid_function_literals_in_foreach_calls # avoid
27 | - prefer_iterable_whereType
28 | - prefer_function_declarations_over_variables
29 | - unnecessary_lambdas
30 | - prefer_equal_for_default_values
31 | - avoid_init_to_null
32 | - unnecessary_getters_setters
33 | #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23
34 | #- prefer_expression_function_bodies # consider
35 | - unnecessary_this
36 | - prefer_initializing_formals
37 | - type_init_formals
38 | - empty_constructor_bodies
39 | - unnecessary_new
40 | - unnecessary_const
41 | - avoid_catches_without_on_clauses # avoid
42 | - use_rethrow_when_possible
43 |
44 | # DESIGN
45 | - use_to_and_as_if_applicable # prefer
46 | - one_member_abstracts # avoid
47 | - avoid_classes_with_only_static_members # avoid
48 | - prefer_final_fields # prefer
49 | - use_setters_to_change_properties
50 | - avoid_setters_without_getters
51 | - avoid_returning_null # avoid
52 | - avoid_returning_this # avoid
53 | - type_annotate_public_apis # prefer
54 | #- prefer_typing_uninitialized_variables # consider
55 | - omit_local_variable_types # avoid
56 | - avoid_return_types_on_setters
57 | - prefer_generic_function_type_aliases
58 | - avoid_private_typedef_functions # prefer
59 | #- use_function_type_syntax_for_parameters # consider
60 | - avoid_positional_boolean_parameters # avoid
61 | - hash_and_equals
62 | - avoid_null_checks_in_equality_operators
63 |
--------------------------------------------------------------------------------
/docs/packages/effective_dart/analysis_options.1.1.0.yaml:
--------------------------------------------------------------------------------
1 | linter:
2 | rules:
3 | # STYLE
4 | - camel_case_types
5 | - library_names
6 | - file_names
7 | - library_prefixes
8 | - non_constant_identifier_names
9 | - constant_identifier_names # prefer
10 | - directives_ordering
11 | #- lines_longer_than_80_chars # avoid
12 | - curly_braces_in_flow_control_structures
13 |
14 | # DOCUMENTATION
15 | - slash_for_doc_comments
16 | - package_api_docs # prefer # ?
17 | - public_member_api_docs # prefer # ?
18 | #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974
19 |
20 | # USAGE
21 | - avoid_relative_lib_imports # prefer
22 | - prefer_adjacent_string_concatenation
23 | - prefer_interpolation_to_compose_strings # prefer
24 | - unnecessary_brace_in_string_interps # avoid
25 | - prefer_collection_literals
26 | - avoid_function_literals_in_foreach_calls # avoid
27 | - prefer_iterable_whereType
28 | - prefer_function_declarations_over_variables
29 | - unnecessary_lambdas
30 | - prefer_equal_for_default_values
31 | - avoid_init_to_null
32 | - unnecessary_getters_setters
33 | #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23
34 | #- prefer_expression_function_bodies # consider
35 | - unnecessary_this
36 | - prefer_initializing_formals
37 | - type_init_formals
38 | - empty_constructor_bodies
39 | - unnecessary_new
40 | - unnecessary_const
41 | - avoid_catches_without_on_clauses # avoid
42 | - use_rethrow_when_possible
43 |
44 | # DESIGN
45 | - use_to_and_as_if_applicable # prefer
46 | - one_member_abstracts # avoid
47 | - avoid_classes_with_only_static_members # avoid
48 | - prefer_final_fields # prefer
49 | - use_setters_to_change_properties
50 | - avoid_setters_without_getters
51 | - avoid_returning_null # avoid
52 | - avoid_returning_this # avoid
53 | - type_annotate_public_apis # prefer
54 | #- prefer_typing_uninitialized_variables # consider
55 | - omit_local_variable_types # avoid
56 | - avoid_return_types_on_setters
57 | - prefer_generic_function_type_aliases
58 | - avoid_private_typedef_functions # prefer
59 | #- use_function_type_syntax_for_parameters # consider
60 | - avoid_positional_boolean_parameters # avoid
61 | - hash_and_equals
62 | - avoid_null_checks_in_equality_operators
63 |
--------------------------------------------------------------------------------
/docs/packages/effective_dart/analysis_options.1.2.0.yaml:
--------------------------------------------------------------------------------
1 | linter:
2 | rules:
3 | # STYLE
4 | - camel_case_types
5 | - camel_case_extensions
6 | - library_names
7 | - file_names
8 | - library_prefixes
9 | - non_constant_identifier_names
10 | - constant_identifier_names # prefer
11 | - directives_ordering
12 | - lines_longer_than_80_chars # avoid
13 | - curly_braces_in_flow_control_structures
14 |
15 | # DOCUMENTATION
16 | - slash_for_doc_comments
17 | - package_api_docs # prefer
18 | - public_member_api_docs # prefer
19 | #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974
20 |
21 | # USAGE
22 | - implementation_imports
23 | - avoid_relative_lib_imports # prefer
24 | - prefer_relative_imports # prefer
25 | - prefer_adjacent_string_concatenation
26 | - prefer_interpolation_to_compose_strings # prefer
27 | - unnecessary_brace_in_string_interps # avoid
28 | - prefer_collection_literals
29 | - avoid_function_literals_in_foreach_calls # avoid
30 | - prefer_iterable_whereType
31 | - prefer_function_declarations_over_variables
32 | - unnecessary_lambdas
33 | - prefer_equal_for_default_values
34 | - avoid_init_to_null
35 | - unnecessary_getters_setters
36 | #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23
37 | #- prefer_expression_function_bodies # consider
38 | - unnecessary_this
39 | - prefer_initializing_formals
40 | - type_init_formals
41 | - empty_constructor_bodies
42 | - unnecessary_new
43 | - unnecessary_const
44 | - avoid_catches_without_on_clauses # avoid
45 | - avoid_catching_errors
46 | - use_rethrow_when_possible
47 |
48 | # DESIGN
49 | - use_to_and_as_if_applicable # prefer
50 | - one_member_abstracts # avoid
51 | - avoid_classes_with_only_static_members # avoid
52 | - prefer_mixin
53 | - prefer_final_fields # prefer
54 | - use_setters_to_change_properties
55 | - avoid_setters_without_getters
56 | - avoid_returning_null # avoid
57 | - avoid_returning_this # avoid
58 | - type_annotate_public_apis # prefer
59 | #- prefer_typing_uninitialized_variables # consider
60 | - omit_local_variable_types # avoid
61 | - avoid_types_on_closure_parameters # avoid
62 | - avoid_return_types_on_setters # avoid
63 | - prefer_generic_function_type_aliases
64 | - avoid_private_typedef_functions # prefer
65 | #- use_function_type_syntax_for_parameters # consider
66 | - avoid_positional_boolean_parameters # avoid
67 | - hash_and_equals
68 | - avoid_equals_and_hash_code_on_mutable_classes # avoid
69 | - avoid_null_checks_in_equality_operators
70 |
--------------------------------------------------------------------------------
/docs/packages/effective_dart/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:effective_dart/analysis_options.1.2.0.yaml
2 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.0.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_relative_lib_imports
12 | - avoid_return_types_on_setters
13 | - avoid_types_as_parameter_names
14 | - control_flow_in_finally
15 | - no_duplicate_case_values
16 | - prefer_contains
17 | - prefer_equal_for_default_values
18 | - prefer_is_not_empty
19 | - recursive_getters
20 | - throw_in_finally
21 | - unrelated_type_equality_checks
22 | - use_rethrow_when_possible
23 | - valid_regexps
24 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.1.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_relative_lib_imports
12 | - avoid_return_types_on_setters
13 | - avoid_types_as_parameter_names
14 | - control_flow_in_finally
15 | - no_duplicate_case_values
16 | - prefer_contains
17 | - prefer_equal_for_default_values
18 | - prefer_is_not_empty
19 | - recursive_getters
20 | - throw_in_finally
21 | - unrelated_type_equality_checks
22 | - use_rethrow_when_possible
23 | - valid_regexps
24 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.2.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_relative_lib_imports
12 | - avoid_return_types_on_setters
13 | - avoid_types_as_parameter_names
14 | - no_duplicate_case_values
15 | - prefer_contains
16 | - prefer_equal_for_default_values
17 | - prefer_is_not_empty
18 | - recursive_getters
19 | - unrelated_type_equality_checks
20 | - use_rethrow_when_possible
21 | - unawaited_futures
22 | - valid_regexps
23 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.3.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_relative_lib_imports
12 | - avoid_return_types_on_setters
13 | - avoid_types_as_parameter_names
14 | - no_duplicate_case_values
15 | - prefer_contains
16 | - prefer_equal_for_default_values
17 | - prefer_is_empty
18 | - prefer_is_not_empty
19 | - recursive_getters
20 | - unrelated_type_equality_checks
21 | - use_rethrow_when_possible
22 | - unawaited_futures
23 | - valid_regexps
24 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.4.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_init_to_null
12 | - avoid_relative_lib_imports
13 | - avoid_return_types_on_setters
14 | - avoid_types_as_parameter_names
15 | - no_duplicate_case_values
16 | - null_closures
17 | - prefer_contains
18 | - prefer_equal_for_default_values
19 | - prefer_is_empty
20 | - prefer_is_not_empty
21 | - recursive_getters
22 | - unrelated_type_equality_checks
23 | - use_rethrow_when_possible
24 | - unawaited_futures
25 | - valid_regexps
26 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.5.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_init_to_null
12 | - avoid_relative_lib_imports
13 | - avoid_return_types_on_setters
14 | - avoid_shadowing_type_parameters
15 | - avoid_types_as_parameter_names
16 | - empty_constructor_bodies
17 | - no_duplicate_case_values
18 | - null_closures
19 | - prefer_contains
20 | - prefer_equal_for_default_values
21 | - prefer_is_empty
22 | - prefer_is_not_empty
23 | - recursive_getters
24 | - slash_for_doc_comments
25 | - unawaited_futures
26 | - unrelated_type_equality_checks
27 | - use_rethrow_when_possible
28 | - valid_regexps
29 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.6.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_init_to_null
12 | - avoid_relative_lib_imports
13 | - avoid_return_types_on_setters
14 | - avoid_shadowing_type_parameters
15 | - avoid_types_as_parameter_names
16 | - curly_braces_in_flow_control_structures
17 | - empty_catches
18 | - empty_constructor_bodies
19 | - library_names
20 | - library_prefixes
21 | - no_duplicate_case_values
22 | - null_closures
23 | - prefer_contains
24 | - prefer_equal_for_default_values
25 | - prefer_is_empty
26 | - prefer_is_not_empty
27 | - recursive_getters
28 | - slash_for_doc_comments
29 | - type_init_formals
30 | - unawaited_futures
31 | - unnecessary_null_in_if_null_operators
32 | - unrelated_type_equality_checks
33 | - use_rethrow_when_possible
34 | - valid_regexps
35 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.7.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_init_to_null
12 | - avoid_relative_lib_imports
13 | - avoid_return_types_on_setters
14 | - avoid_shadowing_type_parameters
15 | - avoid_types_as_parameter_names
16 | - curly_braces_in_flow_control_structures
17 | - empty_catches
18 | - empty_constructor_bodies
19 | - library_names
20 | - library_prefixes
21 | - no_duplicate_case_values
22 | - null_closures
23 | - prefer_contains
24 | - prefer_equal_for_default_values
25 | - prefer_is_empty
26 | - prefer_is_not_empty
27 | - recursive_getters
28 | - slash_for_doc_comments
29 | - type_init_formals
30 | - unawaited_futures
31 | - unnecessary_null_in_if_null_operators
32 | - unrelated_type_equality_checks
33 | - use_rethrow_when_possible
34 | - valid_regexps
35 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.8.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - avoid_empty_else
11 | - avoid_init_to_null
12 | - avoid_relative_lib_imports
13 | - avoid_return_types_on_setters
14 | - avoid_shadowing_type_parameters
15 | - avoid_types_as_parameter_names
16 | - curly_braces_in_flow_control_structures
17 | - empty_catches
18 | - empty_constructor_bodies
19 | - library_names
20 | - library_prefixes
21 | - no_duplicate_case_values
22 | - null_closures
23 | - prefer_contains
24 | - prefer_equal_for_default_values
25 | - prefer_is_empty
26 | - prefer_is_not_empty
27 | - prefer_iterable_whereType
28 | - recursive_getters
29 | - slash_for_doc_comments
30 | - type_init_formals
31 | - unawaited_futures
32 | - unnecessary_const
33 | - unnecessary_new
34 | - unnecessary_null_in_if_null_operators
35 | - unrelated_type_equality_checks
36 | - use_rethrow_when_possible
37 | - valid_regexps
38 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.1.9.0.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 |
8 | linter:
9 | rules:
10 | - always_declare_return_types
11 | - always_require_non_null_named_parameters
12 | - annotate_overrides
13 | - avoid_empty_else
14 | - avoid_init_to_null
15 | - avoid_null_checks_in_equality_operators
16 | - avoid_relative_lib_imports
17 | - avoid_return_types_on_setters
18 | - avoid_shadowing_type_parameters
19 | - avoid_types_as_parameter_names
20 | - camel_case_extensions
21 | - curly_braces_in_flow_control_structures
22 | - empty_catches
23 | - empty_constructor_bodies
24 | - library_names
25 | - library_prefixes
26 | - no_duplicate_case_values
27 | - null_closures
28 | - omit_local_variable_types
29 | - prefer_adjacent_string_concatenation
30 | - prefer_collection_literals
31 | - prefer_conditional_assignment
32 | - prefer_contains
33 | - prefer_equal_for_default_values
34 | - prefer_final_fields
35 | - prefer_for_elements_to_map_fromIterable
36 | - prefer_generic_function_type_aliases
37 | - prefer_if_null_operators
38 | - prefer_is_empty
39 | - prefer_is_not_empty
40 | - prefer_iterable_whereType
41 | - prefer_single_quotes
42 | - prefer_spread_collections
43 | - recursive_getters
44 | - slash_for_doc_comments
45 | - type_init_formals
46 | - unawaited_futures
47 | - unnecessary_const
48 | - unnecessary_new
49 | - unnecessary_null_in_if_null_operators
50 | - unnecessary_this
51 | - unrelated_type_equality_checks
52 | - use_function_type_syntax_for_parameters
53 | - use_rethrow_when_possible
54 | - valid_regexps
55 |
--------------------------------------------------------------------------------
/docs/packages/pedantic/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
2 | # for details. All rights reserved. Use of this source code is governed by a
3 | # BSD-style license that can be found in the LICENSE file.
4 | #
5 | # Google internally enforced rules. See README.md for more information,
6 | # including a list of lints that are intentionally _not_ enforced.
7 | #
8 | # Include this file if you want to always use the latest version. If your
9 | # continuous build and/or presubmit check lints then they will likely fail
10 | # whenever a new version of `package:pedantic` is released. To avoid this,
11 | # specify a specific version of `analysis_options.yaml` instead.
12 |
13 | include: package:pedantic/analysis_options.1.9.0.yaml
14 |
--------------------------------------------------------------------------------
/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | dart pub get
4 |
5 | webdev serve --hostname 0.0.0.0 --live-reload
6 |
--------------------------------------------------------------------------------
/lib/handle_dump_parser.dart:
--------------------------------------------------------------------------------
1 | import 'package:collection/collection.dart';
2 | import 'package:csv/csv.dart';
3 | import 'package:quiver/core.dart';
4 |
5 | import 'sorting.dart';
6 |
7 | const _csvHead = ['Owner', 'HandleCount', 'MostUsedHandle', 'Memory'];
8 |
9 | const _listEquality = ListEquality();
10 | const _mapEquality = MapEquality