Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 171
Test code quality rubric with static datasets (Meta-Evals)#194
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
3c92a1e5e71e4f139b5a13104642cc0793aaafba2ea3616a88cb2f8fbc82b1f95b7efcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "repo_criteria": [ | ||
| "evals/code_quality_rubric.json" | ||
| ], | ||
| "evals": [ | ||
| { | ||
| "id": 1, | ||
| "prompt": "Grade the code in 'evals/test_data/bad_code/tmp/bad_script.dart' using the code_quality_rubric.json.", | ||
| "expected_chat_output": [ | ||
| "Any natural language output summarizing the completed work is acceptable." | ||
| ], | ||
| "expected_repo_state": [ | ||
| "The evaluation artifact explicitly flags a failure for directory placement hygiene.", | ||
| "The evaluation artifact explicitly flags a failure for effective Dart idioms.", | ||
| "The evaluation artifact explicitly flags a failure for cross platform compatibility." | ||
| ], | ||
| "agent_config": "reidbaker-agent" | ||
| }, | ||
| { | ||
| "id": 2, | ||
| "prompt": "Grade the code in 'evals/test_data/ok_code/bin/good_script.dart' using the code_quality_rubric.json.", | ||
| "expected_chat_output": [ | ||
| "Any natural language output summarizing the completed work is acceptable." | ||
| ], | ||
| "expected_repo_state": [ | ||
| "The evaluation artifact explicitly flags that all code quality criteria passed successfully without any failures." | ||
| ], | ||
| "agent_config": "reidbaker-agent" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Copyright (c) 2026, 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. | ||
| // ignore_for_file: unused_local_variable, prefer_final_locals, avoid_print, use_raw_strings | ||
| // Violates placement hygiene (in tmp/ instead of bin/ or lib/) | ||
| // Violates cross-platform compatibility (hardcoded Windows path) | ||
| // Violates effective Dart idioms (raw strings instead of interpolation) | ||
| void main() { | ||
| var user = 'Test'; | ||
| // Anti-pattern: Raw string concatenation instead of interpolation | ||
| print(r'Hello ' + user); | ||
| // Anti-pattern: Hardcoded platform specific path | ||
| var path = 'C:\\my\\path\\data.txt'; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Copyright (c) 2026, 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. | ||
| import 'package:path/path.dart' as p; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file needs a copyright statement. | ||
| void main() { | ||
| const user = 'Test'; | ||
| // Interpolation (clean Dart idiom) | ||
| const message = 'Hello $user'; | ||
| // Cross platform path | ||
| final String path = p.join('my', 'path', 'data.txt'); | ||
| if (message.isEmpty || path.isEmpty) { | ||
| throw Exception('Validation failed'); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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 file needs a copyright statement.