mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 00:31:07 -05:00
Update additional scala extensions (#2296)
* Update buildFileList.sh add new extension * fix space * turn this down a hair * update * fix rule * fixed dumb stuff * fix indent * hangry
This commit is contained in:
parent
be2b62efe9
commit
42981a4a7a
14 changed files with 72 additions and 68 deletions
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
#################################
|
#################################
|
||||||
# GitHub Dependabot Config info #
|
# GitHub Dependabot Config info #
|
||||||
#################################
|
#################################
|
||||||
|
@ -36,4 +37,3 @@ updates:
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
open-pull-requests-limit: 10
|
||||||
|
|
||||||
|
|
1
.github/linters/.cfnlintrc.yml
vendored
1
.github/linters/.cfnlintrc.yml
vendored
|
@ -1,2 +1,3 @@
|
||||||
|
---
|
||||||
include_checks:
|
include_checks:
|
||||||
- I
|
- I
|
||||||
|
|
51
.github/linters/.eslintrc.yml
vendored
51
.github/linters/.eslintrc.yml
vendored
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
#############################
|
#############################
|
||||||
## JavaScript Linter rules ##
|
## JavaScript Linter rules ##
|
||||||
|
@ -38,36 +37,36 @@ plugins:
|
||||||
#########
|
#########
|
||||||
# Rules #
|
# Rules #
|
||||||
#########
|
#########
|
||||||
rules: {}
|
# rules:
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Overrides for JSON parsing #
|
# Overrides for JSON parsing #
|
||||||
##############################
|
##############################
|
||||||
overrides:
|
overrides:
|
||||||
|
|
||||||
# JSON files
|
# JSON files
|
||||||
- files:
|
- files:
|
||||||
- "*.json"
|
- "*.json"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-json
|
- plugin:jsonc/recommended-with-json
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSON
|
jsonSyntax: JSON
|
||||||
|
|
||||||
# JSONC files
|
# JSONC files
|
||||||
- files:
|
- files:
|
||||||
- "*.jsonc"
|
- "*.jsonc"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-jsonc
|
- plugin:jsonc/recommended-with-jsonc
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSONC
|
jsonSyntax: JSONC
|
||||||
|
|
||||||
# JSON5 files
|
# JSON5 files
|
||||||
- files:
|
- files:
|
||||||
- "*.json5"
|
- "*.json5"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-json5
|
- plugin:jsonc/recommended-with-json5
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSON5
|
jsonSyntax: JSON5
|
||||||
|
|
13
.github/linters/.golangci.yml
vendored
13
.github/linters/.golangci.yml
vendored
|
@ -5,15 +5,15 @@
|
||||||
#########################
|
#########################
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
# configure golangci-lint
|
#configure golangci-lint
|
||||||
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
#See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- dupl
|
- dupl
|
||||||
- gosec
|
- gosec
|
||||||
- goconst
|
- goconst
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- gosec
|
- gosec
|
||||||
|
@ -26,7 +26,8 @@ linters:
|
||||||
- revive
|
- revive
|
||||||
linters-settings:
|
linters-settings:
|
||||||
errcheck:
|
errcheck:
|
||||||
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
|
# report about assignment of errors to blank
|
||||||
|
# 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:
|
||||||
|
|
1
.github/linters/.protolintrc.yml
vendored
1
.github/linters/.protolintrc.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
# Lint directives.
|
# Lint directives.
|
||||||
lint:
|
lint:
|
||||||
# Linter rules.
|
# Linter rules.
|
||||||
|
|
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: 80
|
max: 600
|
||||||
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
|
||||||
|
|
2
.github/release-drafter.yml
vendored
2
.github/release-drafter.yml
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
# 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: |
|
||||||
|
|
2
.github/workflows/deploy-DEV-slim.yml
vendored
2
.github/workflows/deploy-DEV-slim.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Prevent duplicate run from happening when a forked push is committed
|
# Prevent duplicate run from happening when a forked push is committed
|
||||||
if: ${{ github.event_name == 'push' ||
|
if: ${{ github.event_name == 'push' ||
|
||||||
github.event.pull_request.head.repo.full_name != github.repository }}
|
github.event.pull_request.head.repo.full_name != github.repository }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
##################
|
##################
|
||||||
# Load all steps #
|
# Load all steps #
|
||||||
|
|
4
.github/workflows/stack-linter.yml
vendored
4
.github/workflows/stack-linter.yml
vendored
|
@ -14,10 +14,8 @@
|
||||||
# Start the job on all push #
|
# Start the job on all push #
|
||||||
#############################
|
#############################
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches-ignore: []
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Set the Job #
|
# Set the Job #
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
---
|
||||||
include_checks:
|
include_checks:
|
||||||
- I
|
- I
|
||||||
|
|
|
@ -38,36 +38,36 @@ plugins:
|
||||||
#########
|
#########
|
||||||
# Rules #
|
# Rules #
|
||||||
#########
|
#########
|
||||||
rules: {}
|
# rules: {}
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Overrides for JSON parsing #
|
# Overrides for JSON parsing #
|
||||||
##############################
|
##############################
|
||||||
overrides:
|
overrides:
|
||||||
|
|
||||||
# JSON files
|
# JSON files
|
||||||
- files:
|
- files:
|
||||||
- "*.json"
|
- "*.json"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-json
|
- plugin:jsonc/recommended-with-json
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSON
|
jsonSyntax: JSON
|
||||||
|
|
||||||
# JSONC files
|
# JSONC files
|
||||||
- files:
|
- files:
|
||||||
- "*.jsonc"
|
- "*.jsonc"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-jsonc
|
- plugin:jsonc/recommended-with-jsonc
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSONC
|
jsonSyntax: JSONC
|
||||||
|
|
||||||
# JSON5 files
|
# JSON5 files
|
||||||
- files:
|
- files:
|
||||||
- "*.json5"
|
- "*.json5"
|
||||||
extends:
|
extends:
|
||||||
- plugin:jsonc/recommended-with-json5
|
- plugin:jsonc/recommended-with-json5
|
||||||
parser: jsonc-eslint-parser
|
parser: jsonc-eslint-parser
|
||||||
parserOptions:
|
parserOptions:
|
||||||
jsonSyntax: JSON5
|
jsonSyntax: JSON5
|
||||||
|
|
|
@ -11,9 +11,9 @@ issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- dupl
|
- dupl
|
||||||
- gosec
|
- gosec
|
||||||
- goconst
|
- goconst
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- gosec
|
- gosec
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
# Lint directives.
|
# Lint directives.
|
||||||
lint:
|
lint:
|
||||||
# Linter rules.
|
# Linter rules.
|
||||||
|
|
|
@ -698,7 +698,7 @@ function BuildFileList() {
|
||||||
###########################
|
###########################
|
||||||
# Get the SCALA files #
|
# Get the SCALA files #
|
||||||
###########################
|
###########################
|
||||||
elif [ "${FILE_TYPE}" == "scala" ] || [ "${BASE_FILE}" == "??????" ]; then
|
elif [ "${FILE_TYPE}" == "scala" ] || [ "${FILE_TYPE}" == "sc" ] || [ "${BASE_FILE}" == "??????" ]; then
|
||||||
################################
|
################################
|
||||||
# Append the file to the array #
|
# Append the file to the array #
|
||||||
################################
|
################################
|
||||||
|
|
Loading…
Reference in a new issue