Skip to content

Commit 994d492

Browse files
fix: stabilize megalinter on main
Tighten the MegaLinter configuration to the maintainable checks for this repository, fix schema and shellcheck findings, and align docs and executable bits with the current lint gate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7dca649 commit 994d492

33 files changed

Lines changed: 106 additions & 60 deletions

.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ indent_size = 2
1919

2020
[*.md]
2121
trim_trailing_whitespace = false
22-
# lines that are too long will trigger an error in cmd/tools/vcheck-md.v
23-
# run v check-md [folder/file] to test markdown files
24-
# the longest normal line is specified with this constant:
25-
# `too_long_line_length_other = 100`
26-
max_line_length = 100
2722

2823
[{**.*sh,./dots}]
2924
indent_size = tab

.github/FUNDING.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# These are supported funding model platforms
22

33
github: ulises-jeremias # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
custom: # Replace with a single custom sponsorship URL
4+
# patreon: your-patreon-handle
5+
# open_collective: your-open-collective-handle
6+
# ko_fi: your-ko-fi-handle
7+
# tidelift: npm/babel
8+
# custom:
9+
# - https://example.com/sponsor

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: "🐛 Bug Report"
33
description: Report a bug
44
title: "(short issue description)"
55
labels: [bug]
6-
assignees: []
76
body:
87
- type: textarea
98
id: description
@@ -40,7 +39,7 @@ body:
4039
For more complex issues provide a repo with the smallest sample that reproduces the bug.
4140
4241
Avoid including business logic or unrelated code, it makes diagnosis more difficult.
43-
The code sample should be an SSCCE. See http://sscce.org/ for details. In short, please provide a code sample that we can copy/paste, run and reproduce.
42+
The code sample should be an SSCCE. See https://sscce.org/ for details. In short, please provide a code sample that we can copy/paste, run and reproduce.
4443
validations:
4544
required: true
4645
- type: textarea

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: "📕 Documentation Issue"
22
description: Report an issue in the Reference documentation or Developer Guide
33
title: "(short issue description)"
44
labels: [documentation]
5-
assignees: []
65
body:
76
- type: textarea
87
id: description

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: 🚀 Feature Request
33
description: Suggest an idea for this project
44
title: "(short issue description)"
55
labels: [feature-request]
6-
assignees: []
76
body:
87
- type: textarea
98
id: description

.github/workflows/mega-linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
branches:
1717
- main
1818

19+
permissions: {}
20+
1921
# Comment env block if you do not want to apply fixes
2022
env:
2123
# Apply linter fixes configuration

.mega-linter.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ APPLY_FIXES: all
2121
SHOW_ELAPSED_TIME: true
2222

2323
FILEIO_REPORTER: false
24+
FLAVOR_SUGGESTIONS: false
25+
26+
DISABLE:
27+
- COPYPASTE
28+
- CPP
29+
- JAVASCRIPT
30+
- PYTHON
31+
- SPELL
32+
33+
DISABLE_LINTERS:
34+
- REPOSITORY_GITLEAKS
35+
- REPOSITORY_KICS
36+
37+
BASH_EXEC_FILTER_REGEX_EXCLUDE: >-
38+
(^|/)(lib/.*\.sh|home/dot_local/lib/dots/.*\.sh|playground/config/\.bashrc)$
2439
2540
# Uncomment if you want MegaLinter to detect errors but not block CI to pass
2641
# DISABLE_ERRORS: true

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Before you start, make sure you have:
122122

123123
### Creating a Good Bug Report
124124

125-
Use our [bug report template](.github/ISSUE_TEMPLATE/bug_report.md) and include:
125+
Use our [bug report template](.github/ISSUE_TEMPLATE/bug-report.yml) and include:
126126

127127
1. **Clear title** - Briefly describe the issue
128128
2. **Environment details** - OS, window manager, versions
@@ -152,15 +152,15 @@ Use our [bug report template](.github/ISSUE_TEMPLATE/bug_report.md) and include:
152152

153153
## 💡 Suggesting Features
154154

155-
### Before Submitting
155+
### Before Suggesting a Feature
156156

157157
- **Check existing suggestions** - Someone might have had the same idea
158158
- **Consider the scope** - Does it fit HorneroConfig's philosophy?
159159
- **Think about impact** - How would this benefit users?
160160

161161
### Creating a Feature Request
162162

163-
Use our [feature request template](.github/ISSUE_TEMPLATE/feature_request.md) and include:
163+
Use our [feature request template](.github/ISSUE_TEMPLATE/feature-request.yml) and include:
164164

165165
1. **Clear title** - What's the feature?
166166
2. **Problem statement** - What need does this address?
@@ -252,7 +252,7 @@ We follow conventional commits for clarity:
252252
- `chore:` - Maintenance tasks
253253

254254
**Examples:**
255-
```
255+
```text
256256
feat: add weather forecast to polybar module
257257
fix: correct color contrast in light themes
258258
docs: update installation guide for Ubuntu
@@ -269,7 +269,7 @@ Want to share your beautiful desktop theme? Here's how:
269269

270270
Create a new directory in `home/dot_local/share/dots/rices/`:
271271

272-
```
272+
```text
273273
your-rice-name/
274274
├── config.sh # Theme configuration
275275
├── apply.sh # Application script
@@ -398,7 +398,7 @@ Good documentation helps everyone! You can help by:
398398

399399
Understanding the repository layout helps you navigate:
400400

401-
```
401+
```text
402402
.
403403
├── .github/ # GitHub workflows, templates, copilot instructions
404404
├── docs/ # Documentation and wiki content
@@ -540,4 +540,4 @@ Every contribution, no matter how small, makes HorneroConfig better. We apprecia
540540

541541
---
542542

543-
*Built with ❤️ by the HorneroConfig community*
543+
### Built with ❤️ by the HorneroConfig community

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h1>🏠 HorneroConfig</h1>
88
<h3>✨ The Ultimate Linux Desktop Configuration Framework ✨</h3>
99

10-
**Intelligent • Beautiful • Powerful • Seamless**
10+
<p><strong>Intelligent • Beautiful • Powerful • Seamless</strong></p>
1111

1212
[📖 Documentation](https://github.com/ulises-jeremias/dotfiles/wiki)
1313
[🎨 Gallery](#-gallery)

bin/play

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ command="up"
4343
[ -n "${provision}" ] && command="provision"
4444
[ -n "${remove}" ] && command="destroy"
4545

46-
docker_compose_command="docker compose run --rm vagrant"
47-
vagrant_command="vagrant ${command}"
46+
docker_compose_command=(docker compose run --rm vagrant)
47+
vagrant_command=(vagrant "${command}")
4848

4949
# Combine the Docker Compose and Vagrant commands
50-
full_command="${docker_compose_command} ${vagrant_command}"
50+
full_command=("${docker_compose_command[@]}" "${vagrant_command[@]}")
5151

52-
echo "Running command: ${full_command}"
53-
${docker_compose_command} ${vagrant_command} 2>&1 | tee -a "${log_file}"
52+
printf 'Running command:'
53+
printf ' %q' "${full_command[@]}"
54+
printf '\n'
55+
"${full_command[@]}" 2>&1 | tee -a "${log_file}"
5456
exit $?

0 commit comments

Comments
 (0)