Skip to content

Commit ae42e25

Browse files
feat: Add LintingHelper utility class
Implements FSSDK-12243 - Add LintingHelper class to helpers module - Add run_linter() method to execute linters - Add check_format() method to validate formatting - Add comprehensive test coverage (12 tests, all passing) - Handle edge cases (empty paths, missing files, syntax errors) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f253379 commit ae42e25

File tree

5 files changed

+1159
-0
lines changed

5 files changed

+1159
-0
lines changed

.claude/settings.local.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(cargo new --lib optimizely-core)",
5+
"Bash(cargo new --lib optimizely-bucketing)",
6+
"Bash(cargo new --lib optimizely-config)",
7+
"Bash(cargo new --lib optimizely-audience)",
8+
"Bash(cargo new --lib optimizely-decision)",
9+
"Bash(cargo new --lib optimizely-events)",
10+
"Bash(cargo new --lib optimizely-user-profile)",
11+
"Bash(cargo new --lib optimizely)",
12+
"Bash(cargo build)",
13+
"Bash(cargo test -p optimizely-bucketing)",
14+
"Bash(python3 tests/python_validator.py)",
15+
"Bash(find crates -name \"*.rs\" -exec wc -l {} +)",
16+
"Bash(tree -I 'target|__pycache__' -L 3)",
17+
"Bash(ls /Users/muzahidul.islam/opti/python-sdk/tests/*.json)",
18+
"Bash(find /Users/muzahidul.islam/opti/python-sdk/tests -name \"*.py\" -exec grep -l \"datafile.*=\" {})",
19+
"Bash(cargo build -p optimizely-config)",
20+
"Bash(cargo test -p optimizely-config)",
21+
"Bash(python3 tests/config_validator.py)",
22+
"Bash(cargo test --workspace)",
23+
"Bash(cargo build --workspace)",
24+
"Bash(cargo test -p optimizely-audience)",
25+
"Bash(cargo test -p optimizely-core)",
26+
"Bash(cargo test -p optimizely-decision)",
27+
"Bash(cargo test -p optimizely)",
28+
"Bash(ls -la /Users/muzahidul.islam/opti/fullstack-sdk-compatibility-suite/features/activate/*.feature)",
29+
"Bash(npm test features/activate/default_usage.feature)",
30+
"Bash(cargo build --release --workspace)",
31+
"Bash(export DATAFILES_DIR=\"/Users/muzahidul.islam/opti/fullstack-sdk-compatibility-suite/features/support/datafiles\")",
32+
"Bash(export RUST_LOG=\"debug,rust_testapp=debug\")",
33+
"Bash(cargo run --release)",
34+
"Bash(lsof -ti:3000)",
35+
"Bash(xargs kill -9)",
36+
"Bash(cargo build --release -p rust-testapp)",
37+
"Bash(DATAFILES_DIR=/Users/muzahidul.islam/opti/fullstack-sdk-compatibility-suite/features/support/datafiles RUST_LOG=debug cargo run --release -p rust-testapp)",
38+
"Bash(npm test features/activate/experiment_status.feature:75)",
39+
"Bash(cat ab_experiments.json)",
40+
"Bash(DATAFILES_DIR=/Users/muzahidul.islam/opti/fullstack-sdk-compatibility-suite/features/support/datafiles RUST_LOG=info,rust_testapp=debug cargo run --release -p rust-testapp)",
41+
"Bash(npm test features/activate/experiment_status.feature)",
42+
"Bash(git add -A)",
43+
"Bash(git commit -m \"$\\(cat <<''EOF''\nFix high-priority FSC test blockers\n\nThis commit fixes two critical issues preventing FSC tests from passing:\n\n1. **Added dispatched_events field to response context**\n - Modified FscResponse::new\\(\\) and FscResponse::with_listeners\\(\\) to automatically\n add dispatched_events: [] to all response contexts\n - Fixes \"expected undefined to deeply equal []\" errors in many test scenarios\n - File: src/models.rs\n\n2. **Added comprehensive FSC test status documentation**\n - Created FSC_TEST_STATUS.md documenting all test results and issues\n - Identified high-priority blockers and created actionable fix plan\n - Documents 1/15 feature files fully passing before this commit\n\n**Test Results**:\n- experiment_status.feature: 4/4 scenarios passing \\(was 0/4\\)\n- All inactive experiment tests passing\n- All active experiment tests passing \\(including audience targeting\\)\n\n🤖 Generated with [Claude Code]\\(https://claude.com/claude-code\\)\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\nEOF\n\\)\")"
44+
],
45+
"additionalDirectories": [
46+
"/Users/muzahidul.islam/opti/python-testapp"
47+
]
48+
}
49+
}

0 commit comments

Comments
 (0)