@aiready/pattern-detect 0.11.31 → 0.11.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +8 -1
- package/README.md +1 -1
- package/dist/chunk-FWUKMJEQ.mjs +1133 -0
- package/dist/chunk-SLDK5PQK.mjs +1129 -0
- package/dist/chunk-YSDOUNJJ.mjs +1142 -0
- package/dist/cli.js +269 -75
- package/dist/cli.mjs +160 -36
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +121 -42
- package/dist/index.mjs +1 -1
- package/dist/python-extractor-ELAKYK2W.mjs +140 -0
- package/package.json +2 -2
package/CONTRIBUTING.md
CHANGED
|
@@ -5,6 +5,7 @@ Thank you for your interest in contributing to AIReady Pattern Detection! We wel
|
|
|
5
5
|
## 🐛 Reporting Issues
|
|
6
6
|
|
|
7
7
|
Found a bug or have a feature request? [Open an issue](https://github.com/caopengau/aiready-pattern-detect/issues) with:
|
|
8
|
+
|
|
8
9
|
- Clear description of the problem or feature
|
|
9
10
|
- Sample code that demonstrates the issue
|
|
10
11
|
- Expected vs actual behavior
|
|
@@ -33,6 +34,7 @@ pnpm test
|
|
|
33
34
|
## 📝 Making Changes
|
|
34
35
|
|
|
35
36
|
1. **Fork the repository** and create a new branch:
|
|
37
|
+
|
|
36
38
|
```bash
|
|
37
39
|
git checkout -b fix/similarity-calculation
|
|
38
40
|
# or
|
|
@@ -46,15 +48,17 @@ pnpm test
|
|
|
46
48
|
- Keep detection logic modular
|
|
47
49
|
|
|
48
50
|
3. **Test your changes**:
|
|
51
|
+
|
|
49
52
|
```bash
|
|
50
53
|
pnpm build
|
|
51
54
|
pnpm test
|
|
52
|
-
|
|
55
|
+
|
|
53
56
|
# Test on real codebases
|
|
54
57
|
./dist/cli.js /path/to/test-repo
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
4. **Commit using conventional commits**:
|
|
61
|
+
|
|
58
62
|
```bash
|
|
59
63
|
git commit -m "fix: improve similarity threshold accuracy"
|
|
60
64
|
git commit -m "feat: add React component pattern detection"
|
|
@@ -84,6 +88,7 @@ We use [Conventional Commits](https://www.conventionalcommits.org/):
|
|
|
84
88
|
- Verify output formats (console, JSON, HTML)
|
|
85
89
|
|
|
86
90
|
Example test:
|
|
91
|
+
|
|
87
92
|
```typescript
|
|
88
93
|
test('detects API handler patterns', () => {
|
|
89
94
|
const results = detectDuplicatePatterns([...]);
|
|
@@ -95,6 +100,7 @@ test('detects API handler patterns', () => {
|
|
|
95
100
|
## 🎯 Areas for Contribution
|
|
96
101
|
|
|
97
102
|
Great places to start:
|
|
103
|
+
|
|
98
104
|
- **New pattern types**: Add detection for new code patterns
|
|
99
105
|
- **Better categorization**: Improve pattern type classification
|
|
100
106
|
- **Detection accuracy**: Reduce false positives/negatives
|
|
@@ -119,6 +125,7 @@ Great places to start:
|
|
|
119
125
|
## 💡 Feature Ideas
|
|
120
126
|
|
|
121
127
|
Looking for inspiration? Consider:
|
|
128
|
+
|
|
122
129
|
- Language-specific pattern types (Go, Rust, etc.)
|
|
123
130
|
- Integration with popular linters
|
|
124
131
|
- VS Code extension
|
package/README.md
CHANGED