-
Notifications
You must be signed in to change notification settings - Fork 9
ci: add file hygiene workflow and resolve all lint errors #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9696281
ci: add file hygiene workflow and lint configuration
yshyn-iohk c9e982c
style: auto-fix and manually resolve all lint errors across the repo
yshyn-iohk a15a6b1
chore: add formatting commit to .git-blame-ignore-revs
yshyn-iohk 4985fe8
Merge branch 'main' into ci/file-hygiene
yshyn-iohk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/**" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
.git-blame-ignore-revsentry does not reference a commit in the ancestry of this formatting change (git merge-base --is-ancestor c9e982cdf2de93a3093f2e9c3dc4653811de1eac 4b41a949659e485a18c5e051efc5ee46906d7435fails), sogit blame --ignore-revs-filewill not suppress the mass reformat introduced here. Fresh evidence in this revision is that the newly added hash isc9e982…, but it still does not match the commit being introduced, leaving blame output noisy for these files.Useful? React with 👍 / 👎.