Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72858

Add option for SourceFormatter to suppress sourcechecks for files/directories

    Details

      Description

      Add file sourcechecks-suppressions.xml

       

      To suppress single file:

      <suppressions>
          <suppress checks="JavaDiamondOperatorCheck" files="portal-impl/src/com/liferay/portlet/trash/util/TrashImpl\.java" />
      </suppressions>

       

      To suppress directory:

      <suppressions>
          <suppress checks="JavaDiamondOperatorCheck" files="portal-impl/src/com/liferay/portlet/trash/util/.*" />
      </suppressions>

       

      To suppress every file in a module/project, place the sourcechecks-suppressions.xml in the top directory:

      <suppressions>
          <suppress checks="JavaDiamondOperatorCheck" files=".*" />
      </suppressions>

       

       

        Attachments

          Activity

            People

            • Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              hugo.huijser Hugo Huijser
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                7.0.0 DXP FP20
                7.0.3 CE GA4
                7.0.0 DXP SP4
                7.0.X EE
                Master