MCPcopy Create free account

hub / github.com/JetBrains/qodana-cli / functions

Functions1,503 in github.com/JetBrains/qodana-cli

↓ 360 callersMethodRun
(args ...string)
internal/platform/git/testutil.go:41
↓ 322 callersMethodFatal
(args ...any)
internal/testutil/mockexe/testing.go:34
↓ 257 callersMethodFatalf
(format string, args ...any)
internal/testutil/mockexe/testing.go:35
↓ 111 callersMethodWriteFile
WriteFile writes content to a file in the repository.
internal/platform/git/testutil.go:141
↓ 108 callersMethodClose
Close syncs, closes the temp file, and atomically renames it to the target.
internal/foundation/fs/atomic.go:41
↓ 87 callersMethodDir
Dir returns the directory path of the repository.
internal/platform/git/testutil.go:86
↓ 68 callersFunctioncanonicalTempDir
Test helpers =============================================================
internal/foundation/fs/canonical_test.go:17
↓ 60 callersFunctionCanonical
Canonical returns the canonical form of path: absolute, with all symlinks resolved, dot/dotdot segments eliminated, redundant separators removed, and
internal/foundation/fs/canonical_unix.go:20
↓ 60 callersMethodError
()
internal/platform/git/git.go:44
↓ 56 callersMethodReadFile
ReadFile reads a file from the repository.
internal/platform/git/testutil.go:150
↓ 50 callersFunctionErrorMessage
ErrorMessage prints an error message with the icon.
internal/platform/msg/output.go:125
↓ 44 callersMethodName
()
internal/platform/product/analyzers.go:30
↓ 39 callersMethodError
()
internal/cloud/endpoints.go:130
↓ 38 callersMethodError
()
internal/foundation/shlex/shlex.go:67
↓ 35 callersFunctionmkdirp
(t *testing.T, path string)
internal/foundation/fs/canonical_test.go:25
↓ 34 callersMethodResultsDir
()
internal/core/corescan/context.go:154
↓ 34 callersMethodSkip
(args ...any)
internal/testutil/mockexe/testing.go:37
↓ 33 callersMethodLogDir
()
internal/core/corescan/context.go:156
↓ 32 callersMethodBuild
()
internal/core/corescan/context.go:267
↓ 32 callersMethodString
()
internal/foundation/fs/relativity.go:20
↓ 31 callersMethodCommitAll
CommitAll stages all files and creates a commit with the given message. Returns the SHA of the created commit.
internal/platform/git/testutil.go:72
↓ 31 callersFunctionWarningMessage
WarningMessage prints a warning message with the icon.
internal/platform/msg/output.go:112
↓ 29 callersFunctionsetupProjectDir
setupProjectDir creates a nested directory hierarchy tmpDir/g/p/project and optionally places a clang-tidy config file at a given ancestor level. ance
clang/config_test.go:24
↓ 27 callersMethodNativeAnalyzer
()
internal/platform/product/product.go:261
↓ 27 callersFunctionPrimaryBold
PrimaryBold prints a message in the primary bold style.
internal/platform/msg/output.go:94
↓ 27 callersFunctionmakeSymlink
(t *testing.T, target, linkPath string)
internal/foundation/fs/canonical_test.go:38
↓ 26 callersFunctionIsContainer
()
internal/platform/qdenv/qdenv.go:137
↓ 26 callersFunctionRelativity
Relativity classifies a path into one of the four categories.
internal/foundation/fs/relativity.go:143
↓ 26 callersFunctiontouch
(t *testing.T, path string)
internal/foundation/fs/canonical_test.go:30
↓ 25 callersMethodDockerAnalyzer
()
internal/platform/product/product.go:268
↓ 24 callersFunctionWeaklyCanonical
WeaklyCanonical is like Canonical but does not require the full path to exist. It canonicalizes the longest existing prefix, then appends the remainin
internal/foundation/fs/canonical_unix.go:54
↓ 23 callersMethodWrite
Write implements io.Writer.
internal/foundation/fs/atomic.go:36
↓ 22 callersFunctionrunProcessConfig
( t *testing.T, projectDir string, version string, includes []qdyaml.Clude, excludes []qdyaml.Clude, )
clang/config_test.go:47
↓ 19 callersMethodRepositoryRoot
()
internal/core/corescan/context.go:153
↓ 19 callersFunctiongitRun
gitRun runs the git command in the given directory and returns an error if any.
internal/platform/git/git.go:49
↓ 18 callersFunctionCreateMockExe
CreateMockExe builds a callback-client binary at destPath with the callback server address baked in via -ldflags, and registers a handler to be called
internal/testutil/mockexe/mockexe.go:119
↓ 17 callersMethodGetLinter
()
internal/platform/product/analyzers.go:27
↓ 16 callersMethodProd
()
internal/core/corescan/context.go:150
↓ 16 callersFunctionfindEntry
findEntry looks up a directory entry by name, returning the actual on-disk name. On Linux, it opens the entry with O_PATH|O_NOFOLLOW (which requires o
internal/foundation/fs/find_entry_linux.go:24
↓ 15 callersFunctionIsInteractive
IsInteractive returns true if the current execution environment is interactive (useful for colors/animations toggle).
internal/platform/msg/output.go:59
↓ 15 callersFunctionLoadQodanaYamlByFullPath
(fullPath string)
internal/platform/qdyaml/yaml.go:382
↓ 15 callersFunctioncheck_flattened
(variant: str, flattened: str)
scripts/validate_dockerfiles_base.py:91
↓ 14 callersMethodCleanup
()
internal/core/corescan/context.go:187
↓ 14 callersMethodIsContainer
()
internal/platform/product/analyzers.go:28
↓ 14 callersFunctionMakeDirAll
(dir string)
internal/core/startup/prepare.go:227
↓ 14 callersFunctionNewGitRepo
NewGitRepo initializes a new git repository and returns a GitRepo for it.
internal/platform/git/testutil.go:166
↓ 14 callersFunctionQuoteIfSpace
QuoteIfSpace wraps in '"' if the string contains a space.
internal/foundation/str/str.go:35
↓ 14 callersFunctionRevParse
RevParse converts any commit reference (hash, branch name, tag name, etc.) to a full SHA1 commit hash.
internal/platform/git/git.go:84
↓ 13 callersFunctionNeed
Need skips the test if any of the given flags are disabled.
internal/testutil/needs/needs.go:26
↓ 13 callersMethodProjectDir
()
internal/core/corescan/context.go:152
↓ 13 callersFunctionresolved_dhi_base_tags
Resolve every `dhi.io/<repo>` FROM to its tag; untagged/unexpandable-$VAR → "" (fail-closed).
scripts/validate_dockerfiles_base.py:60
↓ 12 callersMethodCacheDir
()
internal/core/corescan/context.go:158
↓ 12 callersFunctionExtractTarGz
ExtractTarGz extracts a .tar.gz file to destDir. If stripTopDir is true, the first path component is removed from each entry (e.g., "jbrsdk-25.0.2-lin
internal/foundation/archive/archive.go:138
↓ 12 callersFunctionGetLocalNotEffectiveQodanaYamlFullPath
GetLocalNotEffectiveQodanaYamlFullPath does not process `imports` field and doesn't use global configuration
internal/platform/qdyaml/yaml.go:362
↓ 12 callersMethodImage
()
internal/platform/product/product.go:275
↓ 12 callersMethodResultsDir
()
internal/platform/thirdpartyscan/context.go:185
↓ 12 callersFunctionSuccessMessage
SuccessMessage prints a success message with the icon.
internal/platform/msg/output.go:105
↓ 12 callersFunctioncreateDefaultYaml
(sln string, prj string, cfg string, plt string)
cdnet/options_test.go:34
↓ 11 callersFunctionCheckoutAndUpdateSubmodule
CheckoutAndUpdateSubmodule performs a git checkout to the specified rev and updates submodules recursively, QD-10767.
internal/platform/git/git.go:102
↓ 11 callersFunctionEmptyMessage
EmptyMessage is a message that is used when there is no message to show.
internal/platform/msg/output.go:100
↓ 11 callersFunctionGetQodanaGlobalEnv
(key string)
internal/platform/qdenv/qdenv.go:84
↓ 11 callersFunctionReadReport
(file string)
internal/platform/sarif.go:241
↓ 11 callersFunctionSplit
Split parses s as a POSIX shell command line and returns its word tokens. Empty and whitespace-only input return (nil, nil). See package doc for the f
internal/foundation/shlex/split.go:8
↓ 11 callersFunctionfindClangTidyConfig
findClangTidyConfig returns the absolute path of the nearest .clang-tidy or _clang-tidy file reachable from startDir by walking toward the filesystem
clang/config.go:72
↓ 11 callersFunctionselectUser
(image string, userFromContext string)
internal/core/container.go:461
↓ 10 callersFunctionAppendUnique
AppendUnique appends elements to a slice only if they are not already present.
internal/foundation/algorithm/algorithm.go:6
↓ 10 callersFunctionExecRedirectOutput
ExecRedirectOutput executes subprocess with forwarding of signals, returns stdout, stderr and exit code.
internal/foundation/exec/exec.go:79
↓ 10 callersFunctionInitializeQodanaGlobalEnv
(provider EnvProvider)
internal/platform/qdenv/qdenv.go:75
↓ 10 callersMethodQodanaYamlConfig
()
internal/core/corescan/context.go:149
↓ 10 callersFunctioncompilerCacheKey
compilerCacheKey produces an unambiguous cache key for the (compiler, headerType) pair. A null byte is used as the delimiter because it cannot appear
clang/cmake.go:51
↓ 10 callersFunctioncreateMockCompiler
(t *testing.T, destPath string, handler func(ctx *mockexe.CallContext) int)
clang/cmake_test.go:27
↓ 10 callersFunctionwriteFileIfNew
(filepath string, content string)
internal/core/startup/prepare.go:299
↓ 9 callersMethodAnalyser
()
internal/core/corescan/context.go:142
↓ 9 callersFunctionCompute
( overrideLinter string, overrideIde string, overrideImage string, overrideWithinDocker string, cacheDirF
internal/platform/commoncontext/compute.go:36
↓ 9 callersMethodDiffEnd
()
internal/core/corescan/context.go:175
↓ 9 callersFunctionExec
Exec executes subprocess with forwarding of signals, and returns its exit code.
internal/foundation/exec/exec.go:27
↓ 9 callersFunctionGetSarifPath
(resultsDir string)
internal/platform/files.go:78
↓ 9 callersFunctionIsCloudTokenRequired
(tokenLoader CloudTokenLoader)
internal/platform/tokenloader/token_loader.go:47
↓ 9 callersMethodLogDir
()
internal/platform/commoncontext/context.go:40
↓ 9 callersFunctionMakeAbsolute
MakeAbsolute converts any path to an absolute path without calling filepath.Clean (which would collapse symlink/.. lexically). For DriveRelative paths
internal/foundation/fs/relativity.go:40
↓ 9 callersMethodScript
()
internal/core/corescan/context.go:171
↓ 9 callersFunctioncreateShortSarif
(path string, skipped bool)
internal/core/system_test.go:452
↓ 9 callersFunctionis_root_tag
DHI root build bases are the '-dev' variants; strip any @digest first.
scripts/validate_dockerfiles_base.py:46
↓ 9 callersFunctionjbrFlavor
jbrFlavor returns the JBR archive flavor string (e.g. "linux-x64", "osx-aarch64").
internal/tooling/scripts/build-qodana-jbr.go:49
↓ 9 callersFunctionnewScanCommand
newScanCommand returns a new instance of the scan command.
internal/cmd/scan.go:43
↓ 9 callersFunctionrunCommand
(t *testing.T, cwd string, command string)
internal/platform/sarifVersioning_test.go:65
↓ 8 callersMethodBuild
()
internal/platform/thirdpartyscan/context.go:149
↓ 8 callersMethodCacheDir
()
internal/platform/thirdpartyscan/context.go:188
↓ 8 callersFunctionEmptyEnvProvider
()
internal/platform/qdenv/qdenv.go:105
↓ 8 callersFunctionGetCloudRootEndpoint
()
internal/cloud/endpoints.go:72
↓ 8 callersFunctionGetDeviceIdSalt
GetDeviceIdSalt set consistent device.id based on given repo upstream #SA-391.
internal/platform/deviceid.go:30
↓ 8 callersFunctionGetEnvWithDefaultInt
(env string, defaultValue int)
internal/cloud/license.go:196
↓ 8 callersFunctionLinter
Linter returns a product.Linter representing a mock analysis tool. Returns a fresh instance each time to prevent cross-test mutation.
internal/testutil/mocklinter/mocklinter.go:22
↓ 8 callersFunctionSafeSplit
SafeSplit splits a string by a separator and safely returns the element at the given index. If the index is out of range, an empty string is returned.
internal/foundation/str/str.go:10
↓ 8 callersFunctionSameFile
SameFile checks if two paths reference the same file (same inode).
internal/foundation/fs/fs.go:107
↓ 8 callersFunctiongetAttempts
()
internal/cloud/license.go:184
↓ 8 callersFunctiongetFilesAndCompilers
getFilesAndCompilers returns a list of files with their corresponding compiler's include directories
clang/cmake.go:94
↓ 8 callersMethodread
(self)
scripts/dockerfiles_test.py:123
↓ 8 callersFunctionrunProcessConfigFull
( t *testing.T, projectDir string, version string, includes []qdyaml.Clude, excludes []qdyaml.Clude, )
clang/config_test.go:59
↓ 8 callersFunctionrunSplitTable
(t *testing.T, cases []splitCase)
internal/foundation/shlex/split_test.go:203
next →1–100 of 1,503, ranked by callers