Skip to content

ci: add file hygiene workflow and resolve all lint errors#141

Closed
yshyn-iohk wants to merge 3 commits into
mainfrom
ci/file-hygiene
Closed

ci: add file hygiene workflow and resolve all lint errors#141
yshyn-iohk wants to merge 3 commits into
mainfrom
ci/file-hygiene

Conversation

@yshyn-iohk
Copy link
Copy Markdown
Contributor

Summary

Implements file hygiene linting for integration as part of the org-wide rollout (hyperledger-identus/hyperledger-identus#172).

1. CI workflow and lint configuration

  • Add file-hygiene.yml caller workflow for the reusable lint-files.yml
  • Add canonical .editorconfig with exclusions for initial-pages/ and latest-history/ (generated content)
  • Add .gitattributes, .markdownlint.yml, .markdownlint-cli2.yaml
  • Add .yamllint.yml with .pre-commit-config.yaml excluded

2. Lint fixes across the repo (22 files)

  • Markdownlint auto-fix: blank lines around headings/lists/fences, multiple blank lines, missing final newline
  • YAML fixes: trailing spaces, extra colon spacing, extra blank lines, missing final newlines
  • EditorConfig fixes: trailing whitespace in 14 TypeScript source/test files

3. .git-blame-ignore-revs

  • Add mass formatting commit to blame ignore list

Test plan

  • File Hygiene (editorconfig) — passing (0 errors locally)
  • Markdown — passing (0 errors locally)
  • YAML — passing (0 errors locally)
  • ShellCheck — N/A (no shell scripts)

Refs: hyperledger-identus/hyperledger-identus#172

🤖 Generated with Claude Code

yshyn-iohk and others added 3 commits May 22, 2026 17:09
Add reusable file-hygiene workflow caller and canonical lint configs:

- .github/workflows/file-hygiene.yml: caller for lint-files.yml
- .editorconfig: UTF-8 (no BOM), LF line endings, indent rules
  with exclusions for initial-pages/ and latest-history/ (generated)
- .gitattributes: LF normalization for text files, binary rules
- .markdownlint.yml + .markdownlint-cli2.yaml: markdown lint rules
- .yamllint.yml: YAML lint rules with .pre-commit-config.yaml excluded

Refs: hyperledger-identus/hyperledger-identus#172

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Markdownlint auto-fix resolved formatting issues:
- MD012: multiple consecutive blank lines
- MD022: missing blank lines around headings
- MD031: missing blank lines around fenced code blocks
- MD032: missing blank lines around lists
- MD047: missing final newline

YAML fixes:
- Fix trailing spaces in report.yml, integration-manual.yml
- Fix extra colons spacing in integration-manual.yml
- Fix extra blank line in ci.yml
- Add final newline to dependabot.yml, update-page.yml

EditorConfig fixes:
- Fix trailing whitespace in 14 TypeScript source/test files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
@yshyn-iohk yshyn-iohk requested a review from amagyar-iohk as a code owner May 22, 2026 09:10
@sonarqubecloud
Copy link
Copy Markdown

@yshyn-iohk
Copy link
Copy Markdown
Contributor Author

Commits pushed directly to main to preserve 3-commit structure and correct .git-blame-ignore-revs SHA.

Commits on main:

  • 4b69571 ci: add file hygiene workflow and lint configuration
  • c820f56 style: auto-fix and manually resolve all lint errors across the repo
  • 3e0d37a chore: add formatting commit to .git-blame-ignore-revs

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.

1 participant