Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automation] Auto-update linters version, help and documentation #3086

Merged
merged 9 commits into from
Nov 12, 2023
76 changes: 76 additions & 0 deletions .automation/generated/flavors-stats.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 72 additions & 51 deletions .automation/generated/linter-helps.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"actionlint": "1.6.26",
"ansible-lint": "6.21.1",
"ansible-lint": "6.22.0",
"arm-ttk": "0.0.0",
"bandit": "1.7.5",
"bash-exec": "5.2.15",
"bicep_linter": "0.23.1",
"black": "23.10.1",
"black": "23.11.0",
"cfn-lint": "0.83.1",
"checkmake": "0.2.0",
"checkov": "3.0.24",
"checkov": "3.0.32",
"checkstyle": "10.12.4",
"chktex": "1.7.8",
"clippy": "0.1.73",
"clj-kondo": "2023.10.20",
"cljstyle": "0.15.0",
"coffeelint": "5.2.11",
"cpplint": "1.6.1",
"csharpier": "0.26.0",
"cspell": "7.3.8",
"csharpier": "0.26.1",
"cspell": "8.0.0",
"dartanalyzer": "0.0.0",
"devskim": "1.0.23",
"djlint": "1.34.0",
Expand All @@ -42,7 +42,7 @@
"isort": "5.12.0",
"jscpd": "3.5.10",
"jsonlint": "14.0.3",
"kics": "1.7.10",
"kics": "1.7.11",
"ktlint": "1.0.1",
"kubeconform": "0.6.3",
"kubescape": "2.9.0",
Expand All @@ -54,7 +54,7 @@
"markdown-table-formatter": "1.4.0",
"markdownlint": "0.37.0",
"misspell": "0.3.4",
"mypy": "1.6.1",
"mypy": "1.7.0",
"npm-groovy-lint": "12.0.1",
"npm-package-json-lint": "7.1.0",
"perlcritic": "1.152",
Expand All @@ -71,15 +71,15 @@
"psalm": "Psalm.5.15.0@",
"puppet-lint": "4.2.1",
"pylint": "3.0.2",
"pyright": "1.1.334",
"pyright": "1.1.335",
"raku": "2020.10",
"remark-lint": "14.0.2",
"revive": "1.3.4",
"rst-lint": "1.4.0",
"rstcheck": "6.2.0",
"rstfmt": "0.0.14",
"rubocop": "1.57.2",
"ruff": "0.1.4",
"ruff": "0.1.5",
"scalafix": "0.11.1",
"scss-lint": "0.60.0",
"secretlint": "7.0.7",
Expand All @@ -97,8 +97,8 @@
"sqlfluff": "2.3.5",
"standard": "17.1.0",
"stylelint": "15.11.0",
"swiftlint": "0.53.0",
"syft": "0.94.0",
"swiftlint": "0.54.0",
"syft": "0.96.0",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.6.3",
"terragrunt": "0.53.2",
Expand All @@ -112,5 +112,5 @@
"v8r": "2.1.0",
"vale": "2.29.5",
"xmllint": "21104",
"yamllint": "1.32.0"
"yamllint": "1.33.0"
}
2 changes: 1 addition & 1 deletion .automation/test/r/.lintr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
linters: with_defaults(object_usage_linter = NULL)
linters: linters_with_defaults(object_usage_linter = NULL)
25 changes: 19 additions & 6 deletions .automation/test/r/r_bad_1.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# assignment
# function_left_parentheses
# closed_curly
# brace_linter
# commas
# paren_brace
f = function (x,y = 1){}
Expand All @@ -12,32 +12,45 @@ f = function (x,y = 1){}

# cyclocomp
# equals_na
# brace_linter
# indentation
# infix_spaces
# line_length
# object_length
# object_name
# object_usage
# open_curly
someComplicatedFunctionWithALongCameCaseName <- function(x)
# T_and_F_symbol
someComplicatedFunctionWithALongCamelCaseName <- function(x)
{
y <- 1
if (1 > 2 && 2 > 3 && 3 > 4 && 4 > 5 && 5*10 > 6 && x == NA) {TRUE} else {FALSE}
y <- 1
if (1 > 2 && 2 > 3 && 3 > 4 && 4 > 5 && 5*10 > 6 && 5 > 6 && 6 > 7 && x == NA) {T} else F
}

# vector_logic
if (1 & 2) FALSE else TRUE

# function_brace
my_metric <- function(x)
sum(x) + prod(x)

# no_tab
# pipe_continuation
# seq_linter
# spaces_inside
# indentation
x <- 1:10
x[ 2]
1:length(x) %>% lapply(function(x) x*2) %>%
head()
head()

# single_quotes
message('single_quotes')

# spaces_left_parentheses
# trailing_whitespace
y <- 2 +(1:10)
# semicolon
x <- 42; y <- 2 +(1:10)

# trailing_blank_lines

Loading