File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,11 +213,11 @@ packages:
213213 dependency: transitive
214214 description:
215215 path: "tool/dart_skills_lint"
216- ref: e4497873950727ee781fa411c1a2f624b1ec50c6
217- resolved-ref: e4497873950727ee781fa411c1a2f624b1ec50c6
216+ ref: "05e5a45fa412ddbdd1d694eee0c71f4bbaea2617"
217+ resolved-ref: "05e5a45fa412ddbdd1d694eee0c71f4bbaea2617"
218218 url: "https://github.com/flutter/skills"
219219 source: git
220- version: "0.3 .0"
220+ version: "0.4 .0"
221221 dart_style:
222222 dependency: transitive
223223 description:
@@ -555,10 +555,10 @@ packages:
555555 dependency: transitive
556556 description:
557557 name: meta
558- sha256: c82594181e3312f3d0695fc95aaaf7758d75b8d4ae2bbecf223b9fd5109a059d
558+ sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
559559 url: "https://pub.dev"
560560 source: hosted
561- version: "1.18.3 "
561+ version: "1.19.0 "
562562 mime:
563563 dependency: transitive
564564 description:
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ void main(List<String> arguments) async {
2626
2727 final List <int > deltas = [];
2828 for (int i = 0 ; i < cpuSampleTraceEvents.length - 1 ; i++ ) {
29- final Map <String , dynamic > current =
30- (cpuSampleTraceEvents[i] as Map ) .cast <String , dynamic >();
31- final Map <String , dynamic > next =
32- (cpuSampleTraceEvents[i + 1 ] as Map ) .cast <String , dynamic >();
29+ final Map <String , dynamic > current = (cpuSampleTraceEvents[i] as Map )
30+ .cast <String , dynamic >();
31+ final Map <String , dynamic > next = (cpuSampleTraceEvents[i + 1 ] as Map )
32+ .cast <String , dynamic >();
3333 deltas.add ((next['ts' ] as int ) - (current['ts' ] as int ));
3434 }
3535 print (deltas);
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ void main(List<String> args) {
3030 }
3131
3232 final jsonFileName = jsonFilePath.split ('/' ).last;
33- final fileNameWithoutExtension = (jsonFileName.split ('.' )
34- ..removeLast ()).join ('.' );
33+ final fileNameWithoutExtension = (jsonFileName.split (
34+ '.' ,
35+ )..removeLast ()).join ('.' );
3536 final jsonFileDirectoryPath = Uri .parse (
3637 (jsonFilePath.split ('/' )..removeLast ()).join ('/' ),
3738 );
@@ -45,10 +46,9 @@ void main(List<String> args) {
4546 // String interpolation.
4647 jsonFormattedString = jsonFormattedString.replaceAll ('\$ ' , '\\\$ ' );
4748
48- final dartFile =
49- File ('$jsonFileDirectoryPath /$fileNameWithoutExtension .dart' )
50- ..createSync ()
51- ..writeAsStringSync ('''
49+ final dartFile = File ('$jsonFileDirectoryPath /$fileNameWithoutExtension .dart' )
50+ ..createSync ()
51+ ..writeAsStringSync ('''
5252// Copyright 2023 The Flutter Authors
5353// Use of this source code is governed by a BSD-style license that can be
5454// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ dev_dependencies:
2828 git :
2929 url : https://github.com/flutter/skills
3030 path : tool/dart_skills_lint
31- ref : e4497873950727ee781fa411c1a2f624b1ec50c6
31+ ref : 05e5a45fa412ddbdd1d694eee0c71f4bbaea2617
3232 logging : ^1.1.1
3333 test : ^1.25.8
Original file line number Diff line number Diff line change 44
55import 'dart:async' ;
66import 'package:dart_skills_lint/dart_skills_lint.dart' ;
7+ import 'package:devtools_tool/utils.dart' ;
78import 'package:logging/logging.dart' ;
89import 'package:test/test.dart' ;
910
10- const String _configFilePath = 'dart_skills_lint.yaml' ;
11-
1211void main () {
1312 test ('Validate DevTools Skills' , () async {
1413 final Level oldLevel = Logger .root.level;
@@ -19,10 +18,23 @@ void main() {
1918 });
2019
2120 try {
21+ final String configFilePath = pathFromRepoRoot (
22+ 'tool/dart_skills_lint.yaml' ,
23+ );
24+ final String skillsDirPath = pathFromRepoRoot ('.agents/skills' );
25+
2226 final Configuration config = await ConfigParser .loadConfig (
23- path: _configFilePath,
27+ path: configFilePath,
28+ );
29+ final bool isValid = await validateSkills (
30+ skillDirPaths: [skillsDirPath],
31+ config: config,
32+ resolvedRuleConfigs: {
33+ 'check-absolute-paths' : const RuleConfigPatch (
34+ severity: AnalysisSeverity .disabled,
35+ ),
36+ },
2437 );
25- final bool isValid = await validateSkills (config: config);
2638 expect (
2739 isValid,
2840 isTrue,
You can’t perform that action at this time.
0 commit comments