fix
This commit is contained in:
@@ -97,7 +97,8 @@ def detect_files(config, root_dir):
|
|||||||
for lang in config["languages"]:
|
for lang in config["languages"]:
|
||||||
if "extentions" in config[lang]:
|
if "extentions" in config[lang]:
|
||||||
supported_extentions.extend(config[lang]["extentions"])
|
supported_extentions.extend(config[lang]["extentions"])
|
||||||
if "files" in lang:
|
if "files" in config[lang]:
|
||||||
|
print("adding files",config[lang])
|
||||||
supported_filename.extend(config[lang]["files"])
|
supported_filename.extend(config[lang]["files"])
|
||||||
for directory, subdir_list, file_list in os.walk(root_dir):
|
for directory, subdir_list, file_list in os.walk(root_dir):
|
||||||
for filename in file_list:
|
for filename in file_list:
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ spec:
|
|||||||
taskRef:
|
taskRef:
|
||||||
name: pylint
|
name: pylint
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: shared-workspace
|
- name: source
|
||||||
workspace: source
|
workspace: source
|
||||||
- name: lint-make
|
- name: lint-make
|
||||||
onError: continue
|
onError: continue
|
||||||
@@ -259,6 +259,12 @@ spec:
|
|||||||
params:
|
params:
|
||||||
- name: args
|
- name: args
|
||||||
value: $(tasks.detect-stages.results.kubelinter-args)
|
value: $(tasks.detect-stages.results.kubelinter-args)
|
||||||
|
- name: manifest
|
||||||
|
value: k8
|
||||||
|
- name: default_option
|
||||||
|
value: do-not-auto-add-defaults
|
||||||
|
- name: includelist
|
||||||
|
value: "no-extensions-v1beta,default-service-account,no-readiness-probe"
|
||||||
taskRef:
|
taskRef:
|
||||||
name: kube-linter
|
name: kube-linter
|
||||||
workspaces:
|
workspaces:
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ spec:
|
|||||||
taskRef:
|
taskRef:
|
||||||
name: pylint
|
name: pylint
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: shared-workspace
|
- name: source
|
||||||
workspace: source
|
workspace: source
|
||||||
- name: lint-make
|
- name: lint-make
|
||||||
onError: stopAndFail
|
onError: stopAndFail
|
||||||
@@ -243,6 +243,12 @@ spec:
|
|||||||
params:
|
params:
|
||||||
- name: args
|
- name: args
|
||||||
value: $(tasks.detect-stages.results.kubelinter-args)
|
value: $(tasks.detect-stages.results.kubelinter-args)
|
||||||
|
- name: manifest
|
||||||
|
value: k8
|
||||||
|
- name: default_option
|
||||||
|
value: do-not-auto-add-defaults
|
||||||
|
- name: includelist
|
||||||
|
value: "no-extensions-v1beta,default-service-account,no-readiness-probe"
|
||||||
taskRef:
|
taskRef:
|
||||||
name: kube-linter
|
name: kube-linter
|
||||||
workspaces:
|
workspaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user