codeclimate / codeclimate-sonar-java

Maintainability and reliability checks for Java
GNU Affero General Public License v3.0
3 stars 6 forks source link

support lombok annotations with sonar-java plugin #63

Open zdhamasha opened 3 years ago

zdhamasha commented 3 years ago

the following is the .codeclimate.yml file content


version: "2"
plugins:
  csslint:
    enabled: false
  structure:
    enabled: true
  sonar-java:
    enabled: true
    config:
        sonar.java.source: "8"
  coffeelint:
    enabled: false
  duplication:
    enabled: false
    config:
      languages:
        - ruby
        - javascript
        - python
        - php
  eslint:
    enabled: false
    channel: "stable"
  fixme:
    enabled: true
  rubocop:
    enabled: false
exclude_patterns:
  - config/
  - db/
  - dist/
  - features/
  - "**/node_modules/"
  - script/
  - "**/spec/"
  - "**/test/"
  - "**/tests/"
  - Tests/
  - "**/vendor/"
  - "**/*_test.go"
  - "**/*.d.ts"
  - "**/*.min.js"
  - "**/*.min.css"
  - "**/__tests__/"
  - "**/__mocks__/" 

after applying the sonar-java engine ends, report to us

Major - Add a private constructor to hide the implicit public one.

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class PageMapper {

    }
}

why the sonar-java does not support recognize the lombok annotations

ryneal commented 3 years ago

I am also hitting this issue. Is there a workaround or can it be prioritised?

artemitin commented 2 years ago

Fix needed!

rofl commented 2 years ago

[https://github.com/codeclimate/codeclimate-sonar-java/blob/master/build.gradle#L39] [https://docs.codeclimate.com/docs/sonar-java] tells me this is using sonar-java 4.14?

[https://github.com/SonarSource/sonar-java/releases?q=4.14&expanded=true] sonar-java has been released about 5 years ago (20 Sep 2017).

mantasmatuzas commented 2 years ago

Any news?