EditorConfig file added and documented
Description
Added documentation about the .editorconfig file. Another pull request will be made for the nanoff repository.
As PoC this is being applied to SNTP class library. Upon succesfull testing we'll move to the other repos as well. Adding the PR here for reference nanoframework/nanoFramework.Networking.Sntp#134
Motivation and Context
Apparently the nanoFramework uses an appalling coding style as it is different from mine :-) The documentation describes that there is a vssettings file that contains the coding style. As a potential contributor I'm not prepared to modify the Visual Studio settings and to turn off automatic formatting. Fortunately there is a much better way to share these settings, at least for C# - Visual Studio supports adding the settings to an EditorConfig file.
It is possible to generate an EditorConfig file from the Visual Studio settings. As I don't have the correct settings, I've just added some of the formatting and naming rules. If I start contributing to the nanoFramework code, an EditorConfig file will also be added if it is not already present.
Perhaps one of the team members could generate a more complete version and add it to the repositories and documentation?
Types of changes
- [x] Improvement (correction, content improvement, typo fix, formatting)
- [ ] New Article (new document for docs website)
- [ ] Config and build (change in the configuration and build system, has no impact on code or features)
Checklist:
- [x] My doc follows the code style of this project.
- [x] I have read the CONTRIBUTING document.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
see https://github.com/nanoframework/nanoFirmwareFlasher/pull/283#issuecomment-2241593497
I've updated the documentation page. I've also added a .editorconfig with only spell checker configuration, so the spell checker can be used for the markdown pages.
That is not a repository that's on my list to look closely at. But be assured, there are many ways to get it to work. Two hints:
-
having a modified .editorconfig in a subdirectory, in case the main one would make a mess out of the projects. That .editorconfig can be a complete version or one with only overrides
-
it is possible to suppress errors/warnings/messages from an .editorconfig, in addition to globalsuppressions.cs and #pragma disable