Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ packages:
dependency: transitive
description:
path: "tool/dart_skills_lint"
ref: "2420128e11101002e2eac98eb90512103a388714"
resolved-ref: "2420128e11101002e2eac98eb90512103a388714"
ref: e4497873950727ee781fa411c1a2f624b1ec50c6
resolved-ref: e4497873950727ee781fa411c1a2f624b1ec50c6
url: "https://github.com/flutter/skills"
source: git
version: "0.2.0"
version: "0.3.0"
dart_style:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion tool/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dev_dependencies:
git:
url: https://github.com/flutter/skills
path: tool/dart_skills_lint
ref: 2420128e11101002e2eac98eb90512103a388714
ref: e4497873950727ee781fa411c1a2f624b1ec50c6
logging: ^1.1.1
test: ^1.25.8
14 changes: 5 additions & 9 deletions tool/test/validate_skills_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:dart_skills_lint/dart_skills_lint.dart';
import 'package:logging/logging.dart';
import 'package:test/test.dart';

const String _configFilePath = 'dart_skills_lint.yaml';

void main() {
test('Validate DevTools Skills', () async {
final Level oldLevel = Logger.root.level;
Expand All @@ -17,16 +19,10 @@ void main() {
});

try {
// TODO(https://github.com/flutter/skills/issues/85): Update test
// to use dart_skills_lint.yaml for config when available.
final bool isValid = await validateSkills(
skillDirPaths: ['../.agents/skills'],
resolvedRules: {
'check-relative-paths': AnalysisSeverity.error,
'check-absolute-paths': AnalysisSeverity.error,
'check-trailing-whitespace': AnalysisSeverity.error,
},
final Configuration config = await ConfigParser.loadConfig(
path: _configFilePath,
);
final bool isValid = await validateSkills(config: config);
expect(
isValid,
isTrue,
Expand Down
Loading