Skip to content

Commit 0898bd3

Browse files
authored
[CURSOR] Add Cursor AI project settings (reactos#7752)
AI-friendly development for the future. JIRA issue: CORE-20011 - Reduce time and cost on using Cursor AI. - Improve interoperability with Cursor AI. - Add .cursor folder and some files. - Modify .gitignore.
1 parent f844296 commit 0898bd3

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed

.cursor/coding-style.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"indentation": {
3+
"type": "spaces",
4+
"size": 4
5+
},
6+
"lineLength": 100,
7+
"braceStyle": "allman",
8+
"namingConventions": {
9+
"functions": {
10+
"public": "PascalCase",
11+
"private": "_PascalCase"
12+
},
13+
"variables": {
14+
"local": "camelCase",
15+
"global": "PascalCase",
16+
"constants": "UPPER_CASE"
17+
}
18+
}
19+
}

.cursor/editor.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"editor": {
3+
"defaultFormatter": null
4+
},
5+
"[c,cpp]": {
6+
"editor": {
7+
"tabSize": 4,
8+
"insertSpaces": true,
9+
"detectIndentation": false,
10+
"trimAutoWhitespace": true,
11+
"formatOnSave": false,
12+
"formatOnType": true,
13+
"defaultFormatter": "clang-format",
14+
"rulers": [100],
15+
"wordWrap": "off"
16+
}
17+
},
18+
"files": {
19+
"associations": {
20+
"*.c": "c",
21+
"*.h": "c",
22+
"*.cpp": "cpp",
23+
"*.hpp": "cpp"
24+
},
25+
"encoding": "utf8",
26+
"trimTrailingWhitespace": true,
27+
"insertFinalNewline": true,
28+
"exclude": {
29+
"**/.git": true,
30+
"compile_commands.json": true,
31+
"output-*": true,
32+
"modules/optional": true,
33+
"modules/3rdparty": true,
34+
"modules/bootcd_extras": true,
35+
"modules/livecd_extras": true,
36+
"modules/hybridcd_extras": true,
37+
"modules/[Aa][Hh][Kk]_[Tt]ests": true,
38+
".cache": true,
39+
".cproject": true,
40+
".DS_Store": true,
41+
".project": true,
42+
".settings": true,
43+
".vscode": true,
44+
"sdk/tools/winesync/winesync.cfg": true,
45+
"**/build": true,
46+
"**/obj": true,
47+
"**/bin": true,
48+
"**/*.o": true,
49+
"**/*.obj": true
50+
}
51+
}
52+
}

.cursor/settings.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"projectType": "reactos",
3+
"language": {
4+
"c": {
5+
"standard": "c99",
6+
"warnings": ["all", "error", "pedantic", "unused"],
7+
"formatter": "clang-format",
8+
"linter": "clang-tidy"
9+
},
10+
"cpp": {
11+
"standard": "c++11",
12+
"warnings": ["all", "error", "pedantic", "unused"],
13+
"formatter": "clang-format",
14+
"linter": "clang-tidy"
15+
}
16+
},
17+
"codingStyle": "reactos",
18+
"formatOnSave": false,
19+
"lintOnSave": false,
20+
"paths": {
21+
"source": [
22+
"base",
23+
"boot",
24+
"dll",
25+
"drivers",
26+
"hal",
27+
"ntoskrnl",
28+
"subsystems",
29+
"win32ss"
30+
],
31+
"include": [
32+
"sdk/include"
33+
],
34+
"docs": [
35+
"**/*.md",
36+
"media/doc/*.md",
37+
"media/doc/*.txt"
38+
],
39+
"tests": [
40+
"modules/rostests"
41+
],
42+
"build": [
43+
"output-*"
44+
]
45+
}
46+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ modules/[Aa][Hh][Kk]_[Tt]ests
1313
.settings
1414
.vscode
1515
sdk/tools/winesync/winesync.cfg
16+
.cursor/cache/
17+
.cursor/logs/

0 commit comments

Comments
 (0)