Skip to content

Commit 11ba763

Browse files
authored
Merge pull request #43 from gnerkus/csharp-support
feat: add C# support via tree-sitter
2 parents 3df5310 + dfe60ab commit 11ba763

43 files changed

Lines changed: 3384 additions & 5252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Readme.md‎

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@
1414

1515
<p align="center">Find and lint complex code patterns effortlessly</p>
1616

17-
___
17+
---
1818

1919
# What is CodeQue?
2020

21-
CodeQue is semantic code search engine that understands the code syntax.
21+
CodeQue is semantic code search engine that understands the code syntax.
2222

2323
It matches code structurally which makes it excellent for more complex queries.
2424

25-
Query language offers wildcards, partial matching and ignores code formatting.
25+
Query language offers wildcards, partial matching and ignores code formatting.
2626

27-
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua and more soon.
27+
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua, C# and more soon.
2828

29-
Text code search with handy wildcards is available for __every language__ and covers common regex search use cases.
29+
Text code search with handy wildcards is available for **every language** and covers common regex search use cases.
3030

3131
<p align="center"><a href="https://codeque.co/playground?utm_source=readme_main"><b>Give it a try in
3232
playground</b></a></p>
3333

3434
<p align="center"><i>Just paste code snippet to start searching, no installation needed!</i></p>
3535

36-
__Integrations__
36+
**Integrations**
3737

3838
CodeQue is available as:
3939

@@ -43,33 +43,33 @@ CodeQue is available as:
4343

4444
<p align="center"><i>All CodeQue tools <b>work offline</b> hence code never leaves your local environment.</i></p>
4545

46-
__Coming soon__
46+
**Coming soon**
4747

4848
CodeQue will be soon available as:
4949

5050
- Duplicated code identification
51-
- Batch code refactoring
52-
- Advanced ESLint rule creator
53-
51+
- Batch code refactoring
52+
- Advanced ESLint rule creator
5453

5554
<p align="center"><a href="https://jayu.dev/newsletter?utm_source=readme_main"><b>🔔 Get notified about updates 🔔 </b></a></p>
5655

57-
5856
</br>
5957

6058
<!-- HERO END -->
61-
59+
6260
<!-- VSCODE INTRO START -->
61+
6362
## Visual Studio Code Extension 🔮
63+
6464
VScode extension aims to make your workflow more efficient.
6565

66-
It addresses the problems of standard search by providing multiline support and offers an easy way to add gaps or use wildcards in the query.
66+
It addresses the problems of standard search by providing multiline support and offers an easy way to add gaps or use wildcards in the query.
6767

68-
You don't need to have any Regex knowledge to query complex code patterns.
68+
You don't need to have any Regex knowledge to query complex code patterns.
6969

7070
With CodeQue, you can easily navigate and modify your codebase, making your development process faster and more efficient.
7171

72-
It will help you with code refactoring, speed up project discovery, and make it easy to find duplicated or similar code patterns.
72+
It will help you with code refactoring, speed up project discovery, and make it easy to find duplicated or similar code patterns.
7373

7474
Advanced code search options and todo-like list of accurate search results will streamline your workflow.
7575

@@ -102,40 +102,45 @@ CodeQue ESLint integration is a no-brainier for any team willing to improve thei
102102

103103
<!-- ESLINT INTRO END -->
104104

105-
__Installation 👇__
105+
**Installation 👇**
106106

107107
```sh
108108
yarn add --dev @codeque/eslint-plugin
109109
```
110110

111-
112-
__Usage ✨__
111+
**Usage ✨**
113112

114113
Enhance your `.eslintrc` with following setup:
115114

116115
```json
117116
{
118117
"plugins": ["@codeque"],
119118
"rules": {
120-
"@codeque/error": ["error", [
121-
{
122-
"query": "fetchData()",
123-
"mode": "exact",
124-
"message": "Using fetchData() without parameters causes app crash!",
125-
},
126-
]],
127-
"@codeque/warning": ["warn", [
128-
{
129-
"query": "import $$$ from 'lodash';",
130-
"mode": "include",
131-
"message": "Prefer to import lodash functions from separate packages like 'lodash.debounce'",
132-
},
133-
]]
119+
"@codeque/error": [
120+
"error",
121+
[
122+
{
123+
"query": "fetchData()",
124+
"mode": "exact",
125+
"message": "Using fetchData() without parameters causes app crash!"
126+
}
127+
]
128+
],
129+
"@codeque/warning": [
130+
"warn",
131+
[
132+
{
133+
"query": "import $$$ from 'lodash';",
134+
"mode": "include",
135+
"message": "Prefer to import lodash functions from separate packages like 'lodash.debounce'"
136+
}
137+
]
138+
]
134139
}
135140
}
136141
```
137-
Find more information in [`@codeque/eslint-plugin` package readme](https://www.npmjs.com/package/@codeque/eslint-plugin)
138142

143+
Find more information in [`@codeque/eslint-plugin` package readme](https://www.npmjs.com/package/@codeque/eslint-plugin)
139144

140145
</br>
141146

@@ -149,19 +154,20 @@ Find more information in [`@codeque/eslint-plugin` package readme](https://www.n
149154
## CLI tool 🔥
150155

151156
CodeQue CLI is a complementary tool that can be used for
157+
152158
- Searching code patterns right from terminal including headless environments
153159
- Building scripts to assert that some code patterns exist or not exist
154160
- Enhancing git hooks to avoid committing or pushing unwanted code
155161

156162
<!-- CLI INTRO END -->
157163

158-
__Installation 👇__
164+
**Installation 👇**
159165

160166
```sh
161167
yarn global add @codeque/cli
162168
```
163169

164-
__Usage ✨__
170+
**Usage ✨**
165171

166172
```sh
167173
codeque
@@ -181,6 +187,7 @@ Find more information in [`@codeque/cli` package readme](https://www.npmjs.com/p
181187

182188
Feel free to use [Github Issues](https://github.com/codeque-co/codeque/issues)
183189
to
190+
184191
- ask for help with writing a query
185192
- report a bug or doubt
186-
- suggest feature or improvement
193+
- suggest feature or improvement

‎packages/cli/README.md‎

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<!-- HERO START -->
42

53
<p align="center">
@@ -18,26 +16,26 @@
1816

1917
<p align="center">Find and lint complex code patterns effortlessly</p>
2018

21-
___
19+
---
2220

2321
# What is CodeQue?
2422

25-
CodeQue is semantic code search engine that understands the code syntax.
23+
CodeQue is semantic code search engine that understands the code syntax.
2624

2725
It matches code structurally which makes it excellent for more complex queries.
2826

29-
Query language offers wildcards, partial matching and ignores code formatting.
27+
Query language offers wildcards, partial matching and ignores code formatting.
3028

31-
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua and more soon.
29+
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua, C# and more soon.
3230

33-
Text code search with handy wildcards is available for __every language__ and covers common regex search use cases.
31+
Text code search with handy wildcards is available for **every language** and covers common regex search use cases.
3432

3533
<p align="center"><a href="https://codeque.co/playground?utm_source=readme_cli"><b>Give it a try in
3634
playground</b></a></p>
3735

3836
<p align="center"><i>Just paste code snippet to start searching, no installation needed!</i></p>
3937

40-
__Integrations__
38+
**Integrations**
4139

4240
CodeQue is available as:
4341

@@ -47,26 +45,26 @@ CodeQue is available as:
4745

4846
<p align="center"><i>All CodeQue tools <b>work offline</b> hence code never leaves your local environment.</i></p>
4947

50-
__Coming soon__
48+
**Coming soon**
5149

5250
CodeQue will be soon available as:
5351

5452
- Duplicated code identification
55-
- Batch code refactoring
56-
- Advanced ESLint rule creator
57-
53+
- Batch code refactoring
54+
- Advanced ESLint rule creator
5855

5956
<p align="center"><a href="https://jayu.dev/newsletter?utm_source=readme_cli"><b>🔔 Get notified about updates 🔔 </b></a></p>
6057

61-
6258
</br>
6359

6460
<!-- HERO END -->
65-
61+
6662
<!-- CLI INTRO START -->
63+
6764
## CLI tool 🔥
6865

6966
CodeQue CLI is a complementary tool that can be used for
67+
7068
- Searching code patterns right from terminal including headless environments
7169
- Building scripts to assert that some code patterns exist or not exist
7270
- Enhancing git hooks to avoid committing or pushing unwanted code
@@ -123,7 +121,7 @@ I love using CodeQue to look for specific function or React hook usage. It's fas
123121
This a typical query that you can use to find usage of some React hook.
124122

125123
```ts
126-
const $$$ = useMyHook();
124+
const $$$ = useMyHook()
127125
```
128126

129127
### Assertions ☔
@@ -198,6 +196,7 @@ codeque [options]
198196

199197
Feel free to use [Github Issues](https://github.com/codeque-co/codeque/issues)
200198
to
199+
201200
- ask for help with writing a query
202201
- report a bug or doubt
203-
- suggest feature or improvement
202+
- suggest feature or improvement

‎packages/core/README.md‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<!-- HERO START -->
42

53
<p align="center">
@@ -18,26 +16,26 @@
1816

1917
<p align="center">Find and lint complex code patterns effortlessly</p>
2018

21-
___
19+
---
2220

2321
# What is CodeQue?
2422

25-
CodeQue is semantic code search engine that understands the code syntax.
23+
CodeQue is semantic code search engine that understands the code syntax.
2624

2725
It matches code structurally which makes it excellent for more complex queries.
2826

29-
Query language offers wildcards, partial matching and ignores code formatting.
27+
Query language offers wildcards, partial matching and ignores code formatting.
3028

31-
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua and more soon.
29+
Structural code search is available for JavaScript, TypesScript, HTML, CSS, Python, Lua, C# and more soon.
3230

33-
Text code search with handy wildcards is available for __every language__ and covers common regex search use cases.
31+
Text code search with handy wildcards is available for **every language** and covers common regex search use cases.
3432

3533
<p align="center"><a href="https://codeque.co/playground?utm_source=readme_core"><b>Give it a try in
3634
playground</b></a></p>
3735

3836
<p align="center"><i>Just paste code snippet to start searching, no installation needed!</i></p>
3937

40-
__Integrations__
38+
**Integrations**
4139

4240
CodeQue is available as:
4341

@@ -47,18 +45,16 @@ CodeQue is available as:
4745

4846
<p align="center"><i>All CodeQue tools <b>work offline</b> hence code never leaves your local environment.</i></p>
4947

50-
__Coming soon__
48+
**Coming soon**
5149

5250
CodeQue will be soon available as:
5351

5452
- Duplicated code identification
55-
- Batch code refactoring
56-
- Advanced ESLint rule creator
57-
53+
- Batch code refactoring
54+
- Advanced ESLint rule creator
5855

5956
<p align="center"><a href="https://jayu.dev/newsletter?utm_source=readme_core"><b>🔔 Get notified about updates 🔔 </b></a></p>
6057

61-
6258
</br>
6359

6460
<!-- HERO END -->
@@ -77,6 +73,7 @@ To use CodeQue check available platforms listed above.
7773

7874
Feel free to use [Github Issues](https://github.com/codeque-co/codeque/issues)
7975
to
76+
8077
- ask for help with writing a query
8178
- report a bug or doubt
82-
- suggest feature or improvement
79+
- suggest feature or improvement

0 commit comments

Comments
 (0)