mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 07:31:05 -05:00
Cleanup YAML Linting and Enable Rules (#2301)
* Fix yaml linting issues * Enable yamllint rules * Replace comment * Address linting and set line-length longer Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
This commit is contained in:
parent
42981a4a7a
commit
f0e69a5a7d
19 changed files with 46 additions and 38 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
AWSTemplateFormatVersion: "2010-09-09"
|
AWSTemplateFormatVersion: "2010-09-09"
|
||||||
Description: A sample template
|
Description: A sample template
|
||||||
Resources:
|
Resources:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
AWSTemplateFormatVersion: "2010-09-09"
|
AWSTemplateFormatVersion: "2010-09-09"
|
||||||
Description: A sample template
|
Description: A sample template
|
||||||
Resources:
|
Resources:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Github Actions Bad
|
name: Github Actions Bad
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: GitHub Actions Good
|
name: GitHub Actions Good
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
---
|
||||||
openapi: '3.0.0'
|
openapi: '3.0.0'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: Example
|
title: Example
|
||||||
|
@ -8,6 +9,6 @@ info:
|
||||||
description: Test for super-linter
|
description: Test for super-linter
|
||||||
servers:
|
servers:
|
||||||
- url: 'http://localhost:3000'
|
- url: 'http://localhost:3000'
|
||||||
paths: {}
|
paths: { }
|
||||||
tags:
|
tags:
|
||||||
- name: example
|
- name: example
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -30,4 +31,4 @@ spec:
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
volumes:
|
volumes:
|
||||||
- name: sample-example-volume
|
- name: sample-example-volume
|
||||||
emptyDir: {}
|
emptyDir: { }
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -30,4 +31,4 @@ spec:
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
volumes:
|
volumes:
|
||||||
- name: example-volume
|
- name: example-volume
|
||||||
emptyDir: {}
|
emptyDir: { }
|
||||||
|
|
6
.github/linters/.ansible-lint.yml
vendored
6
.github/linters/.ansible-lint.yml
vendored
|
@ -8,7 +8,7 @@
|
||||||
#############################
|
#############################
|
||||||
# Exclude paths from linter #
|
# Exclude paths from linter #
|
||||||
#############################
|
#############################
|
||||||
#exclude_paths:
|
# exclude_paths:
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Make output parsable #
|
# Make output parsable #
|
||||||
|
@ -23,7 +23,7 @@ quiet: true
|
||||||
#####################
|
#####################
|
||||||
# Path to rules dir #
|
# Path to rules dir #
|
||||||
#####################
|
#####################
|
||||||
#rulesdir:
|
# rulesdir:
|
||||||
|
|
||||||
################
|
################
|
||||||
# Tags to skip #
|
# Tags to skip #
|
||||||
|
@ -39,7 +39,7 @@ skip_list:
|
||||||
##################
|
##################
|
||||||
# Tags to follow #
|
# Tags to follow #
|
||||||
##################
|
##################
|
||||||
#tags:
|
# tags:
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Use rules #
|
# Use rules #
|
||||||
|
|
3
.github/linters/.eslintrc.yml
vendored
3
.github/linters/.eslintrc.yml
vendored
|
@ -37,7 +37,8 @@ plugins:
|
||||||
#########
|
#########
|
||||||
# Rules #
|
# Rules #
|
||||||
#########
|
#########
|
||||||
# rules:
|
rules: { }
|
||||||
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Overrides for JSON parsing #
|
# Overrides for JSON parsing #
|
||||||
|
|
8
.github/linters/.golangci.yml
vendored
8
.github/linters/.golangci.yml
vendored
|
@ -5,8 +5,9 @@
|
||||||
#########################
|
#########################
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
#configure golangci-lint
|
# configure golangci-lint
|
||||||
#See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
|
@ -26,8 +27,7 @@ linters:
|
||||||
- revive
|
- revive
|
||||||
linters-settings:
|
linters-settings:
|
||||||
errcheck:
|
errcheck:
|
||||||
# report about assignment of errors to blank
|
# report about assignment of errors to blank identifier
|
||||||
# identifier: `num, _ := strconv.Atoi(numStr)`;
|
|
||||||
# default is false: such cases aren't reported by default.
|
# default is false: such cases aren't reported by default.
|
||||||
check-blank: true
|
check-blank: true
|
||||||
govet:
|
govet:
|
||||||
|
|
6
.github/linters/.hadolint.yaml
vendored
6
.github/linters/.hadolint.yaml
vendored
|
@ -4,9 +4,9 @@
|
||||||
##########################
|
##########################
|
||||||
ignored:
|
ignored:
|
||||||
- DL4001 # Ignore wget and curl in same file
|
- DL4001 # Ignore wget and curl in same file
|
||||||
- DL4006 # ignore pipefail as we dont want to add layers
|
- DL4006 # ignore pipefail as we don't want to add layers
|
||||||
- DL3018 # We do pin version in pipfile.lock
|
- DL3018 # We do pin version in pipfile.lock
|
||||||
- DL3013 # We do pin version in pipfile.lock
|
- DL3013 # We do pin version in pipfile.lock
|
||||||
- DL3003 # Ignore workdir so we dont add layers
|
- DL3003 # Ignore workdir so we don't add layers
|
||||||
- SC2016 # ignore as its intepreted later
|
- SC2016 # ignore as its interpreted later
|
||||||
- DL3044 # Ignore using env in env
|
- DL3044 # Ignore using env in env
|
||||||
|
|
2
.github/linters/.yaml-lint.yml
vendored
2
.github/linters/.yaml-lint.yml
vendored
|
@ -50,7 +50,7 @@ rules:
|
||||||
key-duplicates: enable
|
key-duplicates: enable
|
||||||
line-length:
|
line-length:
|
||||||
level: warning
|
level: warning
|
||||||
max: 600
|
max: 1024
|
||||||
allow-non-breakable-words: true
|
allow-non-breakable-words: true
|
||||||
allow-non-breakable-inline-mappings: true
|
allow-non-breakable-inline-mappings: true
|
||||||
new-line-at-end-of-file: disable
|
new-line-at-end-of-file: disable
|
||||||
|
|
1
.github/release-drafter.yml
vendored
1
.github/release-drafter.yml
vendored
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
# yamllint disable rule:line-length
|
|
||||||
name-template: 'v$RESOLVED_VERSION'
|
name-template: 'v$RESOLVED_VERSION'
|
||||||
tag-template: 'v$RESOLVED_VERSION'
|
tag-template: 'v$RESOLVED_VERSION'
|
||||||
template: |
|
template: |
|
||||||
|
|
1
.github/workflows/deploy-DEV-slim.yml
vendored
1
.github/workflows/deploy-DEV-slim.yml
vendored
|
@ -202,5 +202,6 @@ jobs:
|
||||||
-e OUTPUT_DETAILS=detailed \
|
-e OUTPUT_DETAILS=detailed \
|
||||||
-e ACTIONS_RUNNER_DEBUG=true \
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
|
-e YAML_LINTER_RULES=.github/linters/.yaml-linter.yml \
|
||||||
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
||||||
"ghcr.io/github/super-linter:slim-${GITHUB_SHA}"
|
"ghcr.io/github/super-linter:slim-${GITHUB_SHA}"
|
||||||
|
|
1
.github/workflows/deploy-DEV-standard.yml
vendored
1
.github/workflows/deploy-DEV-standard.yml
vendored
|
@ -201,5 +201,6 @@ jobs:
|
||||||
-e OUTPUT_DETAILS=detailed \
|
-e OUTPUT_DETAILS=detailed \
|
||||||
-e ACTIONS_RUNNER_DEBUG=true \
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
|
-e YAML_LINTER_RULES=.github/linters/.yaml-linter.yml \
|
||||||
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
||||||
"ghcr.io/github/super-linter:${GITHUB_SHA}"
|
"ghcr.io/github/super-linter:${GITHUB_SHA}"
|
||||||
|
|
1
.github/workflows/stack-linter.yml
vendored
1
.github/workflows/stack-linter.yml
vendored
|
@ -16,7 +16,6 @@
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Set the Job #
|
# Set the Job #
|
||||||
###############
|
###############
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#############################
|
#############################
|
||||||
# Exclude paths from linter #
|
# Exclude paths from linter #
|
||||||
#############################
|
#############################
|
||||||
#exclude_paths:
|
# exclude_paths:
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Make output parsable #
|
# Make output parsable #
|
||||||
|
@ -23,7 +23,7 @@ quiet: true
|
||||||
#####################
|
#####################
|
||||||
# Path to rules dir #
|
# Path to rules dir #
|
||||||
#####################
|
#####################
|
||||||
#rulesdir:
|
# rulesdir:
|
||||||
|
|
||||||
################
|
################
|
||||||
# Tags to skip #
|
# Tags to skip #
|
||||||
|
@ -39,7 +39,7 @@ skip_list:
|
||||||
##################
|
##################
|
||||||
# Tags to follow #
|
# Tags to follow #
|
||||||
##################
|
##################
|
||||||
#tags:
|
# tags:
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Use rules #
|
# Use rules #
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
#############################
|
#############################
|
||||||
## JavaScript Linter rules ##
|
## JavaScript Linter rules ##
|
||||||
|
@ -38,7 +37,7 @@ plugins:
|
||||||
#########
|
#########
|
||||||
# Rules #
|
# Rules #
|
||||||
#########
|
#########
|
||||||
# rules: {}
|
rules: { }
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Overrides for JSON parsing #
|
# Overrides for JSON parsing #
|
||||||
|
|
Loading…
Reference in a new issue