GithubHelp home page GithubHelp logo

david0718 / sonarlint-intellij Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonarsource/sonarlint-intellij

0.0 0.0 0.0 36.2 MB

SonarLint for IntelliJ

Home Page: http://intellij.sonarlint.org

License: GNU Lesser General Public License v3.0

Java 71.77% PHP 0.01% Kotlin 27.40% Shell 0.35% CMake 0.01% C++ 0.02% Python 0.01% JavaScript 0.39% Scala 0.03%

sonarlint-intellij's Introduction

SonarLint IntelliJ Plugin

Build Status Quality Gate

SonarLint is an IDE extension that helps you detect and fix quality issues as you write code. Like a spell checker, SonarLint squiggles flaws so they can be fixed before committing code.

Useful links

How to install

You can install SonarLint from the JetBrains Plugin Repository, directly available in the IDE preferences.

Node.js >= 8.x is required to perform JavaScript or TypeScript analysis.

Have Question or Feedback?

For SonarLint support questions ("How do I?", "I got this error, why?", ...), please first read the FAQ and then head to the SonarSource forum. There are chances that a question similar to yours has already been answered.

Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. :-)

Contributing

If you would like to see a new feature, please create a new thread in the forum "Suggest new features".

Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes.

With that in mind, if you would like to submit a code contribution, please create a pull request for this repository. Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make.

Make sure that you follow our code style and all tests are passing.

How to build

./gradlew buildPlugin

Note that the above won't run tests and checks. To do that too, run:

./gradlew check buildPlugin

For the complete list of tasks, see:

./gradlew tasks

How to run ITs

./gradlew :its:runIdeForUiTests &

The above will start an IDE instance with the SonarLint plugin. Wait for the UI robot server to start, then run the ITs:

./gradlew :its:check

Finally close the IDE.

To test against a specific version of IntelliJ, the ijVersion property can be used, e.g.:

./gradlew :its:runIdeForUiTests  -PijVersion=IC-2019.3 &
./gradlew :its:check

Please note that the IDE must be in foreground while tests are executed.

How to develop in IntelliJ

Import the project as a Gradle project.

Note: whenever you change a Gradle setting (for example in build.gradle.kts), don't forget to Refresh all Gradle projects in the Gradle toolbar.

To run an IntelliJ instance with the plugin installed, execute the Gradle task runIde using the command line, or the Gradle toolbar in IntelliJ, under Tasks/intellij. The instance files are stored under build/idea-sandbox.

Keep in mind that the clean task will wipe out the content of build/idea-sandbox, so you will need to repeat some setup steps for that instance, such as configuring the JDK.

Whenever you change dependency version, the previous versions are not deleted from the sandbox, and the JVM might not load the version that you expect. As the clean task may be inconvenient, an easier workaround is to delete the jars in the sandbox, for example with:

find build/idea-sandbox/ -name '*.jar' -delete

How to release

See release pipeline at Azure DevOps.

License

Copyright 2015-2022 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0

sonarlint-intellij's People

Contributors

aguther avatar bellingard avatar christophelevis avatar damien-urruty-sonarsource avatar dastrobu avatar dbmeneses avatar drautureau-sonarsource avatar ehartmann avatar godin avatar henryju avatar jblievremont avatar johnjohndoe avatar johnnei avatar juboucher avatar kirill-knize-sonarsource avatar mithfindel avatar mpaladin avatar riscue avatar rita-gorokhod avatar synthomat avatar tomsquest avatar tomverin avatar treyder avatar wouter-admiraal-sonarsource 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.