Js Advice is a JavaScript code analyzer. Checking possible errors or bad practices will advise possible changes, in JavaScript code. By Light bulb (Visual Studio 2015) and intuitive menu.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
art
src
test/JsAdvice.Test
.gitattributes
.gitignore
CHANGELOG.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
JsAdvice-Beta.sln
LICENSE
README.md
appveyor.yml

README.md

Js Advice - Thinking JavaScript as Ninja

Build status

Download this extension from the VS Gallery or get the CI build.


Context Menu Context Menu

Js Advice is a JavaScript code analyzer. Checking possible errors or bad practices will advise possible changes, in JavaScript code. By Light bulb (Visual Studio 2015) and intuitive menu.

See the changelog for changes and roadmap.

Features

  • Using the Light Bulb Visual Studio 2015.
  • Code fixed to Equals Operators
  • Code fixed to Unequal Operators
  • Code fixed to include Semicolon in end the command
  • Code fixed to initialization of Array and Object

Light Bulb Visual Studio 2015:

Using the Light Bulb Visual Studio 2015:

Context Menu

Equals Operators:

In code that equality comparison is with two equal ==, then will be shown an improvement (press 'ctrl + .' or click in light bulb), to use three equal ===. Indicating how it will look the result.

Context Menu

Pressing enter or clicking on the suggestion, will apply.

Context Menu

Unequal Operators

When writing an unequal code !=, It will be suggested to use !== (press 'ctrl + .' or click in light bulb).

Context Menu

Suggestion apply:

Context Menu

Include Semicolon in end the command

When writing code that has no semicolon (;) at the end of the command will be suggested place.

Context Menu

Suggestion apply:

Context Menu

Initialization to Array and Object

When starting an object with new Array(), it is suggested that will replace [].

Context Menu

Suggestion apply:

Context Menu

And when starting an object with new Object(), it is suggested that will replace {}.

Context Menu

Suggestion apply:

Context Menu

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

Apache 2.0

Informações sobre Licença Software

Legislação Software BR