GithubHelp home page GithubHelp logo

oliverhanappi / localizedcode.analyzers Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

Roslyn analyzers for C# which aids writing localized code.

License: MIT License

PowerShell 5.21% C# 94.79%

localizedcode.analyzers's Introduction

LocalizedCode.Analyzers

Nuget

Embracing principles of domain-driven design leads to the definition of a ubiquitous language, which should be used by all stake holders.

Although code is usually written in English, in non English environments it is desirable to write domain specific code in the language used by domain experts, thus in the ubiquitous language.

This project provides Roslyn analyzers for C# which aid writing code in non English languages. Please note that this project is not targeted at writing localized software whose code is written in English.

Installation

You need to add the NuGet package LocalizedCode.Analyzers to the project containing the localized code. Please note that only the new SDK based projects are supported.

Diagnostics

Declaration with non-ASCII identifier (LC1000)

Although it it desirable to write code in the ubiquitous language, using characters other than ASCII characters in identifiers may lead to compatibility issues in some parts of the system, i.e. URLs or databases.

Therefore the analyzer produces warnings if code items like namespaces, classes, members etc. contain non-ASCII characters within their identifiers.

A quick fix is provided to replace the non-ASCII characters with ASCII approximations.

Please note that this diagnostics is only useful for Latin languages.

localizedcode.analyzers's People

Contributors

oliverhanappi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.