alingse / sundrylint

three thousand real world bug linter
MIT License
5 stars 0 forks source link

call regexp.MustCompile with constant should be moved out of func #7

Closed alingse closed 4 months ago

alingse commented 4 months ago
const htmlTag = `\d+`

func ReplaceNumber(s string) string {
    r := regexp.MustCompile(htmlTag) // want `call regexp.MustCompile with constant should be moved out of func`
    return r.ReplaceAllString(s, "")
}

PRs or Issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/FiloSottile/mkcert

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392904950

Expand
  1. cert.go#L149 call regexp.MustCompile with constant should be moved out of func
  2. main.go#L216 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/FiloSottile/mkcert/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/nektos/act

Got total 18 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392903837

Expand
  1. pkg/container/docker_run.go#L636 call regexp.MustCompile with constant should be moved out of func
  2. pkg/container/linux_container_environment_extensions.go#L32 call regexp.MustCompile with constant should be moved out of func
  3. pkg/schema/schema.go#L366 call regexp.MustCompile with constant should be moved out of func
  4. pkg/model/planner.go#L187 call regexp.MustCompile with constant should be moved out of func
  5. pkg/model/workflow.go#L606 call regexp.MustCompile with constant should be moved out of func
  6. pkg/runner/action.go#L260 call regexp.MustCompile with constant should be moved out of func
  7. pkg/runner/action.go#L447 call regexp.MustCompile with constant should be moved out of func
  8. pkg/runner/action_composite.go#L27 call regexp.MustCompile with constant should be moved out of func
  9. pkg/runner/expression.go#L240 call regexp.MustCompile with constant should be moved out of func
  10. pkg/runner/expression.go#L269 call regexp.MustCompile with constant should be moved out of func
  11. pkg/runner/expression.go#L421 call regexp.MustCompile with constant should be moved out of func
  12. pkg/runner/reusable_workflow.go#L164 call regexp.MustCompile with constant should be moved out of func
  13. pkg/runner/run_context.go#L825 call regexp.MustCompile with constant should be moved out of func
  14. pkg/runner/step_action_remote.go#L278 call regexp.MustCompile with constant should be moved out of func
  15. cmd/root.go#L291 call regexp.MustCompile with constant should be moved out of func
  16. cmd/root.go#L370 call regexp.MustCompile with constant should be moved out of func
  17. pkg/runner/expression_test.go#L300 call regexp.MustCompile with constant should be moved out of func
  18. pkg/runner/run_context_test.go#L203 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/nektos/act/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/jesseduffield/lazygit

Got total 16 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392904916

Expand
  1. pkg/utils/color.go#L27 call regexp.MustCompile with constant should be moved out of func
  2. pkg/utils/color.go#L28 call regexp.MustCompile with constant should be moved out of func
  3. pkg/commands/oscommands/cmd_obj_runner.go#L389 call regexp.MustCompile with constant should be moved out of func
  4. pkg/commands/git_commands/branch_loader.go#L373 call regexp.MustCompile with constant should be moved out of func
  5. pkg/commands/git_commands/commit_loader.go#L221 call regexp.MustCompile with constant should be moved out of func
  6. pkg/commands/git_commands/flow.go#L38 call regexp.MustCompile with constant should be moved out of func
  7. pkg/commands/git_commands/stash_loader.go#L44 call regexp.MustCompile with constant should be moved out of func
  8. pkg/commands/git_commands/tag_loader.go#L39 call regexp.MustCompile with constant should be moved out of func
  9. pkg/commands/git_commands/version.go#L35 call regexp.MustCompile with constant should be moved out of func
  10. pkg/gui/types/version_number.go#L20 call regexp.MustCompile with constant should be moved out of func
  11. pkg/gui/controllers/helpers/fixup_helper.go#L184 call regexp.MustCompile with constant should be moved out of func
  12. pkg/gui/gui.go#L363 call regexp.MustCompile with constant should be moved out of func
  13. pkg/integration/clients/cli.go#L67 call regexp.MustCompile with constant should be moved out of func
  14. pkg/utils/regexp_test.go#L16 call regexp.MustCompile with constant should be moved out of func
  15. pkg/utils/regexp_test.go#L23 call regexp.MustCompile with constant should be moved out of func
  16. pkg/utils/regexp_test.go#L32 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/jesseduffield/lazygit/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/caddyserver/caddy

Got total 13 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392903561

Expand
  1. caddyconfig/httpcaddyfile/shorthands.go#L30 call regexp.MustCompile with constant should be moved out of func
  2. caddyconfig/httpcaddyfile/shorthands.go#L31 call regexp.MustCompile with constant should be moved out of func
  3. caddyconfig/httpcaddyfile/shorthands.go#L32 call regexp.MustCompile with constant should be moved out of func
  4. caddyconfig/httpcaddyfile/shorthands.go#L33 call regexp.MustCompile with constant should be moved out of func
  5. caddyconfig/httpcaddyfile/shorthands.go#L34 call regexp.MustCompile with constant should be moved out of func
  6. caddyconfig/httpcaddyfile/shorthands.go#L35 call regexp.MustCompile with constant should be moved out of func
  7. caddyconfig/httpcaddyfile/shorthands.go#L36 call regexp.MustCompile with constant should be moved out of func
  8. caddyconfig/httpcaddyfile/shorthands.go#L37 call regexp.MustCompile with constant should be moved out of func
  9. caddyconfig/httpcaddyfile/shorthands.go#L38 call regexp.MustCompile with constant should be moved out of func
  10. caddyconfig/httpcaddyfile/shorthands.go#L39 call regexp.MustCompile with constant should be moved out of func
  11. caddyconfig/httpcaddyfile/shorthands.go#L40 call regexp.MustCompile with constant should be moved out of func
  12. caddyconfig/httpcaddyfile/shorthands.go#L41 call regexp.MustCompile with constant should be moved out of func
  13. caddytest/integration/caddyfile_adapt_test.go#L25 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/caddyserver/caddy/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/evanw/esbuild

Got total 32 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392907824

Expand
  1. internal/bundler_tests/bundler_dce_test.go#L3162 call regexp.MustCompile with constant should be moved out of func
  2. internal/bundler_tests/bundler_default_test.go#L4515 call regexp.MustCompile with constant should be moved out of func
  3. internal/bundler_tests/bundler_default_test.go#L6996 call regexp.MustCompile with constant should be moved out of func
  4. internal/bundler_tests/bundler_default_test.go#L7054 call regexp.MustCompile with constant should be moved out of func
  5. internal/bundler_tests/bundler_default_test.go#L7074 call regexp.MustCompile with constant should be moved out of func
  6. internal/bundler_tests/bundler_default_test.go#L7102 call regexp.MustCompile with constant should be moved out of func
  7. internal/bundler_tests/bundler_default_test.go#L7127 call regexp.MustCompile with constant should be moved out of func
  8. internal/bundler_tests/bundler_default_test.go#L7147 call regexp.MustCompile with constant should be moved out of func
  9. internal/bundler_tests/bundler_default_test.go#L7148 call regexp.MustCompile with constant should be moved out of func
  10. internal/bundler_tests/bundler_default_test.go#L7175 call regexp.MustCompile with constant should be moved out of func
  11. internal/bundler_tests/bundler_default_test.go#L7220 call regexp.MustCompile with constant should be moved out of func
  12. internal/bundler_tests/bundler_default_test.go#L7248 call regexp.MustCompile with constant should be moved out of func
  13. internal/bundler_tests/bundler_default_test.go#L7274 call regexp.MustCompile with constant should be moved out of func
  14. internal/bundler_tests/bundler_default_test.go#L7297 call regexp.MustCompile with constant should be moved out of func
  15. internal/bundler_tests/bundler_default_test.go#L7319 call regexp.MustCompile with constant should be moved out of func
  16. internal/bundler_tests/bundler_default_test.go#L7427 call regexp.MustCompile with constant should be moved out of func
  17. internal/bundler_tests/bundler_default_test.go#L7444 call regexp.MustCompile with constant should be moved out of func
  18. internal/bundler_tests/bundler_default_test.go#L7462 call regexp.MustCompile with constant should be moved out of func
  19. internal/bundler_tests/bundler_default_test.go#L7484 call regexp.MustCompile with constant should be moved out of func
  20. internal/bundler_tests/bundler_default_test.go#L7510 call regexp.MustCompile with constant should be moved out of func
  21. internal/bundler_tests/bundler_default_test.go#L7537 call regexp.MustCompile with constant should be moved out of func
  22. internal/bundler_tests/bundler_default_test.go#L7565 call regexp.MustCompile with constant should be moved out of func
  23. internal/bundler_tests/bundler_default_test.go#L7614 call regexp.MustCompile with constant should be moved out of func
  24. internal/bundler_tests/bundler_default_test.go#L7662 call regexp.MustCompile with constant should be moved out of func
  25. internal/bundler_tests/bundler_default_test.go#L7704 call regexp.MustCompile with constant should be moved out of func
  26. internal/bundler_tests/bundler_default_test.go#L7736 call regexp.MustCompile with constant should be moved out of func
  27. internal/bundler_tests/bundler_ts_test.go#L2746 call regexp.MustCompile with constant should be moved out of func
  28. internal/bundler_tests/bundler_ts_test.go#L2775 call regexp.MustCompile with constant should be moved out of func
  29. internal/bundler_tests/bundler_ts_test.go#L2803 call regexp.MustCompile with constant should be moved out of func
  30. internal/bundler_tests/bundler_ts_test.go#L2832 call regexp.MustCompile with constant should be moved out of func
  31. internal/bundler_tests/bundler_ts_test.go#L2861 call regexp.MustCompile with constant should be moved out of func
  32. internal/bundler_tests/bundler_ts_test.go#L2889 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/evanw/esbuild/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/go-gorm/gorm

Got total 3 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392908028

Expand
  1. logger/sql_test.go#L74 call regexp.MustCompile with constant should be moved out of func
  2. logger/sql_test.go#L80 call regexp.MustCompile with constant should be moved out of func
  3. logger/sql_test.go#L86 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/go-gorm/gorm/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/ollama/ollama

Got total 5 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392902626

Expand
  1. runner/llamarunner/runner.go#L172 call regexp.MustCompile with constant should be moved out of func
  2. runner/llamarunner/runner.go#L947 call regexp.MustCompile with constant should be moved out of func
  3. runner/ollamarunner/runner.go#L157 call regexp.MustCompile with constant should be moved out of func
  4. discover/cuda_common.go#L39 call regexp.MustCompile with constant should be moved out of func
  5. discover/gpu_linux.go#L118 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/ollama/ollama/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/rclone/rclone

Got total 20 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392905992

Expand
  1. fs/operations/check.go#L577 call regexp.MustCompile with constant should be moved out of func
  2. backend/chunker/chunker.go#L520 call regexp.MustCompile with constant should be moved out of func
  3. backend/onedrive/onedrive.go#L674 call regexp.MustCompile with constant should be moved out of func
  4. backend/qingstor/qingstor.go#L225 call regexp.MustCompile with constant should be moved out of func
  5. backend/uptobox/uptobox.go#L228 call regexp.MustCompile with constant should be moved out of func
  6. backend/chunker/chunker_internal_test.go#L687 call regexp.MustCompile with constant should be moved out of func
  7. backend/chunker/chunker_internal_test.go#L688 call regexp.MustCompile with constant should be moved out of func
  8. backend/chunker/chunker_internal_test.go#L691 call regexp.MustCompile with constant should be moved out of func
  9. backend/chunker/chunker_internal_test.go#L692 call regexp.MustCompile with constant should be moved out of func
  10. cmd/bisync/bisync_test.go#L1595 call regexp.MustCompile with constant should be moved out of func
  11. cmd/bisync/bisync_test.go#L1667 call regexp.MustCompile with constant should be moved out of func
  12. cmd/bisync/bisync_test.go#L1698 call regexp.MustCompile with constant should be moved out of func
  13. cmd/selfupdate/selfupdate_test.go#L59 call regexp.MustCompile with constant should be moved out of func
  14. cmd/selfupdate/selfupdate_test.go#L111 call regexp.MustCompile with constant should be moved out of func
  15. cmdtest/environment_test.go#L353 call regexp.MustCompile with constant should be moved out of func
  16. fs/operations/operations_test.go#L165 call regexp.MustCompile with constant should be moved out of func
  17. fs/operations/operations_test.go#L172 call regexp.MustCompile with constant should be moved out of func
  18. fs/rc/rcserver/rcserver_test.go#L727 call regexp.MustCompile with constant should be moved out of func
  19. fs/rc/rcserver/rcserver_test.go#L759 call regexp.MustCompile with constant should be moved out of func
  20. fs/rc/rcserver/rcserver_test.go#L766 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/rclone/rclone/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/halfrost/LeetCode-Go

Got total 6 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392908431

Expand
  1. ctl/render.go#L139 call regexp.MustCompile with constant should be moved out of func
  2. ctl/render.go#L144 call regexp.MustCompile with constant should be moved out of func
  3. ctl/render.go#L149 call regexp.MustCompile with constant should be moved out of func
  4. ctl/render.go#L154 call regexp.MustCompile with constant should be moved out of func
  5. ctl/render.go#L256 call regexp.MustCompile with constant should be moved out of func
  6. ctl/render.go#L358 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/halfrost/LeetCode-Go/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/ethereum/go-ethereum

Got total 4 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392903359

Expand
  1. accounts/abi/bind/bind.go#L317 call regexp.MustCompile with constant should be moved out of func
  2. internal/debug/api.go#L204 call regexp.MustCompile with constant should be moved out of func
  3. internal/debug/api.go#L205 call regexp.MustCompile with constant should be moved out of func
  4. cmd/abigen/main.go#L215 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/ethereum/go-ethereum/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/cli/cli

Got total 68 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392907497

Expand
  1. internal/run/stub.go#L145 call regexp.MustCompile with constant should be moved out of func
  2. pkg/cmd/attestation/verify/verify.go#L307 call regexp.MustCompile with constant should be moved out of func
  3. pkg/cmd/attestation/verify/verify.go#L308 call regexp.MustCompile with constant should be moved out of func
  4. pkg/cmd/gist/create/create.go#L233 call regexp.MustCompile with constant should be moved out of func
  5. pkg/cmd/pr/shared/finder.go#L157 call regexp.MustCompile with constant should be moved out of func
  6. pkg/cmd/pr/diff/diff.go#L295 call regexp.MustCompile with constant should be moved out of func
  7. pkg/cmd/pr/status/status.go#L110 call regexp.MustCompile with constant should be moved out of func
  8. pkg/cmd/release/upload/upload.go#L139 call regexp.MustCompile with constant should be moved out of func
  9. pkg/cmd/release/upload/upload.go#L142 call regexp.MustCompile with constant should be moved out of func
  10. pkg/cmd/version/version.go#L39 call regexp.MustCompile with constant should be moved out of func
  11. pkg/cmd/root/alias.go#L82 call regexp.MustCompile with constant should be moved out of func
  12. pkg/cmd/auth/login/login_test.go#L547 call regexp.MustCompile with constant should be moved out of func
  13. pkg/cmd/auth/login/login_test.go#L590 call regexp.MustCompile with constant should be moved out of func
  14. pkg/cmd/auth/login/login_test.go#L624 call regexp.MustCompile with constant should be moved out of func
  15. pkg/cmd/auth/login/login_test.go#L654 call regexp.MustCompile with constant should be moved out of func
  16. pkg/cmd/auth/login/login_test.go#L684 call regexp.MustCompile with constant should be moved out of func
  17. pkg/cmd/auth/login/login_test.go#L728 call regexp.MustCompile with constant should be moved out of func
  18. pkg/cmd/auth/logout/logout_test.go#L160 call regexp.MustCompile with constant should be moved out of func
  19. pkg/cmd/auth/logout/logout_test.go#L182 call regexp.MustCompile with constant should be moved out of func
  20. pkg/cmd/auth/logout/logout_test.go#L194 call regexp.MustCompile with constant should be moved out of func
  21. pkg/cmd/auth/logout/logout_test.go#L212 call regexp.MustCompile with constant should be moved out of func
  22. pkg/cmd/auth/logout/logout_test.go#L230 call regexp.MustCompile with constant should be moved out of func
  23. pkg/cmd/auth/logout/logout_test.go#L246 call regexp.MustCompile with constant should be moved out of func
  24. pkg/cmd/auth/logout/logout_test.go#L308 call regexp.MustCompile with constant should be moved out of func
  25. pkg/cmd/auth/logout/logout_test.go#L391 call regexp.MustCompile with constant should be moved out of func
  26. pkg/cmd/auth/logout/logout_test.go#L409 call regexp.MustCompile with constant should be moved out of func
  27. pkg/cmd/auth/logout/logout_test.go#L425 call regexp.MustCompile with constant should be moved out of func
  28. pkg/cmd/auth/logout/logout_test.go#L503 call regexp.MustCompile with constant should be moved out of func
  29. pkg/cmd/gist/list/list_test.go#L396 call regexp.MustCompile with constant should be moved out of func
  30. pkg/cmd/gist/list/list_test.go#L446 call regexp.MustCompile with constant should be moved out of func
  31. pkg/cmd/gist/list/list_test.go#L497 call regexp.MustCompile with constant should be moved out of func
  32. pkg/cmd/gist/list/list_test.go#L556 call regexp.MustCompile with constant should be moved out of func
  33. pkg/cmd/issue/delete/delete_test.go#L90 call regexp.MustCompile with constant should be moved out of func
  34. pkg/cmd/issue/delete/delete_test.go#L122 call regexp.MustCompile with constant should be moved out of func
  35. pkg/cmd/issue/reopen/reopen_test.go#L84 call regexp.MustCompile with constant should be moved out of func
  36. pkg/cmd/issue/reopen/reopen_test.go#L109 call regexp.MustCompile with constant should be moved out of func
  37. pkg/cmd/issue/reopen/reopen_test.go#L185 call regexp.MustCompile with constant should be moved out of func
  38. pkg/cmd/issue/status/status_test.go#L75 call regexp.MustCompile with constant should be moved out of func
  39. pkg/cmd/issue/status/status_test.go#L76 call regexp.MustCompile with constant should be moved out of func
  40. pkg/cmd/issue/status/status_test.go#L77 call regexp.MustCompile with constant should be moved out of func
  41. pkg/cmd/issue/status/status_test.go#L78 call regexp.MustCompile with constant should be moved out of func
  42. pkg/cmd/pr/create/regexp_writer_test.go#L32 call regexp.MustCompile with constant should be moved out of func
  43. pkg/cmd/pr/create/regexp_writer_test.go#L45 call regexp.MustCompile with constant should be moved out of func
  44. pkg/cmd/pr/create/regexp_writer_test.go#L58 call regexp.MustCompile with constant should be moved out of func
  45. pkg/cmd/pr/create/regexp_writer_test.go#L71 call regexp.MustCompile with constant should be moved out of func
  46. pkg/cmd/pr/create/regexp_writer_test.go#L84 call regexp.MustCompile with constant should be moved out of func
  47. pkg/cmd/pr/create/regexp_writer_test.go#L97 call regexp.MustCompile with constant should be moved out of func
  48. pkg/cmd/pr/create/regexp_writer_test.go#L117 call regexp.MustCompile with constant should be moved out of func
  49. pkg/cmd/pr/create/regexp_writer_test.go#L130 call regexp.MustCompile with constant should be moved out of func
  50. pkg/cmd/pr/merge/merge_test.go#L340 call regexp.MustCompile with constant should be moved out of func
  51. pkg/cmd/pr/merge/merge_test.go#L521 call regexp.MustCompile with constant should be moved out of func
  52. pkg/cmd/pr/merge/merge_test.go#L562 call regexp.MustCompile with constant should be moved out of func
  53. pkg/cmd/pr/merge/merge_test.go#L604 call regexp.MustCompile with constant should be moved out of func
  54. pkg/cmd/pr/merge/merge_test.go#L1036 call regexp.MustCompile with constant should be moved out of func
  55. pkg/cmd/pr/status/status_test.go#L112 call regexp.MustCompile with constant should be moved out of func
  56. pkg/cmd/pr/status/status_test.go#L113 call regexp.MustCompile with constant should be moved out of func
  57. pkg/cmd/pr/status/status_test.go#L114 call regexp.MustCompile with constant should be moved out of func
  58. pkg/cmd/pr/status/status_test.go#L115 call regexp.MustCompile with constant should be moved out of func
  59. pkg/cmd/pr/status/status_test.go#L209 call regexp.MustCompile with constant should be moved out of func
  60. pkg/cmd/pr/status/status_test.go#L216 call regexp.MustCompile with constant should be moved out of func
  61. pkg/cmd/pr/status/status_test.go#L217 call regexp.MustCompile with constant should be moved out of func
  62. pkg/cmd/pr/status/status_test.go#L245 call regexp.MustCompile with constant should be moved out of func
  63. pkg/cmd/pr/status/status_test.go#L262 call regexp.MustCompile with constant should be moved out of func
  64. pkg/cmd/pr/status/status_test.go#L287 call regexp.MustCompile with constant should be moved out of func
  65. pkg/cmd/pr/status/status_test.go#L312 call regexp.MustCompile with constant should be moved out of func
  66. pkg/cmd/pr/status/status_test.go#L337 call regexp.MustCompile with constant should be moved out of func
  67. pkg/cmd/pr/status/status_test.go#L362 call regexp.MustCompile with constant should be moved out of func
  68. pkg/cmd/pr/view/view_test.go#L620 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/cli/cli/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/minio/minio

Got total 3 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392905274

Expand
  1. cmd/admin-handlers.go#L2715 call regexp.MustCompile with constant should be moved out of func
  2. cmd/admin-handlers.go#L2741 call regexp.MustCompile with constant should be moved out of func
  3. docs/debugging/xl-meta/main.go#L71 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/minio/minio/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/jesseduffield/lazydocker

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392908951

Expand
  1. pkg/utils/utils.go#L163 call regexp.MustCompile with constant should be moved out of func
  2. pkg/cheatsheet/validate.go#L67 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/jesseduffield/lazydocker/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/prometheus/prometheus

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392903135

Expand
  1. cmd/prometheus/main.go#L303 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/prometheus/prometheus/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/docker/compose

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392908294

Expand
  1. pkg/e2e/build_test.go#L386 call regexp.MustCompile with constant should be moved out of func
  2. pkg/e2e/build_test.go#L500 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/docker/compose/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/pocketbase/pocketbase

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392908829

Expand
  1. tools/security/random_test.go#L67 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/pocketbase/pocketbase/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/hashicorp/terraform

Got total 10 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392905724

Expand
  1. internal/states/statefile/version2_upgrade.go#L61 call regexp.MustCompile with constant should be moved out of func
  2. internal/states/statefile/version2_upgrade.go#L62 call regexp.MustCompile with constant should be moved out of func
  3. internal/registry/test/mock_registry.go#L119 call regexp.MustCompile with constant should be moved out of func
  4. internal/registry/test/mock_registry.go#L140 call regexp.MustCompile with constant should be moved out of func
  5. internal/registry/test/mock_registry.go#L177 call regexp.MustCompile with constant should be moved out of func
  6. internal/command/init_test.go#L47 call regexp.MustCompile with constant should be moved out of func
  7. internal/command/state_test.go#L39 call regexp.MustCompile with constant should be moved out of func
  8. internal/command/test_test.go#L2793 call regexp.MustCompile with constant should be moved out of func
  9. internal/command/test_test.go#L2795 call regexp.MustCompile with constant should be moved out of func
  10. internal/getproviders/registry_source_test.go#L199 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/hashicorp/terraform/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/gofiber/fiber

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392910418

Expand
  1. app_test.go#L224 call regexp.MustCompile with constant should be moved out of func
  2. client/request_test.go#L1323 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/gofiber/fiber/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/beego/beego

Got total 11 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392909875

Expand
  1. core/utils/utils.go#L22 call regexp.MustCompile with constant should be moved out of func
  2. server/web/templatefunc.go#L53 call regexp.MustCompile with constant should be moved out of func
  3. server/web/templatefunc.go#L57 call regexp.MustCompile with constant should be moved out of func
  4. server/web/templatefunc.go#L61 call regexp.MustCompile with constant should be moved out of func
  5. server/web/templatefunc.go#L64 call regexp.MustCompile with constant should be moved out of func
  6. server/web/templatefunc.go#L67 call regexp.MustCompile with constant should be moved out of func
  7. server/web/tree.go#L498 call regexp.MustCompile with constant should be moved out of func
  8. core/validation/validation_test.go#L184 call regexp.MustCompile with constant should be moved out of func
  9. core/validation/validation_test.go#L187 call regexp.MustCompile with constant should be moved out of func
  10. core/validation/validation_test.go#L195 call regexp.MustCompile with constant should be moved out of func
  11. core/validation/validation_test.go#L198 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/beego/beego/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/labstack/echo

Got total 10 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392912422

Expand
  1. middleware/middleware_test.go#L77 call regexp.MustCompile with constant should be moved out of func
  2. middleware/middleware_test.go#L78 call regexp.MustCompile with constant should be moved out of func
  3. middleware/middleware_test.go#L79 call regexp.MustCompile with constant should be moved out of func
  4. middleware/proxy_test.go#L324 call regexp.MustCompile with constant should be moved out of func
  5. middleware/proxy_test.go#L325 call regexp.MustCompile with constant should be moved out of func
  6. middleware/rewrite_test.go#L191 call regexp.MustCompile with constant should be moved out of func
  7. middleware/rewrite_test.go#L192 call regexp.MustCompile with constant should be moved out of func
  8. middleware/rewrite_test.go#L234 call regexp.MustCompile with constant should be moved out of func
  9. middleware/rewrite_test.go#L235 call regexp.MustCompile with constant should be moved out of func
  10. middleware/rewrite_test.go#L236 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/labstack/echo/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/v2fly/v2ray-core

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392911654

Expand
  1. infra/vprotogen/main.go#L111 call regexp.MustCompile with constant should be moved out of func
  2. infra/vprotogen/main.go#L123 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/v2fly/v2ray-core/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/stretchr/testify

Got total 6 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392912909

Expand
  1. assert/assertions_test.go#L3143 call regexp.MustCompile with constant should be moved out of func
  2. assert/assertions_test.go#L3144 call regexp.MustCompile with constant should be moved out of func
  3. mock/mock_test.go#L2055 call regexp.MustCompile with constant should be moved out of func
  4. mock/mock_test.go#L2057 call regexp.MustCompile with constant should be moved out of func
  5. mock/mock_test.go#L2088 call regexp.MustCompile with constant should be moved out of func
  6. mock/mock_test.go#L2105 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/stretchr/testify/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/traefik/traefik

Got total 10 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392904277

Expand
  1. pkg/provider/kubernetes/k8s/parser.go#L15 call regexp.MustCompile with constant should be moved out of func
  2. pkg/config/kv/kv_node.go#L18 call regexp.MustCompile with constant should be moved out of func
  3. pkg/config/kv/kv_node.go#L78 call regexp.MustCompile with constant should be moved out of func
  4. pkg/provider/traefik/internal.go#L190 call regexp.MustCompile with constant should be moved out of func
  5. integration/conf_throttling_test.go#L84 call regexp.MustCompile with constant should be moved out of func
  6. integration/integration_test.go#L166 call regexp.MustCompile with constant should be moved out of func
  7. integration/k8s_test.go#L198 call regexp.MustCompile with constant should be moved out of func
  8. integration/k8s_test.go#L202 call regexp.MustCompile with constant should be moved out of func
  9. integration/simple_test.go#L1449 call regexp.MustCompile with constant should be moved out of func
  10. pkg/middlewares/passtlsclientcert/pass_tls_client_cert_test.go#L662 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/traefik/traefik/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/go-gitea/gitea

Got total 22 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392906210

Expand
  1. modules/setting/markup.go#L152 call regexp.MustCompile with constant should be moved out of func
  2. models/db/sequence.go#L56 call regexp.MustCompile with constant should be moved out of func
  3. modules/references/references.go#L147 call regexp.MustCompile with constant should be moved out of func
  4. modules/markup/html.go#L114 call regexp.MustCompile with constant should be moved out of func
  5. modules/markup/sanitizer.go#L32 call regexp.MustCompile with constant should be moved out of func
  6. modules/markup/sanitizer_default.go#L26 call regexp.MustCompile with constant should be moved out of func
  7. modules/markup/sanitizer_default.go#L30 call regexp.MustCompile with constant should be moved out of func
  8. modules/markup/sanitizer_default.go#L48 call regexp.MustCompile with constant should be moved out of func
  9. modules/markup/sanitizer_description.go#L28 call regexp.MustCompile with constant should be moved out of func
  10. models/migrations/base/db.go#L379 call regexp.MustCompile with constant should be moved out of func
  11. models/migrations/v1_14/v175.go#L37 call regexp.MustCompile with constant should be moved out of func
  12. modules/repository/license.go#L107 call regexp.MustCompile with constant should be moved out of func
  13. routers/api/packages/api.go#L286 call regexp.MustCompile with constant should be moved out of func
  14. routers/api/packages/api.go#L287 call regexp.MustCompile with constant should be moved out of func
  15. routers/api/packages/api.go#L546 call regexp.MustCompile with constant should be moved out of func
  16. routers/api/packages/api.go#L547 call regexp.MustCompile with constant should be moved out of func
  17. routers/api/packages/api.go#L548 call regexp.MustCompile with constant should be moved out of func
  18. routers/api/packages/api.go#L549 call regexp.MustCompile with constant should be moved out of func
  19. modules/charset/escape_test.go#L160 call regexp.MustCompile with constant should be moved out of func
  20. services/mailer/mail_test.go#L100 call regexp.MustCompile with constant should be moved out of func
  21. tests/integration/api_repo_archive_test.go#L44 call regexp.MustCompile with constant should be moved out of func
  22. tests/integration/api_repo_archive_test.go#L84 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/go-gitea/gitea/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/iawia002/lux

Got total 24 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392913888

Expand
  1. extractors/bitchute/bitchute.go#L31 call regexp.MustCompile with constant should be moved out of func
  2. extractors/bitchute/bitchute.go#L63 call regexp.MustCompile with constant should be moved out of func
  3. extractors/bitchute/bitchute.go#L70 call regexp.MustCompile with constant should be moved out of func
  4. extractors/douyin/douyin.go#L207 call regexp.MustCompile with constant should be moved out of func
  5. extractors/facebook/facebook.go#L39 call regexp.MustCompile with constant should be moved out of func
  6. extractors/facebook/facebook.go#L42 call regexp.MustCompile with constant should be moved out of func
  7. extractors/instagram/instagram.go#L82 call regexp.MustCompile with constant should be moved out of func
  8. extractors/instagram/instagram.go#L130 call regexp.MustCompile with constant should be moved out of func
  9. extractors/ixigua/ixigua.go#L72 call regexp.MustCompile with constant should be moved out of func
  10. extractors/kuaishou/kuaishou.go#L68 call regexp.MustCompile with constant should be moved out of func
  11. extractors/kuaishou/kuaishou.go#L71 call regexp.MustCompile with constant should be moved out of func
  12. extractors/mgtv/mgtv.go#L93 call regexp.MustCompile with constant should be moved out of func
  13. extractors/mgtv/mgtv.go#L94 call regexp.MustCompile with constant should be moved out of func
  14. extractors/mgtv/mgtv.go#L95 call regexp.MustCompile with constant should be moved out of func
  15. extractors/odysee/odysee.go#L58 call regexp.MustCompile with constant should be moved out of func
  16. extractors/pinterest/pinterest.go#L34 call regexp.MustCompile with constant should be moved out of func
  17. extractors/pinterest/pinterest.go#L44 call regexp.MustCompile with constant should be moved out of func
  18. extractors/pornhub/pornhub.go#L99 call regexp.MustCompile with constant should be moved out of func
  19. extractors/tiktok/tiktok.go#L34 call regexp.MustCompile with constant should be moved out of func
  20. extractors/tiktok/tiktok.go#L44 call regexp.MustCompile with constant should be moved out of func
  21. extractors/tiktok/tiktok.go#L46 call regexp.MustCompile with constant should be moved out of func
  22. extractors/xinpianchang/xinpianchang.go#L48 call regexp.MustCompile with constant should be moved out of func
  23. extractors/xinpianchang/xinpianchang.go#L49 call regexp.MustCompile with constant should be moved out of func
  24. extractors/zingmp3/zingmp3.go#L50 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/iawia002/lux/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/helm/helm

Got total 5 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392912029

Expand
  1. pkg/downloader/manager.go#L377 call regexp.MustCompile with constant should be moved out of func
  2. pkg/plugin/installer/http_installer.go#L120 call regexp.MustCompile with constant should be moved out of func
  3. cmd/helm/release_testing.go#L59 call regexp.MustCompile with constant should be moved out of func
  4. cmd/helm/template.go#L149 call regexp.MustCompile with constant should be moved out of func
  5. pkg/chartutil/save_test.go#L136 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/helm/helm/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/redis/go-redis

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392922486

Expand
  1. command.go#L5495 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/redis/go-redis/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/go-kit/kit

Got total 3 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392913619

Expand
  1. metrics/influx/influx_test.go#L19 call regexp.MustCompile with constant should be moved out of func
  2. metrics/influx/influx_test.go#L35 call regexp.MustCompile with constant should be moved out of func
  3. metrics/influx/influx_test.go#L51 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/go-kit/kit/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/gohugoio/hugo

Got total 23 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392902334

Expand
  1. parser/metadecoders/decoder.go#L233 call regexp.MustCompile with constant should be moved out of func
  2. minifiers/minifiers.go#L85 call regexp.MustCompile with constant should be moved out of func
  3. minifiers/minifiers.go#L88 call regexp.MustCompile with constant should be moved out of func
  4. resources/resource_transformers/babel/babel.go#L225 call regexp.MustCompile with constant should be moved out of func
  5. resources/resource_transformers/js/build.go#L63 call regexp.MustCompile with constant should be moved out of func
  6. hugolib/integrationtest_builder.go#L631 call regexp.MustCompile with constant should be moved out of func
  7. commands/import.go#L214 call regexp.MustCompile with constant should be moved out of func
  8. commands/import.go#L215 call regexp.MustCompile with constant should be moved out of func
  9. commands/import.go#L216 call regexp.MustCompile with constant should be moved out of func
  10. commands/import.go#L228 call regexp.MustCompile with constant should be moved out of func
  11. commands/import.go#L229 call regexp.MustCompile with constant should be moved out of func
  12. commands/import.go#L281 call regexp.MustCompile with constant should be moved out of func
  13. commands/import.go#L507 call regexp.MustCompile with constant should be moved out of func
  14. commands/import.go#L524 call regexp.MustCompile with constant should be moved out of func
  15. commands/import.go#L568 call regexp.MustCompile with constant should be moved out of func
  16. commands/server.go#L611 call regexp.MustCompile with constant should be moved out of func
  17. codegen/methods.go#L179 call regexp.MustCompile with constant should be moved out of func
  18. codegen/methods.go#L180 call regexp.MustCompile with constant should be moved out of func
  19. common/hstrings/strings_test.go#L54 call regexp.MustCompile with constant should be moved out of func
  20. hugolib/testhelpers_test.go#L718 call regexp.MustCompile with constant should be moved out of func
  21. resources/page/permalinks_test.go#L105 call regexp.MustCompile with constant should be moved out of func
  22. resources/resource_transformers/cssjs/inline_imports_test.go#L116 call regexp.MustCompile with constant should be moved out of func
  23. tpl/partials/partials_integration_test.go#L173 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/gohugoio/hugo/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/antonmedv/fx

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392925105

Expand
  1. internal/theme/theme.go#L329 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/antonmedv/fx/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/istio/istio

Got total 38 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392907324

Expand
  1. tools/istio-iptables/pkg/dependencies/implementation.go#L180 call regexp.MustCompile with constant should be moved out of func
  2. istioctl/pkg/describe/describe.go#L715 call regexp.MustCompile with constant should be moved out of func
  3. istioctl/pkg/describe/describe.go#L761 call regexp.MustCompile with constant should be moved out of func
  4. istioctl/pkg/describe/describe.go#L813 call regexp.MustCompile with constant should be moved out of func
  5. istioctl/pkg/proxyconfig/proxyconfig.go#L797 call regexp.MustCompile with constant should be moved out of func
  6. istioctl/pkg/ztunnelconfig/ztunnelconfig.go#L461 call regexp.MustCompile with constant should be moved out of func
  7. pkg/test/framework/components/istio/cleanup.go#L218 call regexp.MustCompile with constant should be moved out of func
  8. tools/docker-builder/docker.go#L178 call regexp.MustCompile with constant should be moved out of func
  9. istioctl/pkg/dashboard/dashboard_test.go#L31 call regexp.MustCompile with constant should be moved out of func
  10. istioctl/pkg/dashboard/dashboard_test.go#L35 call regexp.MustCompile with constant should be moved out of func
  11. istioctl/pkg/dashboard/dashboard_test.go#L40 call regexp.MustCompile with constant should be moved out of func
  12. istioctl/pkg/dashboard/dashboard_test.go#L45 call regexp.MustCompile with constant should be moved out of func
  13. istioctl/pkg/dashboard/dashboard_test.go#L50 call regexp.MustCompile with constant should be moved out of func
  14. istioctl/pkg/dashboard/dashboard_test.go#L55 call regexp.MustCompile with constant should be moved out of func
  15. istioctl/pkg/dashboard/dashboard_test.go#L85 call regexp.MustCompile with constant should be moved out of func
  16. istioctl/pkg/dashboard/dashboard_test.go#L90 call regexp.MustCompile with constant should be moved out of func
  17. istioctl/pkg/dashboard/dashboard_test.go#L95 call regexp.MustCompile with constant should be moved out of func
  18. istioctl/pkg/dashboard/dashboard_test.go#L100 call regexp.MustCompile with constant should be moved out of func
  19. istioctl/pkg/dashboard/dashboard_test.go#L105 call regexp.MustCompile with constant should be moved out of func
  20. istioctl/pkg/dashboard/dashboard_test.go#L110 call regexp.MustCompile with constant should be moved out of func
  21. istioctl/pkg/kubeinject/kubeinject_test.go#L30 call regexp.MustCompile with constant should be moved out of func
  22. istioctl/pkg/kubeinject/kubeinject_test.go#L35 call regexp.MustCompile with constant should be moved out of func
  23. istioctl/pkg/metrics/metrics_test.go#L44 call regexp.MustCompile with constant should be moved out of func
  24. istioctl/pkg/metrics/metrics_test.go#L66 call regexp.MustCompile with constant should be moved out of func
  25. istioctl/pkg/validate/validate_test.go#L838 call regexp.MustCompile with constant should be moved out of func
  26. istioctl/pkg/validate/validate_test.go#L845 call regexp.MustCompile with constant should be moved out of func
  27. istioctl/pkg/validate/validate_test.go#L852 call regexp.MustCompile with constant should be moved out of func
  28. istioctl/pkg/validate/validate_test.go#L868 call regexp.MustCompile with constant should be moved out of func
  29. istioctl/pkg/validate/validate_test.go#L874 call regexp.MustCompile with constant should be moved out of func
  30. pilot/pkg/model/push_context_test.go#L159 call regexp.MustCompile with constant should be moved out of func
  31. pkg/bootstrap/instance_test.go#L660 call regexp.MustCompile with constant should be moved out of func
  32. pkg/bootstrap/instance_test.go#L666 call regexp.MustCompile with constant should be moved out of func
  33. pkg/bootstrap/instance_test.go#L674 call regexp.MustCompile with constant should be moved out of func
  34. pkg/bootstrap/instance_test.go#L682 call regexp.MustCompile with constant should be moved out of func
  35. pkg/bootstrap/instance_test.go#L686 call regexp.MustCompile with constant should be moved out of func
  36. pkg/version/cobra_test.go#L266 call regexp.MustCompile with constant should be moved out of func
  37. pkg/version/cobra_test.go#L272 call regexp.MustCompile with constant should be moved out of func
  38. tests/fuzz/regression_test.go#L163 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/istio/istio/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/authelia/authelia

Got total 138 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392922770

Expand
  1. internal/middlewares/password_policy.go#L28 call regexp.MustCompile with constant should be moved out of func
  2. internal/middlewares/password_policy.go#L32 call regexp.MustCompile with constant should be moved out of func
  3. internal/middlewares/password_policy.go#L36 call regexp.MustCompile with constant should be moved out of func
  4. internal/middlewares/password_policy.go#L40 call regexp.MustCompile with constant should be moved out of func
  5. internal/suites/kubernetes.go#L87 call regexp.MustCompile with constant should be moved out of func
  6. internal/authentication/file_user_provider_test.go#L497 call regexp.MustCompile with constant should be moved out of func
  7. internal/authorization/authorizer_test.go#L289 call regexp.MustCompile with constant should be moved out of func
  8. internal/authorization/authorizer_test.go#L302 call regexp.MustCompile with constant should be moved out of func
  9. internal/configuration/provider_test.go#L766 call regexp.MustCompile with constant should be moved out of func
  10. internal/configuration/provider_test.go#L767 call regexp.MustCompile with constant should be moved out of func
  11. internal/configuration/provider_test.go#L1219 call regexp.MustCompile with constant should be moved out of func
  12. internal/configuration/provider_test.go#L1220 call regexp.MustCompile with constant should be moved out of func
  13. internal/configuration/provider_test.go#L1221 call regexp.MustCompile with constant should be moved out of func
  14. internal/configuration/provider_test.go#L1222 call regexp.MustCompile with constant should be moved out of func
  15. internal/configuration/provider_test.go#L1223 call regexp.MustCompile with constant should be moved out of func
  16. internal/configuration/provider_test.go#L1251 call regexp.MustCompile with constant should be moved out of func
  17. internal/configuration/provider_test.go#L1265 call regexp.MustCompile with constant should be moved out of func
  18. internal/configuration/decode_hooks_test.go#L862 call regexp.MustCompile with constant should be moved out of func
  19. internal/configuration/decode_hooks_test.go#L868 call regexp.MustCompile with constant should be moved out of func
  20. internal/configuration/decode_hooks_test.go#L977 call regexp.MustCompile with constant should be moved out of func
  21. internal/configuration/decode_hooks_test.go#L983 call regexp.MustCompile with constant should be moved out of func
  22. internal/configuration/schema/types_test.go#L306 call regexp.MustCompile with constant should be moved out of func
  23. internal/configuration/schema/types_test.go#L312 call regexp.MustCompile with constant should be moved out of func
  24. internal/configuration/validator/access_control_test.go#L39 call regexp.MustCompile with constant should be moved out of func
  25. internal/handlers/handler_authz_impl_legacy_test.go#L575 call regexp.MustCompile with constant should be moved out of func
  26. internal/handlers/handler_register_webauthn_test.go#L60 call regexp.MustCompile with constant should be moved out of func
  27. internal/handlers/handler_register_webauthn_test.go#L80 call regexp.MustCompile with constant should be moved out of func
  28. internal/handlers/handler_register_webauthn_test.go#L91 call regexp.MustCompile with constant should be moved out of func
  29. internal/handlers/handler_register_webauthn_test.go#L104 call regexp.MustCompile with constant should be moved out of func
  30. internal/handlers/handler_register_webauthn_test.go#L124 call regexp.MustCompile with constant should be moved out of func
  31. internal/handlers/handler_register_webauthn_test.go#L144 call regexp.MustCompile with constant should be moved out of func
  32. internal/handlers/handler_register_webauthn_test.go#L175 call regexp.MustCompile with constant should be moved out of func
  33. internal/handlers/handler_register_webauthn_test.go#L202 call regexp.MustCompile with constant should be moved out of func
  34. internal/handlers/handler_register_webauthn_test.go#L233 call regexp.MustCompile with constant should be moved out of func
  35. internal/handlers/handler_sign_duo_test.go#L731 call regexp.MustCompile with constant should be moved out of func
  36. internal/handlers/handler_sign_totp_test.go#L408 call regexp.MustCompile with constant should be moved out of func
  37. internal/handlers/handler_sign_totp_test.go#L597 call regexp.MustCompile with constant should be moved out of func
  38. internal/handlers/handler_sign_totp_test.go#L641 call regexp.MustCompile with constant should be moved out of func
  39. internal/handlers/handler_sign_totp_test.go#L682 call regexp.MustCompile with constant should be moved out of func
  40. internal/handlers/handler_sign_totp_test.go#L698 call regexp.MustCompile with constant should be moved out of func
  41. internal/handlers/handler_sign_totp_test.go#L748 call regexp.MustCompile with constant should be moved out of func
  42. internal/handlers/handler_sign_totp_test.go#L774 call regexp.MustCompile with constant should be moved out of func
  43. internal/handlers/handler_sign_totp_test.go#L794 call regexp.MustCompile with constant should be moved out of func
  44. internal/handlers/handler_sign_webauthn_test.go#L89 call regexp.MustCompile with constant should be moved out of func
  45. internal/handlers/handler_sign_webauthn_test.go#L127 call regexp.MustCompile with constant should be moved out of func
  46. internal/handlers/handler_sign_webauthn_test.go#L143 call regexp.MustCompile with constant should be moved out of func
  47. internal/handlers/handler_sign_webauthn_test.go#L155 call regexp.MustCompile with constant should be moved out of func
  48. internal/handlers/handler_sign_webauthn_test.go#L176 call regexp.MustCompile with constant should be moved out of func
  49. internal/middlewares/password_policy_test.go#L42 call regexp.MustCompile with constant should be moved out of func
  50. internal/middlewares/password_policy_test.go#L47 call regexp.MustCompile with constant should be moved out of func
  51. internal/middlewares/password_policy_test.go#L47 call regexp.MustCompile with constant should be moved out of func
  52. internal/middlewares/password_policy_test.go#L52 call regexp.MustCompile with constant should be moved out of func
  53. internal/middlewares/password_policy_test.go#L52 call regexp.MustCompile with constant should be moved out of func
  54. internal/middlewares/password_policy_test.go#L52 call regexp.MustCompile with constant should be moved out of func
  55. internal/middlewares/password_policy_test.go#L57 call regexp.MustCompile with constant should be moved out of func
  56. internal/middlewares/password_policy_test.go#L57 call regexp.MustCompile with constant should be moved out of func
  57. internal/middlewares/password_policy_test.go#L57 call regexp.MustCompile with constant should be moved out of func
  58. internal/suites/scenario_oidc_test.go#L98 call regexp.MustCompile with constant should be moved out of func
  59. internal/suites/scenario_oidc_test.go#L99 call regexp.MustCompile with constant should be moved out of func
  60. internal/suites/scenario_oidc_test.go#L100 call regexp.MustCompile with constant should be moved out of func
  61. internal/suites/scenario_oidc_test.go#L101 call regexp.MustCompile with constant should be moved out of func
  62. internal/suites/scenario_oidc_test.go#L102 call regexp.MustCompile with constant should be moved out of func
  63. internal/suites/suite_cli_test.go#L61 call regexp.MustCompile with constant should be moved out of func
  64. internal/suites/suite_cli_test.go#L814 call regexp.MustCompile with constant should be moved out of func
  65. internal/suites/suite_cli_test.go#L818 call regexp.MustCompile with constant should be moved out of func
  66. internal/suites/suite_cli_test.go#L829 call regexp.MustCompile with constant should be moved out of func
  67. internal/suites/suite_cli_test.go#L849 call regexp.MustCompile with constant should be moved out of func
  68. internal/suites/suite_cli_test.go#L850 call regexp.MustCompile with constant should be moved out of func
  69. internal/suites/suite_cli_test.go#L862 call regexp.MustCompile with constant should be moved out of func
  70. internal/suites/suite_cli_test.go#L863 call regexp.MustCompile with constant should be moved out of func
  71. internal/suites/suite_cli_test.go#L877 call regexp.MustCompile with constant should be moved out of func
  72. internal/suites/suite_cli_test.go#L879 call regexp.MustCompile with constant should be moved out of func
  73. internal/suites/suite_cli_test.go#L880 call regexp.MustCompile with constant should be moved out of func
  74. internal/suites/suite_cli_test.go#L881 call regexp.MustCompile with constant should be moved out of func
  75. internal/suites/suite_cli_test.go#L882 call regexp.MustCompile with constant should be moved out of func
  76. internal/suites/suite_cli_test.go#L883 call regexp.MustCompile with constant should be moved out of func
  77. internal/suites/suite_cli_test.go#L884 call regexp.MustCompile with constant should be moved out of func
  78. internal/suites/suite_cli_test.go#L885 call regexp.MustCompile with constant should be moved out of func
  79. internal/suites/suite_cli_test.go#L886 call regexp.MustCompile with constant should be moved out of func
  80. internal/suites/suite_cli_test.go#L887 call regexp.MustCompile with constant should be moved out of func
  81. internal/suites/suite_cli_test.go#L888 call regexp.MustCompile with constant should be moved out of func
  82. internal/suites/suite_cli_test.go#L889 call regexp.MustCompile with constant should be moved out of func
  83. internal/suites/suite_cli_test.go#L890 call regexp.MustCompile with constant should be moved out of func
  84. internal/suites/suite_cli_test.go#L901 call regexp.MustCompile with constant should be moved out of func
  85. internal/suites/suite_cli_test.go#L902 call regexp.MustCompile with constant should be moved out of func
  86. internal/suites/suite_cli_test.go#L909 call regexp.MustCompile with constant should be moved out of func
  87. internal/suites/suite_cli_test.go#L1240 call regexp.MustCompile with constant should be moved out of func
  88. internal/suites/suite_cli_test.go#L1241 call regexp.MustCompile with constant should be moved out of func
  89. internal/suites/suite_cli_test.go#L1253 call regexp.MustCompile with constant should be moved out of func
  90. internal/suites/suite_cli_test.go#L1254 call regexp.MustCompile with constant should be moved out of func
  91. internal/suites/suite_cli_test.go#L1255 call regexp.MustCompile with constant should be moved out of func
  92. internal/suites/suite_cli_test.go#L1256 call regexp.MustCompile with constant should be moved out of func
  93. internal/suites/suite_cli_test.go#L1257 call regexp.MustCompile with constant should be moved out of func
  94. internal/suites/suite_cli_test.go#L1258 call regexp.MustCompile with constant should be moved out of func
  95. internal/suites/suite_cli_test.go#L1259 call regexp.MustCompile with constant should be moved out of func
  96. internal/suites/suite_cli_test.go#L1260 call regexp.MustCompile with constant should be moved out of func
  97. internal/suites/suite_cli_test.go#L1261 call regexp.MustCompile with constant should be moved out of func
  98. internal/suites/suite_cli_test.go#L1262 call regexp.MustCompile with constant should be moved out of func
  99. internal/suites/suite_cli_test.go#L1270 call regexp.MustCompile with constant should be moved out of func
  100. internal/suites/suite_cli_test.go#L1271 call regexp.MustCompile with constant should be moved out of func
  101. internal/suites/suite_cli_test.go#L1272 call regexp.MustCompile with constant should be moved out of func
  102. internal/suites/suite_cli_test.go#L1273 call regexp.MustCompile with constant should be moved out of func
  103. internal/suites/suite_cli_test.go#L1274 call regexp.MustCompile with constant should be moved out of func
  104. internal/suites/suite_cli_test.go#L1275 call regexp.MustCompile with constant should be moved out of func
  105. internal/suites/suite_cli_test.go#L1276 call regexp.MustCompile with constant should be moved out of func
  106. internal/suites/suite_cli_test.go#L1277 call regexp.MustCompile with constant should be moved out of func
  107. internal/suites/suite_cli_test.go#L1278 call regexp.MustCompile with constant should be moved out of func
  108. internal/suites/suite_cli_test.go#L1279 call regexp.MustCompile with constant should be moved out of func
  109. internal/suites/suite_cli_test.go#L1287 call regexp.MustCompile with constant should be moved out of func
  110. internal/suites/suite_cli_test.go#L1288 call regexp.MustCompile with constant should be moved out of func
  111. internal/suites/suite_cli_test.go#L1289 call regexp.MustCompile with constant should be moved out of func
  112. internal/suites/suite_cli_test.go#L1290 call regexp.MustCompile with constant should be moved out of func
  113. internal/suites/suite_cli_test.go#L1291 call regexp.MustCompile with constant should be moved out of func
  114. internal/suites/suite_cli_test.go#L1292 call regexp.MustCompile with constant should be moved out of func
  115. internal/suites/suite_cli_test.go#L1293 call regexp.MustCompile with constant should be moved out of func
  116. internal/suites/suite_cli_test.go#L1294 call regexp.MustCompile with constant should be moved out of func
  117. internal/suites/suite_cli_test.go#L1295 call regexp.MustCompile with constant should be moved out of func
  118. internal/suites/suite_cli_test.go#L1296 call regexp.MustCompile with constant should be moved out of func
  119. internal/suites/suite_cli_test.go#L1304 call regexp.MustCompile with constant should be moved out of func
  120. internal/suites/suite_cli_test.go#L1305 call regexp.MustCompile with constant should be moved out of func
  121. internal/suites/suite_cli_test.go#L1306 call regexp.MustCompile with constant should be moved out of func
  122. internal/suites/suite_cli_test.go#L1307 call regexp.MustCompile with constant should be moved out of func
  123. internal/suites/suite_cli_test.go#L1308 call regexp.MustCompile with constant should be moved out of func
  124. internal/suites/suite_cli_test.go#L1309 call regexp.MustCompile with constant should be moved out of func
  125. internal/suites/suite_cli_test.go#L1310 call regexp.MustCompile with constant should be moved out of func
  126. internal/suites/suite_cli_test.go#L1311 call regexp.MustCompile with constant should be moved out of func
  127. internal/suites/suite_cli_test.go#L1312 call regexp.MustCompile with constant should be moved out of func
  128. internal/suites/suite_cli_test.go#L1313 call regexp.MustCompile with constant should be moved out of func
  129. internal/suites/suite_cli_test.go#L1321 call regexp.MustCompile with constant should be moved out of func
  130. internal/suites/suite_cli_test.go#L1322 call regexp.MustCompile with constant should be moved out of func
  131. internal/suites/suite_cli_test.go#L1323 call regexp.MustCompile with constant should be moved out of func
  132. internal/suites/suite_cli_test.go#L1324 call regexp.MustCompile with constant should be moved out of func
  133. internal/suites/suite_cli_test.go#L1325 call regexp.MustCompile with constant should be moved out of func
  134. internal/suites/suite_cli_test.go#L1326 call regexp.MustCompile with constant should be moved out of func
  135. internal/suites/suite_cli_test.go#L1327 call regexp.MustCompile with constant should be moved out of func
  136. internal/suites/suite_cli_test.go#L1328 call regexp.MustCompile with constant should be moved out of func
  137. internal/suites/suite_cli_test.go#L1329 call regexp.MustCompile with constant should be moved out of func
  138. internal/suites/suite_cli_test.go#L1330 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/authelia/authelia/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/casbin/casbin

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392927381

Expand
  1. frontend_test.go#L43 call regexp.MustCompile with constant should be moved out of func
  2. frontend_test.go#L52 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/casbin/casbin/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/google/cadvisor

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392926713

Expand
  1. utils/sysfs/sysfs.go#L487 call regexp.MustCompile with constant should be moved out of func
  2. container/docker/factory.go#L286 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/google/cadvisor/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/containrrr/watchtower

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392927975

Expand
  1. internal/flags/flags.go#L93 call regexp.MustCompile with constant should be moved out of func
  2. internal/util/util_test.go#L77 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/containrrr/watchtower/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/hashicorp/consul

Got total 30 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392911529

Expand
  1. agent/config/builder.go#L1213 call regexp.MustCompile with constant should be moved out of func
  2. agent/config/builder.go#L1214 call regexp.MustCompile with constant should be moved out of func
  3. agent/xds/listeners.go#L1544 call regexp.MustCompile with constant should be moved out of func
  4. agent/dns.go#L1216 call regexp.MustCompile with constant should be moved out of func
  5. agent/dns.go#L1221 call regexp.MustCompile with constant should be moved out of func
  6. command/connect/envoy/exec.go#L37 call regexp.MustCompile with constant should be moved out of func
  7. agent/checks/check_test.go#L1535 call regexp.MustCompile with constant should be moved out of func
  8. agent/checks/check_test.go#L1545 call regexp.MustCompile with constant should be moved out of func
  9. agent/checks/check_test.go#L1556 call regexp.MustCompile with constant should be moved out of func
  10. agent/checks/check_test.go#L1568 call regexp.MustCompile with constant should be moved out of func
  11. agent/checks/check_test.go#L1583 call regexp.MustCompile with constant should be moved out of func
  12. agent/checks/check_test.go#L1598 call regexp.MustCompile with constant should be moved out of func
  13. agent/checks/check_test.go#L1614 call regexp.MustCompile with constant should be moved out of func
  14. agent/checks/check_test.go#L1633 call regexp.MustCompile with constant should be moved out of func
  15. agent/checks/check_test.go#L1653 call regexp.MustCompile with constant should be moved out of func
  16. agent/checks/check_test.go#L1674 call regexp.MustCompile with constant should be moved out of func
  17. agent/checks/check_test.go#L1695 call regexp.MustCompile with constant should be moved out of func
  18. agent/checks/check_test.go#L1716 call regexp.MustCompile with constant should be moved out of func
  19. agent/checks/check_test.go#L1737 call regexp.MustCompile with constant should be moved out of func
  20. agent/checks/check_test.go#L1758 call regexp.MustCompile with constant should be moved out of func
  21. agent/hcp/telemetry/otel_sink_test.go#L195 call regexp.MustCompile with constant should be moved out of func
  22. agent/hcp/telemetry/otel_sink_test.go#L237 call regexp.MustCompile with constant should be moved out of func
  23. agent/hcp/telemetry/otel_sink_test.go#L330 call regexp.MustCompile with constant should be moved out of func
  24. agent/hcp/telemetry/otel_sink_test.go#L354 call regexp.MustCompile with constant should be moved out of func
  25. agent/hcp/telemetry/otel_sink_test.go#L359 call regexp.MustCompile with constant should be moved out of func
  26. agent/hcp/telemetry/otel_sink_test.go#L385 call regexp.MustCompile with constant should be moved out of func
  27. agent/proxycfg/snapshot_test.go#L26 call regexp.MustCompile with constant should be moved out of func
  28. agent/xds/rbac_test.go#L1175 call regexp.MustCompile with constant should be moved out of func
  29. command/acl/token/clone/token_clone_test.go#L47 call regexp.MustCompile with constant should be moved out of func
  30. command/debug/debug_test.go#L465 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/hashicorp/consul/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/hashicorp/packer

Got total 17 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392929639

Expand
  1. datasource/http/data.go#L110 call regexp.MustCompile with constant should be moved out of func
  2. datasource/http/data.go#L111 call regexp.MustCompile with constant should be moved out of func
  3. datasource/http/data.go#L112 call regexp.MustCompile with constant should be moved out of func
  4. fix/fixer_clean_image_name.go#L37 call regexp.MustCompile with constant should be moved out of func
  5. fix/fixer_createtime.go#L38 call regexp.MustCompile with constant should be moved out of func
  6. command/hcl2_upgrade.go#L1463 call regexp.MustCompile with constant should be moved out of func
  7. command/build_test.go#L1318 call regexp.MustCompile with constant should be moved out of func
  8. provisioner/file/provisioner_test.go#L438 call regexp.MustCompile with constant should be moved out of func
  9. provisioner/powershell/provisioner_test.go#L486 call regexp.MustCompile with constant should be moved out of func
  10. provisioner/powershell/provisioner_test.go#L506 call regexp.MustCompile with constant should be moved out of func
  11. provisioner/powershell/provisioner_test.go#L536 call regexp.MustCompile with constant should be moved out of func
  12. provisioner/powershell/provisioner_test.go#L573 call regexp.MustCompile with constant should be moved out of func
  13. provisioner/powershell/provisioner_test.go#L920 call regexp.MustCompile with constant should be moved out of func
  14. provisioner/powershell/provisioner_test.go#L930 call regexp.MustCompile with constant should be moved out of func
  15. provisioner/shell/provisioner_test.go#L583 call regexp.MustCompile with constant should be moved out of func
  16. provisioner/shell/provisioner_test.go#L643 call regexp.MustCompile with constant should be moved out of func
  17. provisioner/shell/provisioner_acc_test.go#L71 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/hashicorp/packer/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/terrastruct/d2

Got total 23 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392930777

Expand
  1. lib/color/gradient.go#L29 call regexp.MustCompile with constant should be moved out of func
  2. lib/textmeasure/links.go#L10 call regexp.MustCompile with constant should be moved out of func
  3. d2layouts/d2dagrelayout/object_mapper.go#L58 call regexp.MustCompile with constant should be moved out of func
  4. d2layouts/d2elklayout/layout.go#L975 call regexp.MustCompile with constant should be moved out of func
  5. d2layouts/d2elklayout/layout.go#L976 call regexp.MustCompile with constant should be moved out of func
  6. d2layouts/d2elklayout/layout.go#L977 call regexp.MustCompile with constant should be moved out of func
  7. d2layouts/d2elklayout/layout.go#L978 call regexp.MustCompile with constant should be moved out of func
  8. e2etests-cli/main_test.go#L1079 call regexp.MustCompile with constant should be moved out of func
  9. e2etests-cli/main_test.go#L1092 call regexp.MustCompile with constant should be moved out of func
  10. e2etests-cli/main_test.go#L1100 call regexp.MustCompile with constant should be moved out of func
  11. e2etests-cli/main_test.go#L1130 call regexp.MustCompile with constant should be moved out of func
  12. e2etests-cli/main_test.go#L1144 call regexp.MustCompile with constant should be moved out of func
  13. e2etests-cli/main_test.go#L1152 call regexp.MustCompile with constant should be moved out of func
  14. e2etests-cli/main_test.go#L1181 call regexp.MustCompile with constant should be moved out of func
  15. e2etests-cli/main_test.go#L1200 call regexp.MustCompile with constant should be moved out of func
  16. e2etests-cli/main_test.go#L1210 call regexp.MustCompile with constant should be moved out of func
  17. e2etests-cli/main_test.go#L1247 call regexp.MustCompile with constant should be moved out of func
  18. e2etests-cli/main_test.go#L1260 call regexp.MustCompile with constant should be moved out of func
  19. e2etests-cli/main_test.go#L1269 call regexp.MustCompile with constant should be moved out of func
  20. e2etests-cli/main_test.go#L1295 call regexp.MustCompile with constant should be moved out of func
  21. e2etests-cli/main_test.go#L1304 call regexp.MustCompile with constant should be moved out of func
  22. e2etests-cli/main_test.go#L1318 call regexp.MustCompile with constant should be moved out of func
  23. e2etests-cli/main_test.go#L1445 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/terrastruct/d2/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/projectdiscovery/nuclei

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392924935

Expand
  1. cmd/integration-test/http.go#L1521 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/projectdiscovery/nuclei/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/TheAlgorithms/Go

Got total 3 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392933139

Expand
  1. compression/rlecoding.go#L39 call regexp.MustCompile with constant should be moved out of func
  2. strings/isisogram.go#L25 call regexp.MustCompile with constant should be moved out of func
  3. strings/isisogram.go#L30 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/TheAlgorithms/Go/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/FiloSottile/age

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392933832

Expand
  1. cmd/age/age.go#L164 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/FiloSottile/age/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/kubernetes/kubernetes

Got total 64 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392901791

Expand
  1. cluster/images/etcd/migrate/options.go#L162 call regexp.MustCompile with constant should be moved out of func
  2. pkg/volume/hostpath/host_path.go#L355 call regexp.MustCompile with constant should be moved out of func
  3. pkg/util/iptables/iptables.go#L660 call regexp.MustCompile with constant should be moved out of func
  4. pkg/util/iptables/iptables.go#L722 call regexp.MustCompile with constant should be moved out of func
  5. cmd/kubeadm/app/util/version.go#L143 call regexp.MustCompile with constant should be moved out of func
  6. cmd/kubeadm/app/preflight/utils.go#L31 call regexp.MustCompile with constant should be moved out of func
  7. pkg/kubelet/kuberuntime/kuberuntime_container.go#L150 call regexp.MustCompile with constant should be moved out of func
  8. cmd/prune-junit-xml/prunexml.go#L133 call regexp.MustCompile with constant should be moved out of func
  9. hack/conformance/check_conformance_test_requirements.go#L44 call regexp.MustCompile with constant should be moved out of func
  10. hack/conformance/check_conformance_test_requirements.go#L45 call regexp.MustCompile with constant should be moved out of func
  11. hack/conformance/check_conformance_test_requirements.go#L46 call regexp.MustCompile with constant should be moved out of func
  12. hack/conformance/check_conformance_test_requirements.go#L84 call regexp.MustCompile with constant should be moved out of func
  13. pkg/api/testing/compat/compatibility_tester.go#L109 call regexp.MustCompile with constant should be moved out of func
  14. test/conformance/walk.go#L269 call regexp.MustCompile with constant should be moved out of func
  15. test/conformance/walk.go#L274 call regexp.MustCompile with constant should be moved out of func
  16. test/conformance/walk.go#L279 call regexp.MustCompile with constant should be moved out of func
  17. test/e2e/storage/utils/pod.go#L63 call regexp.MustCompile with constant should be moved out of func
  18. test/e2e/framework/metrics/metrics_grabber.go#L102 call regexp.MustCompile with constant should be moved out of func
  19. test/e2e/framework/metrics/metrics_grabber.go#L103 call regexp.MustCompile with constant should be moved out of func
  20. test/e2e/framework/metrics/metrics_grabber.go#L104 call regexp.MustCompile with constant should be moved out of func
  21. test/e2e/framework/debug/resource_usage_gatherer.go#L382 call regexp.MustCompile with constant should be moved out of func
  22. test/e2e/framework/debug/resource_usage_gatherer.go#L383 call regexp.MustCompile with constant should be moved out of func
  23. test/e2e/upgrades/upgrade_suite.go#L65 call regexp.MustCompile with constant should be moved out of func
  24. test/e2e/dra/test-driver/app/kubeletplugin.go#L350 call regexp.MustCompile with constant should be moved out of func
  25. test/e2e/network/util.go#L95 call regexp.MustCompile with constant should be moved out of func
  26. test/e2e/node/gpu.go#L485 call regexp.MustCompile with constant should be moved out of func
  27. test/e2e/node/kubelet.go#L796 call regexp.MustCompile with constant should be moved out of func
  28. test/e2e/storage/testsuites/subpath.go#L506 call regexp.MustCompile with constant should be moved out of func
  29. test/e2e/windows/gmsa_full.go#L540 call regexp.MustCompile with constant should be moved out of func
  30. test/e2e_node/kubeletconfig/kubeletconfig.go#L141 call regexp.MustCompile with constant should be moved out of func
  31. test/e2e_node/util.go#L348 call regexp.MustCompile with constant should be moved out of func
  32. test/e2e_node/remote/node_e2e.go#L152 call regexp.MustCompile with constant should be moved out of func
  33. test/e2e_node/remote/remote.go#L209 call regexp.MustCompile with constant should be moved out of func
  34. test/e2e_node/runner/local/run_local.go#L116 call regexp.MustCompile with constant should be moved out of func
  35. test/e2e_node/services/kubelet.go#L236 call regexp.MustCompile with constant should be moved out of func
  36. test/integration/apiserver/cel/authorizerselector/helper.go#L110 call regexp.MustCompile with constant should be moved out of func
  37. test/integration/apiserver/cel/authorizerselector/helper.go#L115 call regexp.MustCompile with constant should be moved out of func
  38. test/integration/apiserver/cel/authorizerselector/helper.go#L186 call regexp.MustCompile with constant should be moved out of func
  39. test/integration/apiserver/cel/authorizerselector/helper.go#L187 call regexp.MustCompile with constant should be moved out of func
  40. test/integration/apiserver/cel/authorizerselector/helper.go#L213 call regexp.MustCompile with constant should be moved out of func
  41. test/integration/apiserver/cel/authorizerselector/helper.go#L214 call regexp.MustCompile with constant should be moved out of func
  42. test/integration/apiserver/cel/authorizerselector/helper.go#L241 call regexp.MustCompile with constant should be moved out of func
  43. test/integration/apiserver/cel/authorizerselector/helper.go#L242 call regexp.MustCompile with constant should be moved out of func
  44. cmd/kube-controller-manager/app/controllermanager_test.go#L39 call regexp.MustCompile with constant should be moved out of func
  45. cmd/kube-controller-manager/app/controllermanager_test.go#L131 call regexp.MustCompile with constant should be moved out of func
  46. cmd/kubeadm/app/phases/copycerts/copycerts_test.go#L74 call regexp.MustCompile with constant should be moved out of func
  47. pkg/apis/certificates/validation/validation_test.go#L1004 call regexp.MustCompile with constant should be moved out of func
  48. pkg/volume/util/device_util_linux_test.go#L34 call regexp.MustCompile with constant should be moved out of func
  49. pkg/volume/util/device_util_linux_test.go#L38 call regexp.MustCompile with constant should be moved out of func
  50. pkg/volume/util/device_util_linux_test.go#L48 call regexp.MustCompile with constant should be moved out of func
  51. test/e2e/framework/pod/wait_test.go#L119 call regexp.MustCompile with constant should be moved out of func
  52. test/e2e_node/apparmor_test.go#L287 call regexp.MustCompile with constant should be moved out of func
  53. test/e2e_node/cpu_manager_test.go#L1123 call regexp.MustCompile with constant should be moved out of func
  54. test/e2e_node/dra_test.go#L627 call regexp.MustCompile with constant should be moved out of func
  55. test/e2e_node/topology_manager_test.go#L335 call regexp.MustCompile with constant should be moved out of func
  56. test/e2e_node/topology_manager_test.go#L501 call regexp.MustCompile with constant should be moved out of func
  57. test/integration/apiserver/oidc/oidc_test.go#L1446 call regexp.MustCompile with constant should be moved out of func
  58. test/integration/controlplane/transformation/kms_transformation_test.go#L592 call regexp.MustCompile with constant should be moved out of func
  59. test/integration/controlplane/transformation/kmsv2_transformation_test.go#L318 call regexp.MustCompile with constant should be moved out of func
  60. test/integration/logs/benchmark/benchmark_test.go#L69 call regexp.MustCompile with constant should be moved out of func
  61. test/utils/format/format_test.go#L66 call regexp.MustCompile with constant should be moved out of func
  62. test/utils/ktesting/helper_test.go#L72 call regexp.MustCompile with constant should be moved out of func
  63. test/utils/ktesting/helper_test.go#L74 call regexp.MustCompile with constant should be moved out of func
  64. test/utils/ktesting/helper_test.go#L76 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/kubernetes/kubernetes/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/ory/hydra

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392932339

Expand
  1. consent/strategy_oauth_test.go#L179 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/ory/hydra/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/bcicen/ctop

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392934627

Expand
  1. colors.go#L54 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/bcicen/ctop/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/vitessio/vitess

Got total 25 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392923668

Expand
  1. go/vt/sqlparser/like_filter.go#L43 call regexp.MustCompile with constant should be moved out of func
  2. go/vt/vtgate/planbuilder/show.go#L235 call regexp.MustCompile with constant should be moved out of func
  3. go/vt/vtgate/vtgate.go#L664 call regexp.MustCompile with constant should be moved out of func
  4. go/tools/go-upgrade/go-upgrade.go#L232 call regexp.MustCompile with constant should be moved out of func
  5. go/tools/go-upgrade/go-upgrade.go#L247 call regexp.MustCompile with constant should be moved out of func
  6. go/tools/go-upgrade/go-upgrade.go#L372 call regexp.MustCompile with constant should be moved out of func
  7. go/tools/go-upgrade/go-upgrade.go#L399 call regexp.MustCompile with constant should be moved out of func
  8. go/tools/go-upgrade/go-upgrade.go#L400 call regexp.MustCompile with constant should be moved out of func
  9. go/tools/go-upgrade/go-upgrade.go#L414 call regexp.MustCompile with constant should be moved out of func
  10. go/tools/release-notes/release_notes.go#L342 call regexp.MustCompile with constant should be moved out of func
  11. go/vt/vttablet/tabletserver/vstreamer/testenv/testenv.go#L230 call regexp.MustCompile with constant should be moved out of func
  12. go/vt/vttablet/tabletserver/vstreamer/testenv/testenv.go#L234 call regexp.MustCompile with constant should be moved out of func
  13. go/test/endtoend/vreplication/helper_test.go#L734 call regexp.MustCompile with constant should be moved out of func
  14. go/vt/schema/tablegc_test.go#L97 call regexp.MustCompile with constant should be moved out of func
  15. go/vt/sqlparser/normalizer_test.go#L1479 call regexp.MustCompile with constant should be moved out of func
  16. go/vt/vtgate/endtoend/vstream_test.go#L463 call regexp.MustCompile with constant should be moved out of func
  17. go/vt/vtgate/endtoend/vstream_test.go#L464 call regexp.MustCompile with constant should be moved out of func
  18. go/vt/vtgate/endtoend/vstream_test.go#L465 call regexp.MustCompile with constant should be moved out of func
  19. go/vt/vtgate/endtoend/vstream_test.go#L785 call regexp.MustCompile with constant should be moved out of func
  20. go/vt/vtgate/endtoend/vstream_test.go#L788 call regexp.MustCompile with constant should be moved out of func
  21. go/vt/vttablet/tabletmanager/vreplication/vreplicator_test.go#L774 call regexp.MustCompile with constant should be moved out of func
  22. go/vt/vttablet/tabletmanager/vreplication/vreplicator_test.go#L797 call regexp.MustCompile with constant should be moved out of func
  23. go/vt/wrangler/vexec_test.go#L237 call regexp.MustCompile with constant should be moved out of func
  24. go/vt/wrangler/vexec_test.go#L239 call regexp.MustCompile with constant should be moved out of func
  25. go/vt/wrangler/workflow_test.go#L156 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/vitessio/vitess/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/nats-io/nats-server

Got total 4 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392933390

Expand
  1. server/opts.go#L1358 call regexp.MustCompile with constant should be moved out of func
  2. server/opts.go#L1359 call regexp.MustCompile with constant should be moved out of func
  3. server/opts.go#L4760 call regexp.MustCompile with constant should be moved out of func
  4. server/server.go#L1068 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/nats-io/nats-server/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/getsops/sops

Got total 6 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392932845

Expand
  1. azkv/keysource.go#L80 call regexp.MustCompile with constant should be moved out of func
  2. gcpkms/keysource.go#L211 call regexp.MustCompile with constant should be moved out of func
  3. hcvault/keysource.go#L353 call regexp.MustCompile with constant should be moved out of func
  4. hcvault/keysource.go#L357 call regexp.MustCompile with constant should be moved out of func
  5. kms/keysource.go#L355 call regexp.MustCompile with constant should be moved out of func
  6. kms/keysource.go#L427 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/getsops/sops/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/ent/ent

Got total 1 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392934144

Expand
  1. schema/field/field_test.go#L493 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/ent/ent/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/ffuf/ffuf

Got total 2 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392945919

Expand
  1. pkg/ffuf/valuerange.go#L15 call regexp.MustCompile with constant should be moved out of func
  2. pkg/input/wordlist.go#L131 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/ffuf/ffuf/issues

github-actions[bot] commented 4 months ago

Run sundrylint on Repo: https://github.com/hashicorp/vault

Got total 23 lines output in action: https://github.com/alingse/sundrylint/actions/runs/13392910689

Expand
  1. builtin/credential/aws/path_login.go#L1682 call regexp.MustCompile with constant should be moved out of func
  2. internalshared/configutil/kms.go#L150 call regexp.MustCompile with constant should be moved out of func
  3. internalshared/configutil/listener.go#L178 call regexp.MustCompile with constant should be moved out of func
  4. vault/login_mfa.go#L2074 call regexp.MustCompile with constant should be moved out of func
  5. builtin/logical/aws/secret_access_keys.go#L574 call regexp.MustCompile with constant should be moved out of func
  6. command/agent_generate_config_test.go#L168 call regexp.MustCompile with constant should be moved out of func
  7. command/agent_generate_config_test.go#L211 call regexp.MustCompile with constant should be moved out of func
  8. command/login_test.go#L587 call regexp.MustCompile with constant should be moved out of func
  9. command/operator_generate_root_test.go#L424 call regexp.MustCompile with constant should be moved out of func
  10. command/operator_generate_root_test.go#L499 call regexp.MustCompile with constant should be moved out of func
  11. command/operator_init_test.go#L189 call regexp.MustCompile with constant should be moved out of func
  12. command/operator_init_test.go#L251 call regexp.MustCompile with constant should be moved out of func
  13. command/operator_init_test.go#L312 call regexp.MustCompile with constant should be moved out of func
  14. command/operator_init_test.go#L331 call regexp.MustCompile with constant should be moved out of func
  15. command/operator_rekey_test.go#L304 call regexp.MustCompile with constant should be moved out of func
  16. command/operator_rekey_test.go#L379 call regexp.MustCompile with constant should be moved out of func
  17. command/operator_rekey_test.go#L455 call regexp.MustCompile with constant should be moved out of func
  18. command/operator_rekey_test.go#L531 call regexp.MustCompile with constant should be moved out of func
  19. command/operator_rekey_test.go#L612 call regexp.MustCompile with constant should be moved out of func
  20. plugins/database/redshift/redshift_test.go#L163 call regexp.MustCompile with constant should be moved out of func
  21. vault/identity_store_test.go#L1794 call regexp.MustCompile with constant should be moved out of func
  22. vault/identity_store_test.go#L1798 call regexp.MustCompile with constant should be moved out of func
  23. vault/logical_system_test.go#L7320 call regexp.MustCompile with constant should be moved out of func

Report issue: https://github.com/hashicorp/vault/issues