To understand infrastructure requirements applications are encouraged to consult the book Infrastructure software projects. Agreement, idioms, and patterns for reusable libraries .NET ( CD-ROM).
JavaScript
JavaScript Open Source projects platform Flexberry has adopted a set of agreements which was published on the GitHub page. There is also a separate agreement in writing comments in your code EmberJS projects.
CSharp
It is recommended to read the book Infrastructure software projects: conventions, idioms and patterns for reusable libraries .NET, which describes best practices, including coding and architectural highlights. In .NET Open Source projects platform Flexberry set of agreements is realized through the mechanism of “rule Sets” which is present in Microsoft Visual Studio by following the above tips IDE allows you to develop applications with clear and understandable program code.
Static code analyzers
StyleCop
StyleCop is a static analyzer C# code for compliance with the style.
Setting:
- Install NuGet package StyleCop.Analyzers
- In the project properties, in the tab
Code Analysis
to select rules in the drop-down listRun this rule set
.
With list of rules, which are used in the projects of the platform Flexberry can be found on GitHub-e.
ESLint
ESLint is a static code analyzer for programs written in JavaScript that checks their compliance to coding standards.
Setting:
- Install npm package ember-cli-eslint
- At the root of the project create and configure file
.eslintrc.js
, an example implementation is contained in the draft ember-flexberry. - In project root create a file
.eslintignore
- need to add the files and the directory should not be checked ESLint-Ohm. An example implementation is contained in the draft ember-flexberry.
More information can be found on the official website ESLint
JSHint
JSHint is a static code analysis tool used in software development to check compliance with source code JavaScript coding guidelines.
Setting:
- Install npm package jshint in ember applications this package installs as dependencies when installing ember-cli-qunit.
- At the root of the project create and configure file
.jshintrc
, an example implementation is contained in the project ember-flexberry.