agent-workspace / flutter /dev /bots /test /analyze-test-input /root /packages /foo /deprecation.dart
agent-workspace / flutter /dev /bots /test /analyze-test-input /root /packages /foo /deprecation.dart
Download flutter/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 3.37 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart
-
curl -L -o deprecation.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart
3.37 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| ( | |
| 'This is the reason and what you should use instead. ' | |
| 'This feature was deprecated after v1.2.3.', | |
| ) | |
| void test1() {} | |
| // The code below is intentionally miss-formatted for testing. | |
| // dart format off | |
| ( | |
| 'bad grammar. ' // ERROR: Deprecation notice should be a grammatically correct sentence and start with a capital letter; see style guide: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md | |
| 'This feature was deprecated after v1.2.3.' | |
| ) | |
| void test2() { } | |
| ( | |
| 'Also bad grammar ' // ERROR: Deprecation notice should be a grammatically correct sentence and end with a period; notice appears to be "Also bad grammar". | |
| 'This feature was deprecated after v1.2.3.' | |
| ) | |
| void test3() { } | |
| ('Not the right syntax. This feature was deprecated after v1.2.3.') // ERROR: Deprecation notice must be an adjacent string. | |
| void test4() { } | |
| ( // ERROR: Deprecation notice must be an adjacent string. | |
| 'Missing the version line. ' | |
| ) | |
| void test5() { } | |
| ( // ERROR: Deprecation notice must be an adjacent string. | |
| 'This feature was deprecated after v1.2.3.' | |
| ) | |
| void test6() { } | |
| ( | |
| 'URLs are not required. ' | |
| 'This feature was deprecated after v1.0.0.' | |
| ) | |
| void test7() { } | |
| ( | |
| 'Version number test (should pass). ' | |
| 'This feature was deprecated after v1.19.0.' | |
| ) | |
| void test8() { } | |
| ( | |
| 'Version number test (should fail). ' | |
| 'This feature was deprecated after v1.20.0.' // ERROR: Deprecation notice does not accurately indicate a beta branch version number; please see https://flutter.dev/docs/development/tools/sdk/releases to find the latest beta build version number. | |
| ) | |
| void test9() { } | |
| ( | |
| 'Version number test (should fail). ' | |
| 'This feature was deprecated after v1.21.0.' // ERROR: Deprecation notice does not accurately indicate a beta branch version number; please see https://flutter.dev/docs/development/tools/sdk/releases to find the latest beta build version number. | |
| ) | |
| void test10() { } | |
| ( | |
| 'Version number test (special beta should pass). ' | |
| 'This feature was deprecated after v3.1.0.' | |
| ) | |
| void test11() { } | |
| ( | |
| 'Version number test (should be fine). ' | |
| 'This feature was deprecated after v0.1.0.' | |
| ) | |
| void test12() { } | |
| ( | |
| 'Version number test (should be fine). ' | |
| 'This feature was deprecated after v1.20.0-1.0.pre.' | |
| ) | |
| void test13() { } | |
| ( | |
| "Double quotes' test (should fail). " // ERROR: Deprecation notice does not match required pattern. You might have used double quotes (") for the string instead of single quotes ('). | |
| 'This feature was deprecated after v2.1.0-11.0.pre.' | |
| ) | |
| void test14() { } | |
| ( // flutter_ignore: deprecation_syntax, https://github.com/flutter/flutter/issues/000000 | |
| 'Missing the version line. ' | |
| ) | |
| void test15() { } | |
| // dart format on | |
| // flutter_ignore: deprecation_syntax, https://github.com/flutter/flutter/issues/000000 | |
| ('Missing the version line. ') | |
| void test16() {} | |
| class TestClass1 { | |
| // flutter_ignore: deprecation_syntax, https://github.com/flutter/flutter/issues/000000 | |
| ('Missing the version line. ') | |
| void test() {} | |
| } | |