Skip to content

Commit d1d4847

Browse files
authored
feat(superlinter): added config file (#113)
* feat(superlinter): added config file * fix: wrong indentation type (spaces instead of tabs) https://yaml.org/spec/1.2/spec.html#id2777534
1 parent 38bfdcf commit d1d4847

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ quote_type = single
2222
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
2323
indent_size = 2
2424
indent_style = space
25+
26+
[{*.yaml,*.yml}]
27+
indent_style = space
28+
indent_size = 2

.github/workflows/linter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
###########################
3+
###########################
4+
## Linter GitHub Actions ##
5+
###########################
6+
###########################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
pull_request:
19+
branches: [master]
20+
21+
###############
22+
# Set the Job #
23+
###############
24+
jobs:
25+
build:
26+
# Name the Job
27+
name: Lint Code Base
28+
# Set the agent to run on
29+
runs-on: ubuntu-latest
30+
31+
##################
32+
# Load all steps #
33+
##################
34+
steps:
35+
##########################
36+
# Checkout the code base #
37+
##########################
38+
- name: Checkout Code
39+
uses: actions/checkout@v2
40+
with:
41+
# Full git history is needed to get a proper list of changed files within `super-linter`
42+
fetch-depth: 0
43+
44+
################################
45+
# Run Linter against code base #
46+
################################
47+
- name: Lint Code Base
48+
uses: github/super-linter@v3
49+
env:
50+
VALIDATE_ALL_CODEBASE: false
51+
DEFAULT_BRANCH: master
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)