Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sync] 2022/11/28 #415

Merged
merged 33 commits into from
Dec 3, 2022
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
92f388f
Bump github/codeql-action from 2.1.30 to 2.1.31 (#4353)
dependabot[bot] Nov 8, 2022
6deb719
Only add a tag to JS code where include-lang is specified (#4346)
parlough Nov 8, 2022
e96d5a9
Adjust and move Effective Dart's linter mention (#4345)
parlough Nov 8, 2022
4efe1dc
Document specifying a file path when activating a package (#4356)
parlough Nov 9, 2022
659fc2d
Add macOS 13 Ventura and remove Catalina support (#4316)
athomas Nov 9, 2022
537e450
Update linter rules to release 1.30 (#4358)
parlough Nov 10, 2022
6b9d34e
Update to new Dart Apprentice books (#4360)
parlough Nov 10, 2022
a114203
Add dart.dev/go/content-hashes (#4362)
jonasfj Nov 11, 2022
837e77f
Bump site-shared from `cbd9b39` to `3f55d07` (#4372)
dependabot[bot] Nov 14, 2022
09ef968
Remove non-null-safe video playlist (#4365)
parlough Nov 14, 2022
37c3321
Better clarify option for named parameters in migration guide (#4364)
parlough Nov 14, 2022
2ec4dbb
Remove Intro to dart:io page (#4374)
MaryaBelanger Nov 14, 2022
9cf61bb
Update custom metadata code example in language tour (#4367)
parlough Nov 15, 2022
f19c6f6
Bump github/codeql-action from 2.1.31 to 2.1.32 (#4377)
dependabot[bot] Nov 15, 2022
18f79c8
Bump site-shared from `cbd9b39` to `3f55d07` (#4378)
dependabot[bot] Nov 15, 2022
9d9376a
Mention generate constructor in null safety FAQ (#4368)
parlough Nov 15, 2022
adc5ce1
Move default value for optional parameters discussion to each individ…
parlough Nov 15, 2022
449ede2
Bump ruby from `ed50d57` to `5d413e3` (#4380)
dependabot[bot] Nov 16, 2022
1ed53d5
Bump github/codeql-action from 2.1.32 to 2.1.33 (#4381)
dependabot[bot] Nov 17, 2022
b806903
Fix build for new dev analysis changes (#4384)
parlough Nov 17, 2022
f74289a
Remove jobs/hiring note from banner (#4385)
parlough Nov 17, 2022
0ffdb13
Drop referenced to discontinued firebase package (#4386)
kevmoo Nov 17, 2022
e6aeb08
Update linter rules for bad-good consistency and linter 1.30 (#4383)
parlough Nov 18, 2022
2ec4a83
Remove usage of diff2html (#4389)
parlough Nov 18, 2022
2640383
Update pubspec dependency constraints (#4392)
viniciusddrft Nov 20, 2022
9d67c7c
Update JS to Dart (#4354)
atsansone Nov 21, 2022
0099ada
Provide better clarity around operator precedence and associativity (…
parlough Nov 21, 2022
694c864
sync docs, 2022/11/28
chenglu Nov 28, 2022
f40cec2
submodule sync
chenglu Nov 28, 2022
04d87e5
remove dart-io.md
chenglu Nov 28, 2022
749f472
Apply suggestions from code review
chenglu Dec 1, 2022
73be28d
Update src/_guides/language/language-tour.md
chenglu Dec 1, 2022
59764a4
Add missed English translation
chenglu Dec 3, 2022
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
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@18fe527fa8b29f134bb91f32f1a5dc5abb15ed7f
uses: github/codeql-action/init@678fc3afe258fb2e0cdc165ccf77b85719de7b3c
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -44,7 +44,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@18fe527fa8b29f134bb91f32f1a5dc5abb15ed7f
uses: github/codeql-action/autobuild@678fc3afe258fb2e0cdc165ccf77b85719de7b3c

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -58,4 +58,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@18fe527fa8b29f134bb91f32f1a5dc5abb15ed7f
uses: github/codeql-action/analyze@678fc3afe258fb2e0cdc165ccf77b85719de7b3c
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@18fe527fa8b29f134bb91f32f1a5dc5abb15ed7f
uses: github/codeql-action/upload-sarif@678fc3afe258fb2e0cdc165ccf77b85719de7b3c
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3-slim-bullseye@sha256:ed50d5719f8ecd0bae4d26bc91672f130463d7be05b67433ab595af39da1a95d as base
FROM ruby:3-slim-bullseye@sha256:5d413e301f37cbe63a54dadded2f347496165c1de0dbe342d1f0f0d47e25b2be as base

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=US/Pacific
Expand Down
2 changes: 1 addition & 1 deletion examples/analysis/analyzer-results-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Analyzing analysis...

error - lib/strict_modes.dart:15:7 - The argument type 'dynamic' can't be assigned to the parameter type 'List<String>'. - argument_type_not_assignable
info - lib/lint.dart:9:19 - Avoid empty statements. - empty_statements
info - lib/lint.dart:9:19 - Unnecessary empty statement. Try removing the empty statement or restructuring the code. - empty_statements
info - lib/lint.dart:17:7 - Close instances of `dart.core.Sink`. - close_sinks
info - lib/strict_modes.dart:22:17 - The type argument(s) of 'Map' can't be inferred. Use explicit type argument(s) for 'Map'. - inference_failure_on_collection_literal
info - lib/strict_modes.dart:33:3 - The generic type 'List<dynamic>' should have explicit type arguments but doesn't. Use explicit type arguments for 'List<dynamic>'. - strict_raw_type
Expand Down
8 changes: 0 additions & 8 deletions examples/misc/lib/articles/io/io_file_system_test.dart

This file was deleted.

43 changes: 0 additions & 43 deletions examples/misc/lib/articles/io/io_http_server_file_test.dart

This file was deleted.

10 changes: 0 additions & 10 deletions examples/misc/lib/articles/io/io_http_server_test.dart

This file was deleted.

16 changes: 0 additions & 16 deletions examples/misc/lib/articles/io/io_process_stdio_test.dart

This file was deleted.

9 changes: 0 additions & 9 deletions examples/misc/lib/articles/io/io_process_test.dart

This file was deleted.

17 changes: 0 additions & 17 deletions examples/misc/lib/articles/io/io_process_transform_test.dart

This file was deleted.

21 changes: 0 additions & 21 deletions examples/misc/lib/articles/io/io_random_access_test.dart

This file was deleted.

19 changes: 0 additions & 19 deletions examples/misc/lib/articles/io/io_stream_test.dart

This file was deleted.

7 changes: 0 additions & 7 deletions examples/misc/lib/articles/io/io_timer_test.dart

This file was deleted.

1 change: 1 addition & 0 deletions examples/misc/lib/effective_dart/usage_bad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// ignore_for_file: avoid_function_literals_in_foreach_calls, prefer_function_declarations_over_variables
// ignore_for_file: prefer_adjacent_string_concatenation, prefer_is_not_empty, prefer_interpolation_to_compose_strings
// ignore_for_file: unnecessary_this, always_declare_return_types, no_leading_underscores_for_local_identifiers
// ignore_for_file: deprecated_colon_for_default_value
import 'dart:async';
import 'dart:io';
import 'dart:math';
Expand Down
2 changes: 1 addition & 1 deletion examples/misc/lib/effective_dart/usage_good.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ignore_for_file: type_annotate_public_apis, unused_element, unused_local_variable
// ignore_for_file: prefer_function_declarations_over_variables, strict_raw_type,
// ignore_for_file: prefer_initializing_formals, prefer_typing_uninitialized_variables
// ignore_for_file: use_super_parameters
// ignore_for_file: use_super_parameters, dead_code
import 'dart:async';
import 'dart:io';
import 'dart:math';
Expand Down
21 changes: 6 additions & 15 deletions examples/misc/lib/language_tour/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,6 @@ void miscDeclAnalyzedButNotTested() {
// #enddocregion named-parameter-default-values
}

{
// #docregion list-map-default-function-param
void doStuff(
{List<int> list = const [1, 2, 3],
Map<String, String> gifts = const {
'first': 'paper',
'second': 'cotton',
'third': 'leather'
}}) {
print('list: $list');
print('gifts: $gifts');
}
// #enddocregion list-map-default-function-param
}

{
// #docregion function-as-param
void printElement(int element) {
Expand All @@ -95,3 +80,9 @@ class Scrollbar extends Widget {
const Scrollbar({super.key, required Widget child});
// #enddocregion required-named-parameters
}

class ScrollbarTwo extends Widget {
// #docregion required-named-parameters-nullable
const ScrollbarTwo({super.key, required Widget? child});
// #enddocregion required-named-parameters-nullable
}
6 changes: 4 additions & 2 deletions examples/misc/lib/language_tour/metadata/misc.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'todo.dart';

@Todo('seth', 'make this do something')
// #docregion
@Todo('Dash', 'Implement this function')
void doSomething() {
print('do something');
print('Do something');
}
// #enddocregion
2 changes: 0 additions & 2 deletions examples/misc/lib/language_tour/metadata/todo.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library todo;

class Todo {
final String who;
final String what;
Expand Down
2 changes: 1 addition & 1 deletion examples/misc/test/library_tour/io_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void main() {
}

// #enddocregion try-catch
expect(main, prints(startsWith('FileSystemException')));
expect(main, prints(contains('Cannot open file')));
});

test('read-from-stream', () {
Expand Down
2 changes: 2 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
{ "source": "/articles/language/optional-types", "destination": "/faq#types", "type": 301 },
{ "source": "/articles/libraries", "destination": "/articles", "type": 301 },
{ "source": "/articles/libraries/converters-and-codecs", "destination": "/articles/archive/converters-and-codecs", "type": 301 },
{ "source": "/articles/libraries/dart-io", "destination": "/guides/libraries/library-tour#dartio", "type": 301 },
{ "source": "/articles/libraries/zones", "destination": "/articles/archive/zones", "type": 301 },
{ "source": "/articles/m*{,/**}", "destination": "/articles", "type": 301 },
{ "source": "/articles/m1-language-changes{,/**}", "destination": "/guides/language/spec", "type": 301 },
Expand Down Expand Up @@ -138,6 +139,7 @@

{ "source": "/go/analysis-server-protocol", "destination": "https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/doc/api.html", "type": 301 },
{ "source": "/go/cloud", "destination": "/server/google-cloud?utm_source=go-link&utm_medium=referral&utm_campaign=go-cloud", "type": 301 },
{ "source": "/go/content-hashes", "destination": "https://github.com/dart-lang/site-www/issues/4361", "type": 301 },
{ "source": "/go/core-lints", "destination": "https://github.com/dart-lang/lints", "type": 301 },
{ "source": "/go/dart-fix", "destination": "/tools/dart-fix", "type": 301 },
{ "source": "/go/dartdoc-options-file", "destination": "https://github.com/dart-lang/dartdoc#dartdoc_optionsyaml", "type": 301 },
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: site_www
homepage: https://dart.dev

environment:
sdk: '>=2.18.1 <3.0.0'
sdk: '>=2.18.4 <3.0.0'

dev_dependencies:
build_runner: ^2.1.0
build_runner: ^2.3.2
code_excerpt_updater:
path: site-shared/packages/code_excerpt_updater
code_excerpter:
path: site-shared/packages/code_excerpter
linkcheck: ^2.0.19
lints: ^2.0.0
lints: ^2.0.1
Loading