Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.swift]
indent_size = 4

[*.{rs,go}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
indent_size = unset

[LICENSE]
indent_size = unset

[Makefile]
indent_style = tab
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# style: auto-fix and manually resolve all lint errors across the repo
# Mass formatting. No logic changes.
c9e982cdf2de93a3093f2e9c3dc4653811de1eac

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point blame-ignore to the actual formatting commit

The .git-blame-ignore-revs entry does not reference a commit in the ancestry of this formatting change (git merge-base --is-ancestor c9e982cdf2de93a3093f2e9c3dc4653811de1eac 4b41a949659e485a18c5e051efc5ee46906d7435 fails), so git blame --ignore-revs-file will not suppress the mass reformat introduced here. Fresh evidence in this revision is that the newly added hash is c9e982…, but it still does not match the commit being introduced, leaving blame output noisy for these files.

Useful? React with 👍 / 👎.

46 changes: 46 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Normalize all text files to LF
* text=auto eol=lf

# Scripts -- must be LF (executed in Docker/Linux)
*.sh text eol=lf
*.bash text eol=lf

# Data/config
*.sql text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.properties text eol=lf

# Source code
*.scala text eol=lf
*.kt text eol=lf
*.kts text eol=lf
*.java text eol=lf
*.swift text eol=lf
*.ts text eol=lf
*.js text eol=lf
*.rs text eol=lf
*.go text eol=lf

# Docs
*.md text eol=lf
*.txt text eol=lf

# Docker
Dockerfile text eol=lf
docker-compose*.yml text eol=lf

# Binary -- never touch
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.jar binary
*.zip binary
*.tar.gz binary
*.woff binary
*.woff2 binary
*.ttf binary
10 changes: 10 additions & 0 deletions .github/workflows/file-hygiene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: File Hygiene

on:
pull_request:
push:
branches: [main]

jobs:
lint:
uses: hyperledger-identus/.github/.github/workflows/lint-files.yml@f2c9e417fa46f69b015a9cdbaafdfb9e52e4ed60 # main
6 changes: 3 additions & 3 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
echo "| URL | Status | Parent Page |" >> link-report.md
echo "|-----|--------|-------------|" >> link-report.md
jq -r '.links[] | select(.state == "BROKEN") | "| \(.url) | \(.status) | \(.parent) |"' link-check-results.json >> link-report.md

BROKEN_COUNT=$(jq '[.links[] | select(.state == "BROKEN")] | length' link-check-results.json)

echo "### 🔗 Broken Links Report( $BROKEN_COUNT found)" >> $GITHUB_STEP_SUMMARY
cat link-report.md >> $GITHUB_STEP_SUMMARY

Expand All @@ -64,4 +64,4 @@ jobs:
if: env.LINKINATOR_EXIT_CODE != 0
run: |
echo "Broken links detected. Check the artifact for details."
exit 1
exit 1
13 changes: 13 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# markdownlint-cli2 configuration
# https://github.com/DavidAnson/markdownlint-cli2

# Ignore patterns
ignores:
- "**/target/**"
- "**/node_modules/**"
- ".claude/**"
- "**/build/**"
- "cloud-agent/**"
- "sdk-ts/**"
- "CHANGELOG.md"
- "megalinter-reports/**"
52 changes: 52 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# markdownlint configuration
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md

default: true

# Allow long lines (common in tables, URLs, and generated content)
MD013: false

# Allow multiple top-level headings (common in multi-section docs)
MD025: false

# Allow inline HTML (needed for badges, details/summary, admonitions)
MD033: false

# Allow duplicate headings in different sections
MD024: false

# Allow emphasis as heading
MD036: false

# Allow bare URLs
MD034: false

# Allow non-sequential list numbering
MD029: false

# Allow any strong style
MD050: false

# Relaxed list indentation
MD007: false

# Allow any list style
MD004: false

# Allow heading increment jumps
MD001: false

# Allow compact table style
MD060: false

# Allow first line to not be heading
MD041: false

# Allow dollar signs before commands
MD014: false

# Allow non-descriptive link text
MD059: false

# Allow code blocks without language
MD040: false
46 changes: 46 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
extends: default

rules:
# Allow long lines (common in CI workflows and docker-compose)
line-length: disable

# Allow truthy values like 'on' (used in GitHub Actions triggers)
truthy:
allowed-values: ["true", "false", "yes", "no", "on"]

# Relaxed comment indentation
comments-indentation: disable

# Don't require document start marker
document-start: disable

# Relaxed bracket/brace spacing
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
braces:
min-spaces-inside: 0
max-spaces-inside: 1

# Allow 1 space before comment
comments:
min-spaces-from-content: 1

# Relaxed indentation (semantic-release uses flow style)
indentation:
spaces: consistent
indent-sequences: whatever

# Relaxed commas
commas:
min-spaces-after: 1
max-spaces-after: -1
max-spaces-before: -1

ignore: |
cloud-agent/
sdk-ts/
node_modules/
.claude/
.releaserc.yml
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing
Thank you for your interest in contributing to this project! Please refer to the Hyperledger Identus repository's [CONTRIBUTING.md](https://github.com/hyperledger-identus/identus/blob/main/CONTRIBUTING.md) file for guidelines on how to submit code or documentation contributions.
# Contributing

Thank you for your interest in contributing to this project! Please refer to the Hyperledger Identus repository's [CONTRIBUTING.md](https://github.com/hyperledger-identus/identus/blob/main/CONTRIBUTING.md) file for guidelines on how to submit code or documentation contributions.
6 changes: 3 additions & 3 deletions DCO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Developer Certificate of Origin (DCO)
For information about sign-offs required for contributions to this repository, please refer to this Hyperledger Identus repository's [DCO.md](https://github.com/hyperledger-identus/identus/blob/main/DCO.md) file.
# Developer Certificate of Origin (DCO)

For information about sign-offs required for contributions to this repository, please refer to this Hyperledger Identus repository's [DCO.md](https://github.com/hyperledger-identus/identus/blob/main/DCO.md) file.
Loading
Loading