Skip to content

Make Codacy markdown checks less strict - #1803

Merged
andreasrosdalw merged 1 commit into
LibrePDF:masterfrom
andreasrosdal:relax-codacy-markdown-checks
Dec 2, 2026
Merged

andreasrosdalw merged 1 commit into
LibrePDF:masterfrom
andreasrosdal:relax-codacy-markdown-checks

Conversation

@andreasrosdal

@andreasrosdal andreasrosdal commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

The Codacy Static Code Analysis check fails PRs on Markdown style findings in the release notes, even when the code itself is fine. For example, #1802 fails on markdownlint MD043 and #1801 fails on MD032. This PR makes these checks less strict:

  • .markdownlint.json turns off three markdownlint rules:
    • MD043 (required heading structure): Codacy expects every Markdown file to start with the literal heading # Head. It currently flags 46 files, including every changelog, every README and the PR template. Any new Markdown file fails the gate.
    • MD032 (blank lines around lists): the changelogs often start a list directly after a ## heading.
    • MD013 (line length): the changelogs and READMEs use long lines.
  • .codacy.yml excludes changelogs/** from Codacy analysis, so release-note entries in PRs never block the Codacy gate.

The PR only adds configuration files. No code or build changes.

Needs a maintainer with Codacy/SonarCloud admin access

  • In Codacy, Code patterns → markdownlint, make sure "Configuration file" is turned on, so that .markdownlint.json is used. The .codacy.yml exclusion works without this.
  • Optional, and only in the dashboards: let the Codacy quality gate allow Info-level issues, since it currently allows 0 new issues of any severity. Also consider whether the SonarCloud gate should fail PRs on pre-existing javabugs:S2259 findings in files they touch, which is what fails Fix structure tree cleanup when flattening form fields #1800.

Add a markdownlint configuration that disables MD043 (required heading
structure), MD032 (blank lines around lists) and MD013 (line length).
MD043 expects every Markdown file to start with a literal "# Head" and
currently flags 46 files, including every changelog.

Exclude changelogs/ from Codacy analysis so that release-note entries
in pull requests no longer fail the Codacy quality gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@andreasrosdal
andreasrosdal force-pushed the relax-codacy-markdown-checks branch from cdb8398 to a806cfd Compare December 2, 2026 20:30
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@andreasrosdalw
andreasrosdalw merged commit 7b004c7 into LibrePDF:master Dec 2, 2026
15 checks passed
andreasrosdal added a commit to andreasrosdal/OpenPDF that referenced this pull request Dec 2, 2026
Add the changes of LibrePDF#1801, LibrePDF#1803, LibrePDF#1804, LibrePDF#1805 and LibrePDF#1806, which were
merged without a changelog entry, the pull request number of LibrePDF#1802 and
LibrePDF#1807, and the contributors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
andreasrosdalw pushed a commit that referenced this pull request Dec 2, 2026
…F/A-3 (#1807)

* Validate PDF/A and PDF/UA output with veraPDF and fix PDF/A-2/A-3

VeraPdfConformanceTest creates documents with text in an embedded
font, a JPEG image, a table, a link, transparency, an image with an
alpha channel and a layer, and validates them with veraPDF as PDF/A-1b,
PDF/A-2b, PDF/A-2u, PDF/A-3b, PDF/A-3u and PDF/UA-1.

The tests found that PDF/A-2 and PDF/A-3 documents could not be
created with features these standards allow:

- PdfXConformanceImp rejected transparency, images with an /SMask and
  layers for every PDF/A part. Only PDF/A-1, PDF/X-1a and PDF/X-3
  forbid them.
- TrueTypeFontUnicode wrote a CIDSet with only the used CIDs. PDF/A-2
  and PDF/A-3 (6.2.11.4.2) require all CIDs of the font program, and
  the CIDSet is optional there, so it is left out.
- The default optional content configuration had no /Name and could
  have an /AS entry, which PDF/A-2 and PDF/A-3 (6.9) do not allow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Complete the changelog of 4.0.1

Add the changes of #1801, #1803, #1804, #1805 and #1806, which were
merged without a changelog entry, the pull request number of #1802 and
#1807, and the contributors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants