Skip to content

Commit 8101769

Browse files
authored
Keep improving CI (#292)
Improve Linting, spelling, links and better control script this includes spellcheck for both other files and markdown updated lint script that has more options - including formatting enabled markdown link checker as the first pass on making sure links work update CI to only activate on changed files
1 parent 4779edc commit 8101769

File tree

12 files changed

+68
-11
lines changed

12 files changed

+68
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: MegaLinter
13-
run: ./scripts/lint
13+
run: ./scripts/lint -c
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.mega-linter.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# Configuration file for MegaLinter
22
# See all available variables at https://megalinter.io/configuration/ and in linters documentation
33

4-
APPLY_FIXES: none
54
DISABLE:
6-
- SPELL
75
- REPOSITORY
86
- JSON
9-
- MARKDOWN
107
- JAVASCRIPT
118
- CSS
129
- HTML
1310
- COPYPASTE
1411
DISABLE_LINTERS:
1512
- YAML_V8R
13+
- SPELL_LYCHEE
14+
- MARKDOWN_MARKDOWNLINT
15+
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
1616
PRINT_ALL_FILES: false
1717
DOCKERFILE_HADOLINT_ARGUMENTS: "--ignore DL3008 --ignore DL4006 --ignore DL3009 --ignore DL3059"
18+
BASH_SHFMT_ARGUMENTS: "-i 4"
1819
SHOW_ELAPSED_TIME: true
19-
FLAVOR_SUGGESTIONS: false
20+
FLAVOR_SUGGESTIONS: true
2021
EMAIL_REPORTER: false
2122
FILEIO_REPORTER: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Budget / Finance
33
logo: "/img/categories/budget-finance.svg"
4+
# spell-checker: disable
45
logo_credit: Renan Ferreira Santos from the Noun Project
56
featured: true
67
---

_dataset_categories/education.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Education
33
logo: "/img/categories/education.svg"
4+
# spell-checker: disable
45
logo_credit: Sergey Patutin from the Noun Project
56
featured: true
67
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Parks / Recreation
33
logo: "/img/categories/parks-recreation.svg"
4+
# spell-checker: disable
45
logo_credit: Pipe Rosas Licht from the Noun Project
56
featured: true
67
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Public Safety
33
logo: "/img/categories/public-safety.svg"
4+
# spell-checker: disable
45
logo_credit: Rohith M S from the Noun Project
56
featured: true
67
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Transportation
33
logo: "/img/categories/transportation.svg"
4+
# spell-checker: disable
45
logo_credit: Dmitry Baranovskiy from the Noun Project
56
featured: true
67
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Uncategorized
33
logo: "/img/categories/uncategorized.svg"
4+
# spell-checker: disable
45
logo_credit: Edward Boatman from the Noun Project
56
featured: true
67
---

cspell.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// cSpell Settings
2+
{
3+
// Version of the setting file. Always 0.2
4+
"version": "0.2",
5+
// language - current active spelling language
6+
"language": "en",
7+
"allowCompoundWords": true,
8+
// words - list of words to be always considered correct
9+
"words": [
10+
"jkan",
11+
"esac",
12+
"jsonify",
13+
"markdownify",
14+
"Wisniewski",
15+
"Licence",
16+
"Uncategorized",
17+
"decap",
18+
"Phila",
19+
"ublabs",
20+
"customised",
21+
"customise",
22+
"shfmt"
23+
]
24+
}

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ JKAN is a [Jekyll](http://jekyllrb.com/) site that uses JavaScript for enhanced
3333
| `_data/licenses.yml` | A list of licenses that datasets can be associated with |
3434
| `_datasets` | A directory of `.md` files containing dataset information in YAML front-matter |
3535
| `_dataset_categories` | A directory of `.md` files containing dataset categories in YAML front-matter |
36-
| `_includes` | HTML partials that are included in layouts. `display` is used by [schema files](/docs/configuration.md) |
36+
| `_includes` | HTML partials that are included in layouts. |
3737
| `_layouts` | Page templates |
3838
| `_organizations` | A directory of `.md` files containing organization information in YAML front-matter |
3939
| `editor` | Configuration for the Editor UI, described below |

0 commit comments

Comments
 (0)