A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
This report summarizes scanner evidence for spack/spack, a Python project with 5,138 GitHub stars. SynthScan examined 266,039 lines of code across 1299 source files, recording 5146 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 22.3 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3951 finding(s).
Are imports declared and package/API names verified? 723 finding(s).
Are wrappers, guards, and repeated structures necessary? 3673 finding(s).
Which changes need focused human review? 5146 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 5146 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …st_repos/spack_repo/tutorial/packages/mpich/package.py | 77 | def setup_dependent_build_environment( | CODE |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 370 | def ensure_parallel_compiler_wrappers(self): | CODE |
| LOW | …ack_repo/builtin_mock/packages/cmake_client/package.py | 72 | def setup_dependent_build_environment( | CODE |
| LOW | …epos/spack_repo/builtin_mock/packages/cmake/package.py | 52 | def setup_dependent_build_environment( | CODE |
| LOW | …spack_repo/builtin_mock/packages/hash_test1/package.py | 32 | def setup_dependent_build_environment( | CODE |
| LOW | …repo/builtin_mock/packages/compiler_wrapper/package.py | 145 | def setup_dependent_build_environment( | CODE |
| LOW | …repo/builtin_mock/packages/compiler_wrapper/package.py | 244 | def _spack_compiler_attribute(*, language: str) -> str: | CODE |
| LOW | …_mock/packages/autotools_config_replacement/package.py | 47 | def create_the_package_sources(self): | CODE |
| LOW | …spack_repo/builtin_mock/packages/hash_test2/package.py | 28 | def setup_dependent_build_environment( | CODE |
| LOW | …spack_repo/builtin_mock/packages/hash_test3/package.py | 27 | def setup_dependent_build_environment( | CODE |
| LOW | …t_repos/spack_repo/builtin_mock/build_systems/cmake.py | 36 | def flags_to_build_system_args(self, flags): | CODE |
| LOW | …pos/spack_repo/builtin_mock/build_systems/autotools.py | 30 | def flags_to_build_system_args(self, flags): | CODE |
| LOW | .github/workflows/bin/format-rst.py | 159 | def _is_glossary_term_paragraph(node: nodes.Node) -> bool: | CODE |
| LOW | lib/spack/docs/conf.py | 238 | def add_package_api_version_line(app, what, name: str, obj, options, lines: List[str]): | CODE |
| LOW | lib/spack/spack/store.py | 270 | def _construct_upstream_dbs_from_install_roots( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 275 | def get_relative_path_components(cls, component: BuildcacheComponent) -> List[str]: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 312 | def get_buildcache_component_include_pattern( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 340 | def current_component_to_media_type(cls, component: BuildcacheComponent) -> str: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 345 | def oldest_component_to_media_type(cls, component: BuildcacheComponent) -> str: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 450 | def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1009 | def get_buildcache_component_include_pattern( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1041 | def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1119 | def _entries_from_cache_aws_cli(url: str, component_type: BuildcacheComponent): | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1181 | def _entries_from_cache_fallback(url: str, component_type: BuildcacheComponent): | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1297 | def compressed_json_from_dict( | CODE |
| LOW | lib/spack/spack/caches.py | 33 | def _create_global_misc_cache() -> spack.util.file_cache.FileCache: | CODE |
| LOW | lib/spack/spack/mixins.py | 52 | def _filter_compiler_wrappers_impl(pkg_or_builder): | CODE |
| LOW | lib/spack/spack/verify_libraries.py | 181 | def before_visit_symlinked_dir(self, root: str, rel_path: str, depth: int) -> bool: | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 686 | def _sanity_check_view_projection(self, specs): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 761 | def _source_merge_visitor_to_merge_map(self, visitor: MultiPrefixMerger): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 773 | def relative_metadata_dir_for_spec(self, spec): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 807 | def get_relative_projection_for_spec(self, spec): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 894 | def is_folder_on_case_insensitive_filesystem(path: str) -> bool: | CODE |
| LOW | lib/spack/spack/config.py | 462 | def _process_dict_keyname_overrides(data: YamlConfigDict) -> YamlConfigDict: | CODE |
| LOW | lib/spack/spack/config.py | 804 | def active_include_section_scopes(self) -> List[ConfigScope]: | CODE |
| LOW | lib/spack/spack/config.py | 1652 | def config_paths_from_entry_points() -> List[Tuple[str, str]]: | CODE |
| LOW | lib/spack/spack/config.py | 2280 | def substitute_config_variables(path, config: Optional["Configuration"] = None): | CODE |
| LOW | lib/spack/spack/config.py | 2319 | def substitute_path_variables(path, config: Optional["Configuration"] = None): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 527 | def _ensure_packages_are_pickeleable(pkgs, error_cls): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 543 | def _ensure_packages_are_unparseable(pkgs, error_cls): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 570 | def _ensure_all_versions_can_produce_a_fetcher(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 199 | def _search_duplicate_specs_in_externals(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 240 | def _avoid_mismatched_variants(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 304 | def _ensure_all_virtual_packages_have_default_providers(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 320 | def _ensure_no_folders_without_package_py(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 381 | def _check_build_test_callbacks(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 403 | def _directives_can_be_evaluated(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 479 | def _search_for_reserved_attributes_names_in_packages(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 511 | def _ensure_all_package_names_are_lowercase(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 623 | def _ensure_docstring_and_no_fixme(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 692 | def _ensure_env_methods_are_ported_to_builders(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 816 | def _ensure_when_is_not_combined_with_phase_callbacks(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 954 | def _variant_issues_in_directives(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1046 | def _issues_in_depends_on_directive(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1060 | def check_virtual_with_variants(spec, msg): | CODE |
| LOW | lib/spack/spack/audit.py | 1136 | def _ensure_variant_defaults_are_parsable(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1174 | def _ensure_variants_have_descriptions(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1189 | def _version_constraints_are_satisfiable_by_some_version_in_repo(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1240 | def _ensure_maintainers_are_not_placeholders(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1255 | def _issues_in_directive_constraint(pkg, constraint, *, directive, error_cls, filename, requestor): | CODE |
| 3105 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …untime_test/packages/intel_oneapi_compilers/package.py | 60 | except (RuntimeError, KeyError): | CODE |
| HIGH | …repos/spack_repo/builtin_mock/packages/llvm/package.py | 72 | except ProcessError: | CODE |
| HIGH | …pack_repo/builtin_mock/packages/gcc_runtime/package.py | 126 | except AttributeError: | CODE |
| HIGH | …epos/spack_repo/builtin_mock/build_systems/compiler.py | 99 | except spack.util.executable.ProcessError: | CODE |
| HIGH | lib/spack/spack/store.py | 181 | except FileNotFoundError: | CODE |
| HIGH | lib/spack/spack/enums.py | 81 | except KeyError: | CODE |
| HIGH | lib/spack/spack/config.py | 2222 | except ValueError: | CODE |
| HIGH | lib/spack/spack/audit.py | 1463 | except (AttributeError, ValueError): | CODE |
| HIGH | lib/spack/spack/build_environment.py | 1397 | except Exception: | CODE |
| HIGH | lib/spack/spack/build_environment.py | 1239 | except NameError: | CODE |
| HIGH | lib/spack/spack/tengine.py | 31 | except AttributeError: | CODE |
| HIGH | lib/spack/spack/package_base.py | 1058 | except spack.error.FetchError: | CODE |
| HIGH | lib/spack/spack/database.py | 987 | except FileNotFoundError: | CODE |
| HIGH | lib/spack/spack/database.py | 1191 | except BaseException: | CODE |
| HIGH | lib/spack/spack/buildcache_migrate.py | 111 | except (web_util.SpackWebError, OSError): | CODE |
| HIGH | lib/spack/spack/fetch_strategy.py | 783 | except OSError: | CODE |
| HIGH | lib/spack/spack/fetch_strategy.py | 1587 | except OSError: | CODE |
| HIGH | lib/spack/spack/binary_distribution.py | 2389 | except Exception: | CODE |
| HIGH | lib/spack/spack/spec.py | 1520 | except AttributeError: | CODE |
| HIGH | lib/spack/spack/install_test.py | 1106 | except spack.repo.UnknownPackageError: | CODE |
| HIGH | lib/spack/spack/old_installer.py | 1664 | except Exception: | CODE |
| HIGH | lib/spack/spack/old_installer.py | 2630 | except Exception: | CODE |
| HIGH | lib/spack/spack/repo.py | 934 | except spack.error.PatchLookupError: | CODE |
| HIGH | lib/spack/spack/repo.py | 1301 | except ValueError: | CODE |
| HIGH | lib/spack/spack/repo.py | 2378 | except Exception: | CODE |
| HIGH | lib/spack/spack/repo.py | 1912 | except spack.util.executable.ProcessError: | CODE |
| HIGH | lib/spack/spack/stage.py | 1039 | except FileNotFoundError: | CODE |
| HIGH | lib/spack/spack/stage.py | 747 | except OSError: | CODE |
| HIGH | lib/spack/spack/stage.py | 1032 | except (AlreadyExistsError, FileExistsError): | CODE |
| HIGH | lib/spack/spack/stage.py | 1044 | except FileNotFoundError: | CODE |
| HIGH | lib/spack/spack/relocate.py | 148 | except ValueError: | CODE |
| HIGH | lib/spack/spack/cray_manifest.py | 163 | except TypeError: | CODE |
| HIGH | lib/spack/spack/cmd/env.py | 523 | except (spack.config.ConfigFormatError, ev.SpackEnvironmentConfigError): | CODE |
| HIGH | lib/spack/spack/cmd/__init__.py | 177 | except spack.error.SpecSyntaxError: | CODE |
| HIGH | lib/spack/spack/cmd/__init__.py | 578 | except syaml.SpackYAMLError: | CODE |
| HIGH | lib/spack/spack/cmd/__init__.py | 756 | except (ValueError, OSError): | CODE |
| HIGH | lib/spack/spack/cmd/url.py | 221 | except UndetectableVersionError: | CODE |
| HIGH | lib/spack/spack/cmd/url.py | 233 | except UndetectableNameError: | CODE |
| HIGH | lib/spack/spack/cmd/blame.py | 229 | except spack.repo.UnknownNamespaceError: | CODE |
| HIGH | lib/spack/spack/cmd/uninstall.py | 207 | except ev.SpackEnvironmentError: | CODE |
| HIGH | lib/spack/spack/cmd/repo.py | 440 | except spack.repo.RepoError: | CODE |
| HIGH | lib/spack/spack/cmd/buildcache.py | 960 | except ValueError: | CODE |
| HIGH | lib/spack/spack/cmd/buildcache.py | 1053 | except ValueError: | CODE |
| HIGH | lib/spack/spack/cmd/external.py | 103 | except NoManifestFileError: | CODE |
| HIGH | lib/spack/spack/bootstrap/core.py | 615 | except OSError: | CODE |
| HIGH | lib/spack/spack/test/conftest.py | 747 | except ImportError: | CODE |
| HIGH | lib/spack/spack/test/stage.py | 541 | except spack.error.FetchError: | CODE |
| HIGH | lib/spack/spack/test/stage.py | 743 | except OSError: | CODE |
| HIGH | lib/spack/spack/test/cmd/env.py | 3805 | except Exception: | CODE |
| HIGH | lib/spack/spack/test/cmd/env.py | 4910 | except ev.SpackEnvironmentError: | CODE |
| HIGH | lib/spack/spack/test/util/lock_unix.py | 78 | except ImportError: | CODE |
| HIGH | lib/spack/spack/test/util/filesystem.py | 354 | except RuntimeError: | CODE |
| HIGH | lib/spack/spack/test/util/tty/log.py | 23 | except ImportError: | CODE |
| HIGH | lib/spack/spack/test/llnl/util/file_list.py | 319 | except IndexError: | CODE |
| HIGH | lib/spack/spack/util/lang.py | 821 | except KeyError: | CODE |
| HIGH | lib/spack/spack/util/git.py | 167 | except exe.ProcessError: | CODE |
| HIGH | lib/spack/spack/util/git.py | 178 | except exe.ProcessError: | CODE |
| HIGH | lib/spack/spack/util/web.py | 317 | except Exception: | CODE |
| HIGH | lib/spack/spack/util/argparsewriter.py | 201 | except BrokenPipeError: | CODE |
| HIGH | lib/spack/spack/util/file_cache.py | 209 | except FileNotFoundError: | CODE |
| 67 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_runtime_test/packages/intel_oneapi_runtime/package.py | 4 | CODE | |
| LOW | …untime_test/packages/intel_oneapi_compilers/package.py | 8 | CODE | |
| LOW | …k_repo/compiler_runtime_test/packages/pkg_a/package.py | 6 | CODE | |
| LOW | …k_repo/compiler_runtime_test/packages/pkg_b/package.py | 6 | CODE | |
| LOW | …epos/spack_repo/builder_test/packages/gmake/package.py | 7 | CODE | |
| LOW | …ck_repo/builder_test/packages/custom_phases/package.py | 8 | CODE | |
| LOW | …epo/builder_test/packages/old_style_derived/package.py | 4 | CODE | |
| LOW | …/spack_repo/builder_test/packages/gnuconfig/package.py | 6 | CODE | |
| LOW | …/spack_repo/builder_test/packages/callbacks/package.py | 8 | CODE | |
| LOW | …ilder_test/packages/old_style_custom_phases/package.py | 8 | CODE | |
| LOW | …pack_repo/builder_test/packages/inheritance/package.py | 8 | CODE | |
| LOW | …o/builder_test/packages/old_style_autotools/package.py | 8 | CODE | |
| LOW | …po/builder_test/packages/builder_and_mixins/package.py | 8 | CODE | |
| LOW | …st_repos/spack_repo/tutorial/packages/mpich/package.py | 9 | CODE | |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 11 | CODE | |
| LOW | …/spack_repo/tutorial/packages/netlib_lapack/package.py | 7 | CODE | |
| LOW | …est_repos/spack_repo/tutorial/packages/elpa/package.py | 7 | CODE | |
| LOW | …epos/spack_repo/tutorial/packages/armadillo/package.py | 7 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/u/package.py | 6 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/t/package.py | 6 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/v/package.py | 6 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/x/package.py | 6 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/y/package.py | 6 | CODE | |
| LOW | …test_repos/spack_repo/flags_test/packages/w/package.py | 6 | CODE | |
| LOW | …duplicates_test/packages/unify_build_deps_b/package.py | 4 | CODE | |
| LOW | …s/spack_repo/duplicates_test/packages/gmake/package.py | 6 | CODE | |
| LOW | …duplicates_test/packages/unify_build_deps_c/package.py | 4 | CODE | |
| LOW | …/spack_repo/duplicates_test/packages/python/package.py | 6 | CODE | |
| LOW | …os/spack_repo/duplicates_test/packages/hdf5/package.py | 6 | CODE | |
| LOW | …_repo/duplicates_test/packages/pinned_gmake/package.py | 6 | CODE | |
| LOW | …spack_repo/duplicates_test/packages/cycle_a/package.py | 6 | CODE | |
| LOW | …k_repo/duplicates_test/packages/py_floating/package.py | 6 | CODE | |
| LOW | …repo/duplicates_test/packages/virtual_build/package.py | 6 | CODE | |
| LOW | …duplicates_test/packages/unify_build_deps_a/package.py | 4 | CODE | |
| LOW | …ck_repo/duplicates_test/packages/pkg_config/package.py | 6 | CODE | |
| LOW | …ck_repo/duplicates_test/packages/py_shapely/package.py | 6 | CODE | |
| LOW | …spack_repo/duplicates_test/packages/cycle_b/package.py | 6 | CODE | |
| LOW | …repo/duplicates_test/packages/py_setuptools/package.py | 6 | CODE | |
| LOW | …pack_repo/duplicates_test/packages/py_numpy/package.py | 6 | CODE | |
| LOW | …pack_repo/builtin_mock/packages/rpath_other/package.py | 7 | CODE | |
| LOW | …ck_repo/builtin_mock/packages/mixing_parent/package.py | 5 | CODE | |
| LOW | …iltin_mock/packages/depends_on_manyvariants/package.py | 7 | CODE | |
| LOW | …epo/builtin_mock/packages/git_url_top_level/package.py | 7 | CODE | |
| LOW | …s/spack_repo/builtin_mock/packages/cvs_test/package.py | 7 | CODE | |
| LOW | …n_mock/packages/url_only_override_with_gaps/package.py | 7 | CODE | |
| LOW | …repos/spack_repo/builtin_mock/packages/mesa/package.py | 4 | CODE | |
| LOW | …builtin_mock/packages/long_boost_dependency/package.py | 4 | CODE | |
| LOW | …k_repo/builtin_mock/packages/attributes_foo/package.py | 8 | CODE | |
| LOW | …_mock/packages/dep_with_variants_if_develop/package.py | 6 | CODE | |
| LOW | …ackages/autotools_conditional_variants_test/package.py | 8 | CODE | |
| LOW | …epos/spack_repo/builtin_mock/packages/hwloc/package.py | 7 | CODE | |
| LOW | …_repo/builtin_mock/packages/nosource_bundle/package.py | 8 | CODE | |
| LOW | …repos/spack_repo/builtin_mock/packages/ruff/package.py | 7 | CODE | |
| LOW | …ckages/conditional_constrained_dependencies/package.py | 6 | CODE | |
| LOW | …os/spack_repo/builtin_mock/packages/canfail/package.py | 6 | CODE | |
| LOW | …k/packages/test_dep_with_imposed_conditions/package.py | 7 | CODE | |
| LOW | …uiltin_mock/packages/module_manpath_prepend/package.py | 7 | CODE | |
| LOW | …tin_mock/packages/both_link_and_build_dep_a/package.py | 7 | CODE | |
| LOW | …po/builtin_mock/packages/multi_provider_mpi/package.py | 7 | CODE | |
| LOW | …ltin_mock/packages/conditional_build_system/package.py | 7 | CODE | |
| 631 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …in_mock/packages/variant_function_validator/package.py | 23 | # Create a situation where, if the penalty for the variant defined by a function | COMMENT |
| MEDIUM | …repos/spack_repo/builtin_mock/packages/llvm/package.py | 91 | # Create the minimal compiler that will fool `spack compiler find` | COMMENT |
| MEDIUM | …epos/spack_repo/builtin_mock/packages/symly/package.py | 43 | # Create a symlinked directory. | STRING |
| MEDIUM | …_repos/spack_repo/builtin_mock/packages/gcc/package.py | 80 | # Create the minimal compiler that will fool `spack compiler find` | COMMENT |
| MEDIUM | …uiltin_mock/packages/intel_oneapi_compilers/package.py | 39 | # Create the minimal compiler that will fool `spack compiler find` | COMMENT |
| MEDIUM | .github/workflows/bin/canonicalize.py | 71 | # Create a git repo in output_dir to track changes | COMMENT |
| MEDIUM | lib/spack/docs/conf.py | 11 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | lib/spack/spack/multimethod.py | 258 | # Create a multimethod with this name if there is not one already | COMMENT |
| MEDIUM | lib/spack/spack/config.py | 4 | """This module implements Spack's configuration file handling. | STRING |
| MEDIUM | lib/spack/spack/config.py | 282 | """This class represents a configuration scope in a single YAML file.""" | STRING |
| MEDIUM | lib/spack/spack/database.py | 1274 | # Create a new install record with no deps initially. | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1309 | # Create an oci.image.layer aka tarball of the package | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1386 | # Create an oci.image.config file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1659 | # Create the index.json file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1664 | # Create an empty config.json file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 2174 | # Create the install prefix | COMMENT |
| MEDIUM | lib/spack/spack/install_test.py | 932 | # Create the test log file and report the error. | COMMENT |
| MEDIUM | lib/spack/spack/extensions.py | 104 | # Create a searchable package for both the root folder of the extension | COMMENT |
| MEDIUM | lib/spack/spack/old_installer.py | 1175 | # Create a child process to do the actual installation. | COMMENT |
| MEDIUM | lib/spack/spack/old_installer.py | 2482 | """This class implements the part installation that happens in the child process.""" | STRING |
| MEDIUM | lib/spack/spack/repo.py | 424 | # Create a dictionary that will store the mapping between a | COMMENT |
| MEDIUM | lib/spack/spack/stage.py | 1224 | # Create a temporary file in the stage dir with lines of the form | COMMENT |
| MEDIUM | lib/spack/spack/stage.py | 1229 | # Create a temporary file by hashing its contents. | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 212 | # Create a list of subcommand actions. Argparse internals are nasty! | COMMENT |
| MEDIUM⚡ | lib/spack/spack/main.py | 950 | # Create a parser with a simple positional argument first. We'll | COMMENT |
| MEDIUM | lib/spack/spack/tokenize.py | 4 | """This module provides building blocks for tokenizing strings. Users can define tokens by | STRING |
| MEDIUM | lib/spack/spack/variant.py | 607 | # Create a new object to be returned | COMMENT |
| MEDIUM | lib/spack/spack/variant.py | 618 | # Create a new object to be returned | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 1101 | # Create the package template object | STRING |
| MEDIUM | lib/spack/spack/cmd/create.py | 1109 | # Create a directory for the new package | STRING |
| MEDIUM | lib/spack/spack/cmd/gpg.py | 146 | # Create the new key | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 306 | # Create an environment and Gitlab CI config to mimic spack-packages, living | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 1656 | # Create the configure script | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 1896 | # Create the main repository | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 2139 | # Create a few header files: | COMMENT |
| MEDIUM | lib/spack/spack/test/config.py | 1496 | # Creating an environment pushes a new scope | COMMENT |
| MEDIUM | lib/spack/spack/test/config.py | 1531 | # Creating an environment pushes a new scope | COMMENT |
| MEDIUM | lib/spack/spack/test/env.py | 1449 | # Create a second environment, reuse from the previous one and check pkg-a is the same | COMMENT |
| MEDIUM | lib/spack/spack/test/env.py | 1150 | # Define a toolchain in spack.yaml | STRING |
| MEDIUM⚡ | lib/spack/spack/test/build_environment.py | 296 | # Create a mock spec object with the minimum attributes needed for the test | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/build_environment.py | 306 | # Create a simplified SetupContext-like class that only contains what we need | COMMENT |
| MEDIUM | lib/spack/spack/test/database.py | 1046 | # Create the lockfile and failures directory otherwise | COMMENT |
| MEDIUM | lib/spack/spack/test/database.py | 1337 | # Create a new instance s.t. we don't have cached specs in memory | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 286 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 296 | # Create a buildcache and update index | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 1234 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 112 | # Create a buildache | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 256 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 382 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 415 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 422 | # Create an environment and install specs for the view | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 452 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 459 | # Create an environment and install specs for the view | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 928 | # Create a binary_distribution file in the .spack folder | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 971 | # Create a tarball with a certain mtime of bin/app | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 1061 | # Create a tarball (using absolute path for prefix dir) | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 1115 | # Create a broken tarball with just a file, no directories. | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 1551 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 566 | # Create a buildcache with the installed spec. | STRING |
| MEDIUM | lib/spack/spack/test/traverse.py | 341 | # Create a graph that both BFS and DFS would not traverse in topo order, given the | STRING |
| 90 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …st_repos/spack_repo/tutorial/packages/mpich/package.py | 116 | CODE | |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 213 | CODE | |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 396 | CODE | |
| LOW | …pack_repo/builtin_mock/packages/gcc_runtime/package.py | 163 | CODE | |
| LOW | …epos/spack_repo/builtin_mock/build_systems/compiler.py | 114 | CODE | |
| LOW | .github/workflows/bin/format-rst.py | 175 | CODE | |
| LOW | .github/workflows/bin/canonicalize.py | 37 | CODE | |
| LOW | lib/spack/spack/patch.py | 482 | CODE | |
| LOW | lib/spack/spack/patch.py | 526 | CODE | |
| LOW | lib/spack/spack/provider_index.py | 51 | CODE | |
| LOW | lib/spack/spack/provider_index.py | 107 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 1119 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 1181 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 312 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 450 | CODE | |
| LOW | lib/spack/spack/deptypes.py | 47 | CODE | |
| LOW | lib/spack/spack/deptypes.py | 101 | CODE | |
| LOW | lib/spack/spack/verify_libraries.py | 184 | CODE | |
| LOW | lib/spack/spack/filesystem_view.py | 553 | CODE | |
| LOW | lib/spack/spack/filesystem_view.py | 613 | CODE | |
| LOW | lib/spack/spack/config.py | 1853 | CODE | |
| LOW | lib/spack/spack/config.py | 1910 | CODE | |
| LOW | lib/spack/spack/config.py | 158 | CODE | |
| LOW | lib/spack/spack/config.py | 462 | CODE | |
| LOW | lib/spack/spack/config.py | 1512 | CODE | |
| LOW | lib/spack/spack/config.py | 2428 | CODE | |
| LOW | lib/spack/spack/audit.py | 240 | CODE | |
| LOW | lib/spack/spack/audit.py | 419 | CODE | |
| LOW | lib/spack/spack/audit.py | 479 | CODE | |
| LOW | lib/spack/spack/audit.py | 623 | CODE | |
| LOW | lib/spack/spack/audit.py | 655 | CODE | |
| LOW | lib/spack/spack/audit.py | 816 | CODE | |
| LOW | lib/spack/spack/audit.py | 928 | CODE | |
| LOW | lib/spack/spack/audit.py | 954 | CODE | |
| LOW | lib/spack/spack/audit.py | 1046 | CODE | |
| LOW | lib/spack/spack/audit.py | 1174 | CODE | |
| LOW | lib/spack/spack/audit.py | 1189 | CODE | |
| LOW | lib/spack/spack/audit.py | 1415 | CODE | |
| LOW | lib/spack/spack/audit.py | 747 | CODE | |
| LOW | lib/spack/spack/directives_meta.py | 130 | CODE | |
| LOW | lib/spack/spack/directives_meta.py | 149 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 906 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1141 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1499 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1057 | CODE | |
| LOW | lib/spack/spack/package_base.py | 158 | CODE | |
| LOW | lib/spack/spack/package_base.py | 1676 | CODE | |
| LOW | lib/spack/spack/package_base.py | 2142 | CODE | |
| LOW | lib/spack/spack/database.py | 1176 | CODE | |
| LOW | lib/spack/spack/externals.py | 119 | CODE | |
| LOW | lib/spack/spack/externals.py | 271 | CODE | |
| LOW | lib/spack/spack/externals.py | 329 | CODE | |
| LOW | lib/spack/spack/repo_migrate.py | 18 | CODE | |
| LOW | lib/spack/spack/repo_migrate.py | 34 | CODE | |
| LOW | lib/spack/spack/repo_migrate.py | 249 | CODE | |
| LOW | lib/spack/spack/graph.py | 307 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 42 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 149 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 280 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 335 | CODE | |
| 276 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ckages/conditional_constrained_dependencies/package.py | 0 | package that has a dependency with a variant which adds a transitive dependency forced to use non default values. | STRING |
| HIGH | …epo/builtin_mock/packages/dep_with_variants/package.py | 0 | package that has a dependency with a variant which adds a transitive dependency forced to use non default values. | STRING |
| HIGH | …pack_repo/builtin_mock/packages/ecp_viz_sdk/package.py | 0 | package that has a dependency with a variant which adds a transitive dependency forced to use non default values. | STRING |
| HIGH | …tin_mock/packages/both_link_and_build_dep_a/package.py | 0 | structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you | STRING |
| HIGH | …tin_mock/packages/both_link_and_build_dep_b/package.py | 0 | structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you | STRING |
| HIGH | …tin_mock/packages/both_link_and_build_dep_c/package.py | 0 | structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you | STRING |
| HIGH | …pack_repo/builtin_mock/packages/v1_provider/package.py | 0 | mimic the real netlib-lapack, that may be built on top of an optimized blas. | STRING |
| HIGH | …/builtin_mock/packages/conditional_provider/package.py | 0 | mimic the real netlib-lapack, that may be built on top of an optimized blas. | STRING |
| HIGH | …pack_repo/builtin_mock/packages/v1_consumer/package.py | 0 | mimic the real netlib-lapack, that may be built on top of an optimized blas. | STRING |
| HIGH | …uiltin_mock/packages/dep_diamond_patch_mid2/package.py | 0 | package that requires a patch on a dependency w / \ x y \ / z this is package x | STRING |
| HIGH | …builtin_mock/packages/dep_diamond_patch_top/package.py | 0 | package that requires a patch on a dependency w / \ x y \ / z this is package x | STRING |
| HIGH | …uiltin_mock/packages/dep_diamond_patch_mid1/package.py | 0 | package that requires a patch on a dependency w / \ x y \ / z this is package x | STRING |
| HIGH | …o/builtin_mock/packages/multimethod_diamond/package.py | 0 | this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator tha | STRING |
| HIGH | …in_mock/packages/multimethod_diamond_parent/package.py | 0 | this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator tha | STRING |
| HIGH | …builtin_mock/packages/multimethod_inheritor/package.py | 0 | this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator tha | STRING |
| HIGH | …pack_repo/builtin_mock/packages/multimethod/package.py | 0 | this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator tha | STRING |
| HIGH | …uiltin_mock/packages/cumulative_vrange_root/package.py | 0 | test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >= | STRING |
| HIGH | …ltin_mock/packages/cumulative_vrange_middle/package.py | 0 | test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >= | STRING |
| HIGH | …ltin_mock/packages/cumulative_vrange_bottom/package.py | 0 | test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >= | STRING |
| HIGH | …/packages/variant_on_dependency_condition_a/package.py | 0 | test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: depend | STRING |
| HIGH | …ckages/variant_on_dependency_condition_root/package.py | 0 | test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: depend | STRING |
| HIGH | …/packages/variant_on_dependency_condition_b/package.py | 0 | test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: depend | STRING |
| HIGH | …_repo/builtin_mock/packages/dt_diamond_left/package.py | 0 | this package has an indirect diamond dependency on dt-diamond-bottom | STRING |
| HIGH | …spack_repo/builtin_mock/packages/dt_diamond/package.py | 0 | this package has an indirect diamond dependency on dt-diamond-bottom | STRING |
| HIGH | …epo/builtin_mock/packages/dt_diamond_bottom/package.py | 0 | this package has an indirect diamond dependency on dt-diamond-bottom | STRING |
| HIGH | …repo/builtin_mock/packages/dt_diamond_right/package.py | 0 | this package has an indirect diamond dependency on dt-diamond-bottom | STRING |
| HIGH | …po/builtin_mock/packages/parent_foo_bar_fee/package.py | 0 | this package has a variant "foo", which is true by default, and depends on another package which has the same variant de | STRING |
| HIGH | …k_repo/builtin_mock/packages/parent_foo_bar/package.py | 0 | this package has a variant "foo", which is true by default, and depends on another package which has the same variant de | STRING |
| HIGH | …spack_repo/builtin_mock/packages/parent_foo/package.py | 0 | this package has a variant "foo", which is true by default, and depends on another package which has the same variant de | STRING |
| HIGH | …k/packages/conditionally_extends_direct_dep/package.py | 0 | package that tests if the extends directive supports a spec. | STRING |
| HIGH | …ack_repo/builtin_mock/packages/extends_spec/package.py | 0 | package that tests if the extends directive supports a spec. | STRING |
| HIGH | …ckages/conditionally_extends_transitive_dep/package.py | 0 | package that tests if the extends directive supports a spec. | STRING |
| HIGH | …epos/spack_repo/builtin_mock/packages/patch/package.py | 0 | package that conditionally requires a patched version of a dependency. | STRING |
| HIGH | …po/builtin_mock/packages/patch_a_dependency/package.py | 0 | package that conditionally requires a patched version of a dependency. | STRING |
| HIGH | …ock/packages/conditionally_patch_dependency/package.py | 0 | package that conditionally requires a patched version of a dependency. | STRING |
| HIGH | …/spack_repo/builtin_mock/packages/diff_test/package.py | 0 | zlib replacement with optimizations for next generation systems. | STRING |
| HIGH | …spack/spack/test/data/conftest/diff-test/package-3.txt | 0 | zlib replacement with optimizations for next generation systems. | STRING |
| HIGH | …spack/spack/test/data/conftest/diff-test/package-2.txt | 0 | zlib replacement with optimizations for next generation systems. | STRING |
| HIGH | …spack/spack/test/data/conftest/diff-test/package-0.txt | 0 | zlib replacement with optimizations for next generation systems. | STRING |
| HIGH | …spack/spack/test/data/conftest/diff-test/package-1.txt | 0 | zlib replacement with optimizations for next generation systems. | STRING |
| HIGH | lib/spack/spack/test/url_fetch.py | 0 | ensure a fetch after downloading is effectively a no-op. | STRING |
| HIGH | lib/spack/spack/test/svn_fetch.py | 0 | ensure a fetch after downloading is effectively a no-op. | STRING |
| HIGH | lib/spack/spack/test/cvs_fetch.py | 0 | ensure a fetch after downloading is effectively a no-op. | STRING |
| HIGH | lib/spack/spack/test/git_fetch.py | 0 | tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. chec | STRING |
| HIGH | lib/spack/spack/test/svn_fetch.py | 0 | tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. chec | STRING |
| HIGH | lib/spack/spack/test/hg_fetch.py | 0 | tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. chec | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | etc/spack/defaults/linux/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/linux/modules.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/darwin/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/darwin/packages.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/darwin/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/darwin/modules.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/windows/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/windows/packages.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/concretizer.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/concretizer.yaml | 11 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/config.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/config.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/packages.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/repos.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/repos.yaml | 12 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | etc/spack/defaults/base/modules.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ack_repo/builtin_mock/packages/git_sparse_b/package.py | 15 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | …_repo/builtin_mock/packages/git_test_commit/package.py | 17 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | …_repo/builtin_mock/packages/git_test_commit/package.py | 20 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | …_repo/builtin_mock/packages/git_test_commit/package.py | 25 | # ---------------------------- | COMMENT |
| MEDIUM | …ack_repo/builtin_mock/packages/git_sparse_a/package.py | 15 | # ---------------------------- | COMMENT |
| MEDIUM | .github/workflows/triage.yml | 1 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/triage.yml | 7 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lib/spack/spack/main.py | 941 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | lib/spack/spack/main.py | 947 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 969 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 974 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 1016 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 1018 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 39 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 54 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/test/spec_semantics.py | 1133 | # ======================================================================== | COMMENT |
| MEDIUM | lib/spack/spack/test/spec_semantics.py | 1135 | # ======================================================================== | COMMENT |
| MEDIUM | lib/spack/spack/test/data/config/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/test/data/config/modules.yaml | 15 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/util/url.py | 173 | # ============================================================================== | COMMENT |
| MEDIUM | lib/spack/spack/util/url.py | 175 | # ============================================================================== | COMMENT |
| MEDIUM | lib/spack/spack/util/ctest_log_parser.py | 2 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/util/ctest_log_parser.py | 34 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/util/ctest_log_parser.py | 41 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/util/ctest_log_parser.py | 56 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/util/path.py | 142 | # --------------------- | COMMENT |
| MEDIUM⚡ | share/spack/qa/setup-env-test.sh | 20 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | share/spack/qa/setup-env-test.sh | 26 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | share/spack/qa/setup-env-test.sh | 31 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | share/spack/qa/setup-env-test.sh | 33 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | share/spack/qa/setup-env-test.sh | 85 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | share/spack/qa/setup-env-test.sh | 87 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | share/spack/qa/setup-env-test.sh | 245 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | share/spack/qa/setup-env-test.sh | 248 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | share/spack/qa/test-framework.sh | 9 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | share/spack/qa/test-framework.sh | 11 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | share/spack/qa/test-framework.sh | 31 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | share/spack/qa/test-framework.sh | 33 | # ------------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …repos/spack_repo/builtin_mock/packages/llvm/package.py | 74 | except Exception as e: | CODE |
| MEDIUM | …repos/spack_repo/builtin_mock/packages/llvm/package.py | 61 | def determine_version(cls, exe): | CODE |
| LOW | …pack_repo/builtin_mock/packages/gcc_runtime/package.py | 185 | except Exception: | CODE |
| LOW | …epos/spack_repo/builtin_mock/build_systems/compiler.py | 101 | except Exception as e: | CODE |
| LOW | .github/workflows/bin/format-rst.py | 202 | except Exception as e: | CODE |
| LOW | lib/spack/spack/patch.py | 466 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/url_buildcache.py | 546 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/url_buildcache.py | 555 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/url_buildcache.py | 564 | except Exception as e: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 939 | except Exception as err: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1332 | except Exception as e: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1370 | except Exception: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 535 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 553 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 561 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 580 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 270 | except Exception: | CODE |
| LOW | lib/spack/spack/audit.py | 411 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 945 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 1116 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 1223 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_prune.py | 85 | except Exception as e: | CODE |
| LOW | lib/spack/spack/buildcache_prune.py | 165 | except Exception as e: | CODE |
| LOW | lib/spack/spack/buildcache_prune.py | 411 | except Exception as e: | CODE |
| LOW | lib/spack/spack/build_environment.py | 1397 | except Exception: | CODE |
| LOW | lib/spack/spack/package_base.py | 218 | except Exception as e: | CODE |
| LOW | lib/spack/spack/package_base.py | 245 | except Exception as e: | CODE |
| LOW | lib/spack/spack/package_base.py | 2176 | except Exception as error: | CODE |
| LOW | lib/spack/spack/package_base.py | 2213 | except Exception: | CODE |
| LOW | lib/spack/spack/database.py | 849 | except Exception as e: | CODE |
| LOW | lib/spack/spack/database.py | 907 | except Exception as e: | CODE |
| LOW | lib/spack/spack/database.py | 917 | except Exception as e: | CODE |
| LOW | lib/spack/spack/buildcache_migrate.py | 214 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_migrate.py | 222 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_migrate.py | 248 | except Exception: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 37 | except Exception: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 161 | except Exception as e: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 353 | except Exception: | CODE |
| LOW | lib/spack/spack/fetch_strategy.py | 461 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 685 | except Exception as e: # missing or unreadable: start from scratch | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 739 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 790 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 811 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 831 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1299 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1787 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1796 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1816 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1828 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1847 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2186 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2196 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2389 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2892 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2898 | except Exception as e: | CODE |
| LOW | lib/spack/spack/spec.py | 3062 | except Exception as e: | CODE |
| LOW | lib/spack/spack/install_test.py | 1160 | except Exception as e: | CODE |
| LOW | lib/spack/spack/old_installer.py | 550 | except Exception as e: | CODE |
| LOW | lib/spack/spack/old_installer.py | 589 | except Exception as e: | CODE |
| LOW | lib/spack/spack/old_installer.py | 1214 | except Exception as outer_exception: | CODE |
| 115 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 1 | # Copyright Spack Project Developers. See COPYRIGHT file for details. | COMMENT |
| LOW | .codecov.yml | 21 | annotations: false | COMMENT |
| LOW | etc/spack/defaults/linux/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/darwin/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/darwin/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/windows/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/base/concretizer.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/base/concretizer.yaml | 21 | # needed to reach a solution increases noticeably with the number of targets | COMMENT |
| LOW | etc/spack/defaults/base/concretizer.yaml | 81 | # Option to specify whether to support splicing. Splicing allows for | COMMENT |
| LOW | etc/spack/defaults/base/concretizer.yaml | 101 | # of solver inputs, so we only need to run setup (not solve) if there is a cache hit. | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 21 | projections: | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 41 | # Recommended options are given below. | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 61 | # | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 101 | # certificates. (e.g., curl will use use the -k option) | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 141 | COMMENT | |
| LOW | etc/spack/defaults/base/config.yaml | 161 | # The maximum number of concurrent package builds a single Spack process | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 181 | # Additional paths with read and execute permissions. | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 201 | package_lock_timeout: null | COMMENT |
| LOW | etc/spack/defaults/base/packages.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/base/repos.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | etc/spack/defaults/base/modules.yaml | 1 | # ------------------------------------------------------------------------- | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 121 | conflicts("+java", when="~shared") | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 141 | # discussed and patch is provided at | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 261 | # 1.12.0, the Autotools installation also produces a symbolic | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 381 | with working_dir(self.prefix.bin): | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/hdf5/package.py | 401 | # packages. This was fixed in the develop versions at some point: the | COMMENT |
| LOW | …/spack_repo/tutorial/packages/netlib_lapack/package.py | 61 | depends_on("netlib-xblas+fortran+plain_blas", when="+xblas") | COMMENT |
| LOW | …est_repos/spack_repo/tutorial/packages/elpa/package.py | 41 | libname = "libelpa_openmp" if "+openmp" in self.spec else "libelpa" | COMMENT |
| LOW | …epos/spack_repo/tutorial/packages/armadillo/package.py | 41 | # the right dependency. To ask a dependency, e.g. `blas`, for the | COMMENT |
| LOW | …repos/spack_repo/builtin_mock/packages/ruff/package.py | 21 | # Used to tell whether or not the package has been modified | COMMENT |
| LOW | …repos/spack_repo/builtin_mock/packages/ruff/package.py | 41 | git = "ssh://example.com/this-is-a-really-long-url/that-goes-over-99-characters/that-ruff-will-not-ignore-by-default | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 1 | #!/bin/sh -f | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 21 | # | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 41 | SPACK_DEBUG_LOG_ID | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 281 | COMMENT | |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 381 | COMMENT | |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 461 | fi | COMMENT |
| LOW | …epos/spack_repo/builtin_mock/build_systems/__init__.py | 1 | # Copyright Spack Project Developers. See COPYRIGHT file for details. | COMMENT |
| LOW | lib/spack/docs/conf.py | 1 | # Copyright Spack Project Developers. See COPYRIGHT file for details. | COMMENT |
| LOW | lib/spack/docs/conf.py | 401 | # output. They are ignored by default. | COMMENT |
| LOW | lib/spack/docs/conf.py | 441 | # relative to this directory. They are copied after the builtin static files, | COMMENT |
| LOW | lib/spack/docs/conf.py | 461 | COMMENT | |
| LOW | lib/spack/docs/conf.py | 501 | latex_engine = "lualatex" | COMMENT |
| LOW | lib/spack/docs/conf.py | 521 | # not chapters. | COMMENT |
| LOW | lib/spack/docs/spack.yaml | 1 | # Copyright Spack Project Developers. See COPYRIGHT file for details. | COMMENT |
| LOW | lib/spack/spack/package.py | 241 | COMMENT | |
| LOW | lib/spack/spack/package.py | 261 | #: Example:: | COMMENT |
| LOW | lib/spack/spack/provider_index.py | 21 | #: { full vpkg spec : set(packages providing spec) } } | COMMENT |
| LOW | lib/spack/spack/config.py | 321 | def exists(self) -> bool: | COMMENT |
| LOW | lib/spack/spack/config.py | 341 | # { | COMMENT |
| LOW | lib/spack/spack/config.py | 381 | if not self.writable: | COMMENT |
| LOW | lib/spack/spack/config.py | 1301 | except ValueError: | COMMENT |
| LOW | lib/spack/spack/directives_meta.py | 41 | #: Maps dictionary name to its descriptor instance | COMMENT |
| LOW | lib/spack/spack/package_base.py | 161 | raise spack.error.SpackError(f"{msg} [package '{name}' defines both]") | COMMENT |
| LOW | lib/spack/spack/package_base.py | 621 | #: for it. Note: accepts both file names and directory names, for example | COMMENT |
| LOW | lib/spack/spack/package_base.py | 641 | #: directories, sanity checks will fail. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 661 | #: a comment. Defaults to ``#``. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1901 | # exist, you will see one of the following error messages: | COMMENT |
| LOW | lib/spack/spack/package_base.py | 2121 | self._flag_handler = var | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/spack/spack/patch.py | 309 | Create a patch from json dictionary. Args: dictionary: dictionary representation of a patch reposit | STRING |
| HIGH | lib/spack/spack/config.py | 1266 | Instantiate a configuration scope for the configuration path. Args: path: raw include path | STRING |
| HIGH | lib/spack/spack/config.py | 1373 | Instantiate configuration scopes. Args: parent_scope: including scope Returns: configurati | STRING |
| HIGH | lib/spack/spack/config.py | 1420 | Instantiate a configuration scope for the included path. Args: parent_scope: including scope | STRING |
| HIGH | lib/spack/spack/config.py | 1513 | Clone the repository. Args: parent_scope: enclosing scope Returns: destination path if clo | STRING |
| HIGH | lib/spack/spack/config.py | 1575 | Instantiate configuration scopes for the included paths. Args: parent_scope: including scope | STRING |
| HIGH | lib/spack/spack/fetch_strategy.py | 1491 | Construct an appropriate FetchStrategy from the given keyword arguments. Args: **kwargs: dictionary of keyw | STRING |
| HIGH | lib/spack/spack/spec.py | 1353 | Default handler when looking for the 'headers' attribute. Tries to search for ``*.h`` files recursively starting fr | STRING |
| HIGH | lib/spack/spack/spec.py | 1376 | Default handler when looking for the 'libs' attribute. Tries to search for ``lib{spec.name}`` recursively starting | STRING |
| HIGH | lib/spack/spack/spec.py | 3752 | Make a copy of this spec. Args: deps: Defaults to :data:`True`. If boolean, controls | STRING |
| HIGH | lib/spack/spack/install_test.py | 169 | Find the required file(s) under the root directory. Args: root: root directory for the search filenam | STRING |
| HIGH | lib/spack/spack/install_test.py | 576 | Grab the names of all non-empty test functions. Args: pkg: package or package class of interest add | STRING |
| HIGH | lib/spack/spack/install_test.py | 596 | Grab all non-empty test functions. Args: pkg: package or package class of interest add_virtuals: `` | STRING |
| HIGH | lib/spack/spack/url.py | 126 | Try to extract a version string from a filename or URL. Args: path (str): The filename or URL for the packa | STRING |
| HIGH | lib/spack/spack/url.py | 296 | Try to extract a version string from a filename or URL. Args: path: The filename or URL for the package | STRING |
| HIGH | lib/spack/spack/url.py | 313 | Try to determine the name of a package from its filename or URL. Args: path: The filename or URL for the pa | STRING |
| HIGH | lib/spack/spack/url.py | 426 | Try to determine the name of a package from its filename or URL. Args: path (str): The filename or URL for | STRING |
| HIGH | lib/spack/spack/url.py | 443 | Try to determine the name of a package and extract its version from its filename or URL. Args: path: Th | STRING |
| HIGH | lib/spack/spack/extensions.py | 29 | Returns the name of the extension in the path passed as argument. Args: path (str): path where the extensio | STRING |
| HIGH | lib/spack/spack/repo.py | 917 | Look up patches by sha256, trying stale cache first to avoid stat calls. Args: sha256s: ordered lis | STRING |
| HIGH | lib/spack/spack/repo.py | 2076 | Parse a repository descriptor from validated configuration. This does not instantiate Repo objects, but merely turns | STRING |
| HIGH | lib/spack/spack/util/lang.py | 463 | Yields a stable de-duplication of an hashable sequence by key Args: sequence: hashable sequence to be de-du | STRING |
| HIGH | lib/spack/spack/util/lang.py | 785 | Loads a python module from the path of the corresponding file. If the module is already in ``sys.modules`` it will | STRING |
| HIGH | lib/spack/spack/util/executable.py | 441 | Finds an executable in the path like command-line which. If given multiple executables, returns the first one that | STRING |
| HIGH | lib/spack/spack/util/remote_file_cache.py | 63 | Determine the actual path and, if remote, stage its contents locally. Args: path: the resolved configuratio | STRING |
| HIGH | lib/spack/spack/environment/environment.py | 3088 | Update a manifest file from an old format to the current one. Args: manifest (str): path to a manifest file | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | lib/spack/spack/spec.py | 228 | return spack.vendor.archspec.cpu.TARGETS.get( | CODE |
| CRITICAL | lib/spack/spack/spec.py | 424 | for t in spack.vendor.archspec.cpu.TARGETS.values() | CODE |
| CRITICAL | lib/spack/spack/cmd/providers.py | 26 | valid_virtuals = sorted(spack.repo.PATH.provider_index.providers.keys()) | CODE |
| CRITICAL | lib/spack/spack/platforms/_platform.py | 47 | for name, microarchitecture in spack.vendor.archspec.cpu.TARGETS.items(): | CODE |
| CRITICAL | lib/spack/spack/test/conftest.py | 992 | targets = spack.vendor.archspec.cpu.microarchitecture._known_microarchitectures() | CODE |
| CRITICAL | lib/spack/spack/test/conftest.py | 2268 | assert not any(f.fh.closed for f in spack.util.lock.FILE_TRACKER._descriptors.values()) | CODE |
| CRITICAL | lib/spack/spack/test/cmd/repo.py | 174 | b"\t\treturn spack_repo.builtin.packages.foo.package.example(), foo, baz\r\n" | STRING |
| CRITICAL | lib/spack/spack/solver/input_analysis.py | 147 | for t in spack.vendor.archspec.cpu.TARGETS.values() | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2091 | target = spack.vendor.archspec.cpu.TARGETS.get(target_name) | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2109 | uarch = spack.vendor.archspec.cpu.TARGETS.get(platform.default) | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2236 | for test_target in spack.vendor.archspec.cpu.TARGETS.values(): | CODE |
| CRITICAL | lib/spack/spack/environment/environment.py | 1541 | virtuals = spack.repo.PATH.provider_index.providers.keys() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/spack/spack/binary_distribution.py | 1033 | skipped, errors = self.push(specs) | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 142 | console.push("import readline") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 144 | console.push("from rlcompleter import Completer") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 145 | console.push("readline.set_completer(Completer(locals()).complete)") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 146 | console.push('readline.parse_and_bind("tab: complete")') | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 165 | console.push("import sys") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 166 | console.push("_wrapped_hook = sys.excepthook") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 167 | console.push("def _hook(exc_type, exc_value, exc_tb):") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 168 | console.push(" _wrapped_hook(exc_type, exc_value, exc_tb)") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 169 | console.push(" sys.exit(1)") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 170 | console.push("") | CODE |
| HIGH⚡ | lib/spack/spack/cmd/python.py | 171 | console.push("sys.excepthook = _hook") | CODE |
| HIGH | lib/spack/spack/cmd/buildcache.py | 581 | skipped, upload_errors = uploader.push(specs=specs) | CODE |
| HIGH | lib/spack/spack/util/git.py | 363 | It is intended to be used with ``git clone --no-checkout`` or ``git init && git fetch``. | STRING |
| HIGH | lib/spack/spack/util/git.py | 395 | This is our fallback method for capturing more git data than the ``init && fetch`` model. | STRING |
| HIGH | lib/spack/spack/ci/__init__.py | 790 | 1. ``git clone repo && cd repo`` | STRING |
| HIGH | lib/spack/spack/environment/shell.py | 135 | alias despacktivate > /dev/null 2>&1 && unalias despacktivate; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …repo/builtin_mock/packages/compiler_wrapper/package.py | 219 | # Check if this compiler has implicit rpaths | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 116 | # Append ELEMENT to the list stored in the variable LISTNAME, | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 263 | # Check if optional parameters are defined | COMMENT |
| LOW | lib/spack/spack/verify_libraries.py | 162 | # Check if directly opened libs are compatible | COMMENT |
| LOW | lib/spack/spack/build_environment.py | 1463 | # Check if information from the read pipe has been received. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1883 | # Check if we have a Makefile | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1897 | # Check if 'target' is a valid target. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1956 | # Check if we have a Ninja build script | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1965 | # Check if 'target' is a valid target | COMMENT |
| LOW | lib/spack/spack/buildcache_migrate.py | 83 | # Check if the spec file exists in the new location and exit early if so | COMMENT |
| LOW | lib/spack/spack/fetch_strategy.py | 416 | # Check if we somehow got an HTML file rather than the archive we | COMMENT |
| LOW | lib/spack/spack/binary_distribution.py | 1016 | # Verify if the mirror meets the requirements to push | COMMENT |
| LOW | lib/spack/spack/spec.py | 1662 | # Check if we wanted just the first line | COMMENT |
| LOW | lib/spack/spack/directives.py | 965 | # Check if the path is relative | COMMENT |
| LOW | lib/spack/spack/directives.py | 971 | # Check if the path falls within the main package stage area | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 371 | # Check if the package was already registered in the DB. | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 1257 | # Check if the task's child process has completed | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 2399 | # Check if any tasks have completed and add to list | COMMENT |
| LOW | lib/spack/spack/cmd/mirror.py | 277 | # Check if any of the arguments are set to update this access_pair. | COMMENT |
| LOW | lib/spack/spack/cmd/checksum.py | 262 | # Check if the section contains a version | COMMENT |
| LOW | lib/spack/spack/cmd/env.py | 370 | # Check if runtime environment variables are requested, and if so, for what view. | COMMENT |
| LOW | lib/spack/spack/cmd/env.py | 831 | # Check if environment views can be safely activated | COMMENT |
| LOW | lib/spack/spack/cmd/find.py | 420 | # Display the result | COMMENT |
| LOW | lib/spack/spack/cmd/buildcache.py | 213 | # Check if binaries need to be rebuilt on remote mirror | COMMENT |
| LOW | lib/spack/spack/cmd/buildcache.py | 992 | # Check if the index already exists, if it does make sure there is a copy in the | COMMENT |
| LOW | lib/spack/spack/cmd/buildcache.py | 1056 | # Check if the index exists, and cache it locally for next operations | COMMENT |
| LOW | lib/spack/spack/cmd/commands.py | 641 | # Check if option require argument. | COMMENT |
| LOW | lib/spack/spack/bootstrap/_common.py | 154 | # Check if standard names are installed and if we have to create | COMMENT |
| LOW | lib/spack/spack/bootstrap/_common.py | 163 | # Check if this interpreter installed something and we have to create | COMMENT |
| LOW | lib/spack/spack/test/spec_yaml.py | 459 | # Check if anchors are used | COMMENT |
| LOW | lib/spack/spack/test/spec_yaml.py | 482 | # Check if anchors are used | STRING |
| LOW | lib/spack/spack/test/environment_modifications.py | 373 | # Check if we can set a variable to different values depending | COMMENT |
| LOW | lib/spack/spack/test/sandbox.py | 98 | # Write file: has WRITE_FILE, no READ_DIR (dir flags stripped for non-dirs) | COMMENT |
| LOW | lib/spack/spack/test/cmd/compiler.py | 190 | # Set PATH to have the new folder searched first | COMMENT |
| LOW | lib/spack/spack/test/cmd/list.py | 139 | os.utime(str(update_file), (0, 0)) # Set mtime to 0 | CODE |
| LOW | lib/spack/spack/test/cmd/repo.py | 1023 | # Set redistribute_source to return False | COMMENT |
| LOW⚡ | lib/spack/spack/test/concretization/core.py | 538 | # Check if mixing works when it's allowed | COMMENT |
| LOW | lib/spack/spack/test/oci/mock_registry.py | 155 | # Check if digest is present (single monolithic upload) | COMMENT |
| LOW | lib/spack/spack/util/module_cmd.py | 121 | # Check if the module was actually loaded by comparing LOADEDMODULES | COMMENT |
| LOW | lib/spack/spack/util/environment.py | 877 | # Check if the file actually exists | COMMENT |
| LOW | lib/spack/spack/ci/__init__.py | 821 | # Check if we can find the tested commits in your local spack repo | COMMENT |
| LOW | lib/spack/spack/ci/common.py | 683 | # Check if this section should be skipped | COMMENT |
| LOW | lib/spack/spack/solver/input_analysis.py | 155 | # Check if we want only generic architecture | COMMENT |
| LOW | lib/spack/spack/solver/input_analysis.py | 188 | # Check if we need to process this condition at all. We can skip the unreachable | COMMENT |
| LOW | lib/spack/spack/solver/clauses.py | 132 | # Check if the target is a concrete target | COMMENT |
| LOW | lib/spack/spack/mirrors/mirror.py | 227 | # Check if the mirror supports older layout versions | COMMENT |
| LOW | lib/spack/spack/container/__init__.py | 68 | # Check if the install tree was explicitly set to a custom value and warn | COMMENT |
| LOW | lib/spack/spack/hooks/absolutify_elf_sonames.py | 48 | # Check if excluded | COMMENT |
| LOW | lib/spack/spack/environment/environment.py | 263 | # Check if we need to reinitialize spack.store.STORE and spack.repo.REPO | COMMENT |
| LOW | lib/spack/spack/environment/environment.py | 3100 | # Check if the environment needs update | COMMENT |
| LOW | lib/spack/spack/installer/core.py | 598 | # Check if we can reschedule this as a source build after a build cache miss. If so, | COMMENT |
| LOW | share/spack/spack-completion.bash | 285 | # Return the result | COMMENT |
| LOW | share/spack/bash/spack-completion.bash | 285 | # Return the result | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …repos/spack_repo/builtin_mock/build_systems/generic.py | 6 | __all__ = ["Package", "GenericBuilder"] | CODE |
| LOW | …repos/spack_repo/builtin_mock/build_systems/_checks.py | 20 | __all__ = ["execute_build_time_tests", "BuilderWithDefaults", "execute_install_time_tests"] | CODE |
| LOW | lib/spack/spack/package.py | 456 | __all__ = [ | CODE |
| LOW | lib/spack/spack/patch.py | 482 | def update_packages(self, pkgs_fullname: Set[str]) -> None: | CODE |
| LOW | lib/spack/spack/config.py | 1161 | def update_all(self, section_name: str, change_fn: Callable[[str], bool]) -> None: | CODE |
| LOW | lib/spack/spack/__init__.py | 90 | __all__ = [ | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 334 | def update_spec(self, spec: spack.spec.Spec, found_list: List[MirrorMetadata]) -> None: | CODE |
| LOW | lib/spack/spack/spec.py | 2556 | def set_prefix(self, value: str) -> None: | CODE |
| LOW | lib/spack/spack/directives.py | 76 | __all__ = [ | CODE |
| LOW | lib/spack/spack/old_installer.py | 979 | def _setup_install_dir(self, pkg: "spack.package_base.PackageBase") -> None: | CODE |
| LOW | lib/spack/spack/old_installer.py | 2090 | def _update_installed(self, task: Task) -> None: | CODE |
| LOW | lib/spack/spack/tag.py | 55 | def update_packages(self, pkg_names: Set[str], repo: "spack.repo.Repo") -> None: | CODE |
| LOW | lib/spack/spack/cmd/commands.py | 856 | def update_completion(parser: ArgumentParser, args: Namespace) -> None: | CODE |
| LOW | lib/spack/spack/cmd/common/arguments.py | 22 | __all__ = ["add_common_arguments"] | CODE |
| LOW | lib/spack/spack/platforms/__init__.py | 15 | __all__ = [ | CODE |
| LOW | lib/spack/spack/bootstrap/__init__.py | 18 | __all__ = [ | CODE |
| LOW | lib/spack/spack/bootstrap/environment.py | 85 | def update_installations(self) -> None: | CODE |
| LOW | lib/spack/spack/util/log_parse.py | 10 | __all__ = ["scan_log", "write_block", "write_log_context"] | CODE |
| LOW | lib/spack/spack/util/web.py | 246 | def set_curl_env_for_ssl_certs(curl: Executable) -> None: | CODE |
| LOW | lib/spack/spack/util/naming.py | 11 | __all__ = [ | CODE |
| LOW | lib/spack/spack/util/filesystem.py | 70 | __all__ = [ | CODE |
| LOW | lib/spack/spack/util/link_tree.py | 16 | __all__ = ["LinkTree"] | CODE |
| LOW | lib/spack/spack/util/link_tree.py | 197 | def set_projection(self, projection: str) -> None: | CODE |
| LOW | lib/spack/spack/util/spack_json.py | 12 | __all__ = ["load", "dump", "dumps", "SpackJSONError"] | CODE |
| LOW | lib/spack/spack/util/file_permissions.py | 16 | def set_permissions_by_spec(path: str, spec) -> None: | CODE |
| LOW | lib/spack/spack/util/file_permissions.py | 55 | def _set_permissions(path: str, s: os.stat_result, perms: int, gid: int) -> None: | CODE |
| LOW | lib/spack/spack/util/executable.py | 20 | __all__ = ["Executable", "which", "which_string", "ProcessError"] | CODE |
| LOW | lib/spack/spack/util/lock.py | 23 | __all__ = [ | CODE |
| LOW | lib/spack/spack/util/environment.py | 637 | def set_path(self, name: str, elements: ListOfPaths, separator: str = os.pathsep) -> None: | CODE |
| LOW | lib/spack/spack/util/path.py | 21 | __all__ = [] | CODE |
| LOW | lib/spack/spack/util/spack_yaml.py | 28 | __all__ = ["load", "dump", "SpackYAMLError"] | CODE |
| LOW | lib/spack/spack/util/win_acl.py | 675 | def _set_file_sddl_raw(path: str, sddl: str) -> None: | CODE |
| LOW | lib/spack/spack/util/win_acl.py | 1166 | def set_file_sddl(path: str, sddl: str) -> None: | CODE |
| LOW | lib/spack/spack/util/tty/color.py | 260 | def set_color_when(when: Union[str, bool, None]) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 43 | def set_debug(level: int = 0) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 49 | def set_verbose(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 54 | def set_timestamp(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 59 | def set_msg_enabled(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 64 | def set_warn_enabled(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 69 | def set_error_enabled(flag: bool) -> None: | CODE |
| LOW | lib/spack/spack/util/tty/__init__.py | 128 | def set_stacktrace(flag: bool) -> None: | CODE |
| LOW | lib/spack/spack/operating_systems/__init__.py | 10 | __all__ = ["OperatingSystem", "LinuxDistro", "MacOs", "WindowsOs", "FreeBSDOs"] | CODE |
| LOW | lib/spack/spack/container/__init__.py | 18 | __all__ = ["validate", "recipe"] | CODE |
| LOW | lib/spack/spack/version/__init__.py | 41 | __all__ = [ | CODE |
| LOW | lib/spack/spack/environment/__init__.py | 644 | __all__ = [ | CODE |
| LOW⚡ | lib/spack/spack/environment/environment.py | 585 | def set_included_envs_to_env_paths(include_concrete: List[str]) -> None: | CODE |
| LOW⚡ | lib/spack/spack/environment/environment.py | 2618 | def update_environment_repository(self) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 770 | def update_root(self, new_path: str) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 1899 | def update_default_view(self, path_or_bool: Union[str, bool]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 2596 | def update_lockfile(self) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 3523 | def set_include_concrete(self, include_concrete: List[str]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 3626 | def set_default_view(self, view: Union[bool, str, pathlib.Path, Dict[str, str]]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 224 | def set_active_environment(env: Optional["Environment"]) -> None: | STRING |
| LOW | lib/spack/spack/modules/__init__.py | 23 | __all__ = ["TclModulefileWriter", "LmodModulefileWriter", "disable_modules"] | CODE |
| LOW | lib/spack/spack/modules/common.py | 127 | def update_dictionary_extending_lists(target: dict, update: dict) -> None: | CODE |
| LOW | lib/spack/spack/modules/common.py | 1364 | def update_module_defaults(self) -> None: | CODE |
| LOW | lib/spack/spack/modules/common.py | 1374 | def update_module_hiddenness(self, remove: bool = False) -> None: | CODE |
| LOW | lib/spack/spack/installer/ui.py | 400 | def _update_terminal_title(self, clear: bool = False) -> None: | CODE |
| LOW | lib/spack/spack/installer/__init__.py | 30 | __all__ = ["PackageInstaller"] | CODE |
| LOW | lib/spack/spack/installer/core.py | 825 | def _set_echo(self, build_id: str, echo: bool) -> None: | CODE |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/spack_repo/tutorial/packages/netlib_lapack/package.py | 11 | """LAPACK version 3.X is a comprehensive FORTRAN library that does | STRING |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 415 | # this script doesn't just call itself | COMMENT |
| LOW | …pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh | 675 | # if mode is not ld, we can just add to other args | COMMENT |
| MEDIUM | lib/spack/spack/patch.py | 59 | # utilize that patch. | COMMENT |
| LOW | lib/spack/spack/url_buildcache.py | 477 | # again, and just return the manifest we already read. | COMMENT |
| MEDIUM | lib/spack/spack/enums.py | 11 | """Enum flag to facilitate querying status from the DB""" | STRING |
| LOW | lib/spack/spack/config.py | 2368 | # Have a remote URL so simply return it with substitutions | COMMENT |
| MEDIUM | lib/spack/spack/directives_meta.py | 19 | #: Some directives leverage others and in that case are not automatically added. | COMMENT |
| LOW | lib/spack/spack/directives_meta.py | 79 | # Historically, maintainers was not a directive. They were simply set as class | COMMENT |
| MEDIUM | lib/spack/spack/build_environment.py | 578 | # their real paths to make it more robust (e.g. /tmp vs /private/tmp on macOS). | COMMENT |
| LOW | lib/spack/spack/binary_distribution.py | 1684 | # For now we just use the OCI image spec, so that we don't run into issues with | COMMENT |
| MEDIUM | lib/spack/spack/spec.py | 5019 | # If the spec is concrete, we leverage the dag hash and just use a 64-bit prefix of it. | COMMENT |
| LOW | lib/spack/spack/spec.py | 5019 | # If the spec is concrete, we leverage the dag hash and just use a 64-bit prefix of it. | COMMENT |
| MEDIUM | lib/spack/spack/cmd/config.py | 635 | # keep track of it and report a comprehensive error later | COMMENT |
| MEDIUM | lib/spack/spack/cmd/modules/__init__.py | 143 | # Get a comprehensive list of specs | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 231 | git("tag", "1.2") # test robust parsing to different syntax, no v | CODE |
| MEDIUM | lib/spack/spack/test/environment_modifications.py | 315 | # TODO: figure out how to make a bit more robust. | COMMENT |
| MEDIUM | lib/spack/spack/test/cmd/env.py | 4045 | # Essentially, the name (hash) we give something in Spack at concretization time is | COMMENT |
| MEDIUM | lib/spack/spack/test/cmd/view.py | 27 | # TODO: Skipping hardlink command testing on windows until robust checks can be added. | COMMENT |
| LOW | lib/spack/spack/test/util/lang.py | 320 | # Default behavior is to just return the deprecated value | COMMENT |
| MEDIUM | lib/spack/spack/test/concretization/requirements.py | 627 | # fact that "clang" is not the preferred compiler. That helps making more robust the | STRING |
| LOW | lib/spack/spack/util/spack_yaml.py | 293 | #: itself, so we can't just pass an instance | COMMENT |
| LOW | lib/spack/spack/container/writers.py | 77 | # If we have custom base images, just return them verbatim. | COMMENT |
| LOW | lib/spack/spack/environment/environment.py | 648 | # just return empty if the env path does not exist. A read-only | COMMENT |
| MEDIUM | share/spack/setup-env.sh | 302 | # the tricks above for finding the sourced file are pretty robust. | COMMENT |
| LOW | share/spack/spack-completion.bash | 152 | # if every completion is an alias for the same thing, just return that thing. | COMMENT |
| LOW | share/spack/spack-completion.bash | 358 | # no alias found -- just return $1 | COMMENT |
| LOW | share/spack/spack-completion.bash | 384 | # all commands alias to first alias; just return that | COMMENT |
| LOW | share/spack/bash/spack-completion.bash | 152 | # if every completion is an alias for the same thing, just return that thing. | COMMENT |
| LOW | share/spack/bash/spack-completion.bash | 358 | # no alias found -- just return $1 | COMMENT |
| LOW | share/spack/bash/spack-completion.bash | 384 | # all commands alias to first alias; just return that | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/spack/spack/store.py | 245 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 193 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 212 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 231 | CODE | |
| LOW | lib/spack/spack/database.py | 1617 | CODE | |
| LOW | lib/spack/spack/database.py | 1676 | CODE | |
| LOW | lib/spack/spack/database.py | 1736 | CODE | |
| LOW | lib/spack/spack/graph.py | 476 | CODE | |
| LOW | lib/spack/spack/spec.py | 1550 | CODE | |
| LOW | lib/spack/spack/spec.py | 2435 | CODE | |
| LOW | lib/spack/spack/spec.py | 2462 | CODE | |
| LOW | lib/spack/spack/spec.py | 2488 | CODE | |
| LOW | lib/spack/spack/spec.py | 2515 | CODE | |
| LOW | lib/spack/spack/spec.py | 4580 | CODE | |
| LOW | lib/spack/spack/traverse.py | 447 | CODE | |
| LOW | lib/spack/spack/traverse.py | 491 | CODE | |
| LOW | lib/spack/spack/traverse.py | 560 | CODE | |
| LOW | lib/spack/spack/traverse.py | 604 | CODE | |
| LOW | lib/spack/spack/url.py | 515 | CODE | |
| LOW | lib/spack/spack/directives.py | 177 | CODE | |
| LOW | lib/spack/spack/old_installer.py | 1361 | CODE | |
| LOW | lib/spack/spack/installer_dispatch.py | 19 | CODE | |
| LOW | lib/spack/spack/cmd/install.py | 245 | CODE | |
| LOW | lib/spack/spack/bootstrap/status.py | 113 | CODE | |
| LOW | lib/spack/spack/test/cmd/mirror.py | 234 | CODE | |
| LOW | lib/spack/spack/test/installer/ui.py | 45 | CODE | |
| LOW | lib/spack/spack/util/executable.py | 140 | CODE | |
| LOW | lib/spack/spack/util/executable.py | 156 | CODE | |
| LOW | lib/spack/spack/util/executable.py | 172 | CODE | |
| LOW | lib/spack/spack/util/executable.py | 187 | CODE | |
| LOW | lib/spack/spack/ci/common.py | 319 | CODE | |
| LOW | lib/spack/spack/solver/asp.py | 3595 | CODE | |
| LOW | lib/spack/spack/solver/clauses.py | 139 | CODE | |
| LOW | lib/spack/spack/solver/clauses.py | 386 | CODE | |
| LOW | lib/spack/spack/installer/ui.py | 173 | CODE | |
| LOW | lib/spack/spack/installer/core.py | 173 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | lib/spack/spack/test/stage.py | 230 | # Create the optional files as requested and make sure expanded | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/spack/spack/test/cmd/env.py | 4705 | # In this example we have `./bin/x` in 3 prefixes, two links, one regular file. We expect the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/spack/spack/paths.py | 122 | # There are three environment variables you can use to isolate spack from | COMMENT |
| LOW | lib/spack/spack/repo.py | 1583 | # dictionaries are used on the same physical repo, we make sure to restore the original | COMMENT |
| LOW | lib/spack/spack/test/old_installer.py | 1437 | # Also make sure to not accept an incompatible installed argument value. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/spack/spack/spec.py | 2033 | # WARNING: This function is an implementation detail of the | COMMENT |
| LOW | lib/spack/spack/cmd/installer/README.md | 8 | # Step 1: Install prerequisites | COMMENT |
| LOW | lib/spack/spack/cmd/installer/README.md | 15 | # Step 2: Make the installer | COMMENT |
| LOW | lib/spack/spack/cmd/installer/README.md | 62 | # Step 3: Run the installer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …builtin_mock/packages/needs_text_relocation/package.py | 27 | f.write("Lorem Ipsum") | CODE |
| LOW | lib/spack/spack/test/util/tty/color.py | 21 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " | CODE |
| LOW | lib/spack/spack/test/util/tty/color.py | 21 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | share/spack/qa/setup.sh | 48 | # Usage: | COMMENT |