https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0898bd371d82bbfb328cbcd39a64a37e4c57cd41
commit 0898bd371d82bbfb328cbcd39a64a37e4c57cd41 Author: Katayama Hirofumi MZ <katayama.hirofumi...@gmail.com> AuthorDate: Sat Mar 8 22:35:40 2025 +0900 Commit: GitHub <nore...@github.com> CommitDate: Sat Mar 8 22:35:40 2025 +0900 [CURSOR] Add Cursor AI project settings (#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. --- .cursor/coding-style.json | 19 +++++++++++++++++ .cursor/editor.json | 52 +++++++++++++++++++++++++++++++++++++++++++++++ .cursor/settings.json | 46 +++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ 4 files changed, 119 insertions(+) diff --git a/.cursor/coding-style.json b/.cursor/coding-style.json new file mode 100644 index 00000000000..12f095f32e9 --- /dev/null +++ b/.cursor/coding-style.json @@ -0,0 +1,19 @@ +{ + "indentation": { + "type": "spaces", + "size": 4 + }, + "lineLength": 100, + "braceStyle": "allman", + "namingConventions": { + "functions": { + "public": "PascalCase", + "private": "_PascalCase" + }, + "variables": { + "local": "camelCase", + "global": "PascalCase", + "constants": "UPPER_CASE" + } + } +} diff --git a/.cursor/editor.json b/.cursor/editor.json new file mode 100644 index 00000000000..76cfa5d0ccb --- /dev/null +++ b/.cursor/editor.json @@ -0,0 +1,52 @@ +{ + "editor": { + "defaultFormatter": null + }, + "[c,cpp]": { + "editor": { + "tabSize": 4, + "insertSpaces": true, + "detectIndentation": false, + "trimAutoWhitespace": true, + "formatOnSave": false, + "formatOnType": true, + "defaultFormatter": "clang-format", + "rulers": [100], + "wordWrap": "off" + } + }, + "files": { + "associations": { + "*.c": "c", + "*.h": "c", + "*.cpp": "cpp", + "*.hpp": "cpp" + }, + "encoding": "utf8", + "trimTrailingWhitespace": true, + "insertFinalNewline": true, + "exclude": { + "**/.git": true, + "compile_commands.json": true, + "output-*": true, + "modules/optional": true, + "modules/3rdparty": true, + "modules/bootcd_extras": true, + "modules/livecd_extras": true, + "modules/hybridcd_extras": true, + "modules/[Aa][Hh][Kk]_[Tt]ests": true, + ".cache": true, + ".cproject": true, + ".DS_Store": true, + ".project": true, + ".settings": true, + ".vscode": true, + "sdk/tools/winesync/winesync.cfg": true, + "**/build": true, + "**/obj": true, + "**/bin": true, + "**/*.o": true, + "**/*.obj": true + } + } +} diff --git a/.cursor/settings.json b/.cursor/settings.json new file mode 100644 index 00000000000..c8ffae7a0c1 --- /dev/null +++ b/.cursor/settings.json @@ -0,0 +1,46 @@ +{ + "projectType": "reactos", + "language": { + "c": { + "standard": "c99", + "warnings": ["all", "error", "pedantic", "unused"], + "formatter": "clang-format", + "linter": "clang-tidy" + }, + "cpp": { + "standard": "c++11", + "warnings": ["all", "error", "pedantic", "unused"], + "formatter": "clang-format", + "linter": "clang-tidy" + } + }, + "codingStyle": "reactos", + "formatOnSave": false, + "lintOnSave": false, + "paths": { + "source": [ + "base", + "boot", + "dll", + "drivers", + "hal", + "ntoskrnl", + "subsystems", + "win32ss" + ], + "include": [ + "sdk/include" + ], + "docs": [ + "**/*.md", + "media/doc/*.md", + "media/doc/*.txt" + ], + "tests": [ + "modules/rostests" + ], + "build": [ + "output-*" + ] + } +} diff --git a/.gitignore b/.gitignore index f14e4ccbe72..dbed57aa81d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ modules/[Aa][Hh][Kk]_[Tt]ests .settings .vscode sdk/tools/winesync/winesync.cfg +.cursor/cache/ +.cursor/logs/