Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support lombok annotations with sonar-java plugin #63

Open
zdhamasha opened this issue Dec 16, 2020 · 4 comments
Open

support lombok annotations with sonar-java plugin #63

zdhamasha opened this issue Dec 16, 2020 · 4 comments

Comments

@zdhamasha
Copy link

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
Copy link

ryneal commented Jun 17, 2021

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

@artemitin
Copy link

Fix needed!

@rofl
Copy link

rofl commented Apr 12, 2022

[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
Copy link

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants