Coder Social home page Coder Social logo

Comments (5)

szirbucz avatar szirbucz commented on July 30, 2024

@magwas Are compiler warnings enough or do we need Unused import, Unused local variable, etc... (What currently Eclipse crying for)
For the second one, I guess we need CheckStyle.

from pdengine.

magwas avatar magwas commented on July 30, 2024

Either the CI build should fail or Sonar should block the merge. Even turning compiler warnings to errors in pom.xml is enough to consider this task to be done. The below is just additional details to see the big picture.
Be aware that I am working on code duplication detection right now, and as a side effect, PMD warnngs are also brought to Sonar.
I do not focus on this though, and have no idea whether PMD, CheckStyle, or any other tool is best suited for static code analysis. And it cannot hurt if we check with multiple tools.

from pdengine.

szirbucz avatar szirbucz commented on July 30, 2024

szirbucz

from pdengine.

magwas avatar magwas commented on July 30, 2024

And yes, everything Eclipse is showing as a warning should lead toblocking the merge.

from pdengine.

szirbucz avatar szirbucz commented on July 30, 2024

@magwas For static analysis I vote for PMD. On my last project we used both CheckStyle and PMD, because they are good for different goals.
CheckStyle checks the coding conventions, like indentation, spaces around brackets, naming conventions, length of line, etc...
PMD does real static analysis and discovers code smells, code duplication and possible bugs.

from pdengine.

Related Issues (20)

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.