Skip to content

support lombok annotations with sonar-java plugin #63

Open
@zdhamasha

Description

@zdhamasha

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

Activity

removed their assignment
on Apr 30, 2021
ryneal

ryneal commented on Jun 17, 2021

@ryneal

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

artemitin

artemitin commented on Feb 15, 2022

@artemitin

Fix needed!

rofl

rofl commented on Apr 12, 2022

@rofl

[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

mantasmatuzas commented on Sep 21, 2022

@mantasmatuzas

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @filipesperandio@rofl@ryneal@mantasmatuzas@artemitin

        Issue actions

          support lombok annotations with sonar-java plugin · Issue #63 · codeclimate/codeclimate-sonar-java