This repository was archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
A number of cleanup commits #126
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2ffe31d
Cleanup .gitignore
kevmoo c3b54d1
Remove analysis_options.yaml - strong mode is enabled by default now
kevmoo 777d7a5
codereview settings is no longer used
kevmoo af3dfd6
Use `=` for default values in named arguments
kevmoo 867f722
use Map/Iterable.isNotEmpty
kevmoo 306c23a
benchmark: populate checkedMode with asserts enabled
kevmoo e7a3105
Enable the default set of lints from pkg:pedantic
kevmoo 6abea8b
Fix up benchmark reporting
kevmoo 8244a37
Adding build_* config to enable benchmarks via browser
kevmoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
# Generated by pub | ||
.dart_tool/ | ||
.idea/ | ||
.packages | ||
.pub | ||
.idea | ||
out | ||
packages | ||
pubspec.lock | ||
|
||
# Other generated files | ||
benchmark/data/pubspec.link.yaml | ||
benchmark/data/pubspec.link.lock | ||
benchmark/data/hostname.txt | ||
benchmark/data/latest_vm.pb.json | ||
benchmark/lib/generated | ||
out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
analyzer: | ||
strong-mode: true | ||
# Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file | ||
# for details. All rights reserved. Use of this source code is governed by a | ||
# BSD-style license that can be found in the LICENSE file. | ||
# | ||
# Google internally enforced rules. See README.md for more information, | ||
# including a list of lints that are intentionally _not_ enforced. | ||
|
||
linter: | ||
rules: | ||
- avoid_empty_else | ||
- avoid_relative_lib_imports | ||
- avoid_return_types_on_setters | ||
- avoid_types_as_parameter_names | ||
- control_flow_in_finally | ||
- no_duplicate_case_values | ||
- prefer_contains | ||
- prefer_equal_for_default_values | ||
- prefer_is_not_empty | ||
- recursive_getters | ||
- throw_in_finally | ||
- unrelated_type_equality_checks | ||
- use_rethrow_when_possible | ||
- valid_regexps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Configuration for Dart build system - https://github.com/dart-lang/build | ||
# Enables running benchmarks via browser: `pub run build_runner serve` | ||
targets: | ||
$default: | ||
builders: | ||
build_web_compilers|entrypoint: | ||
generate_for: | ||
- benchmark/*_browser.dart |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,21 @@ version: 0.10.2 | |
author: Dart Team <[email protected]> | ||
description: Protoc compiler plugin to generate Dart code | ||
homepage: https://github.com/dart-lang/dart-protoc-plugin | ||
|
||
environment: | ||
sdk: '>=2.0.0 <3.0.0' | ||
|
||
dependencies: | ||
fixnum: ^0.10.5 | ||
path: ^1.0.0 | ||
protobuf: ^0.10.2 | ||
dart_style: ^1.0.6 | ||
|
||
dev_dependencies: | ||
build_runner: ^0.10.0 | ||
build_web_compilers: ^0.4.0 | ||
test: ^1.3.0 | ||
yaml: ^2.1.15 | ||
|
||
executables: | ||
protoc-gen-dart: protoc_plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not checking the same thing.
The code as originally written:
Now it is checking for --enable-asserts.
So I expect a performance regression on 'production' apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakudrama – suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And document it better.