A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
This report presents the forensic synthetic code analysis of spack/spack, a Python project with 5,100 GitHub stars. SynthScan v2.0 examined 255,625 lines of code across 1269 source files, recording 4654 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 19.8 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 4654 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | 324 | def _construct_upstream_dbs_from_install_roots( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 270 | def get_relative_path_components(cls, component: BuildcacheComponent) -> List[str]: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 307 | def get_buildcache_component_include_pattern( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 443 | def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 989 | def get_buildcache_component_include_pattern( | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1021 | def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1099 | def _entries_from_cache_aws_cli(url: str, tmpspecsdir: str, component_type: BuildcacheComponent): | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1180 | def _entries_from_cache_fallback(url: str, tmpspecsdir: str, component_type: BuildcacheComponent): | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1293 | def compressed_json_from_dict( | 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 | 689 | def _sanity_check_view_projection(self, specs): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 764 | def _source_merge_visitor_to_merge_map(self, visitor: MultiPrefixMerger): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 776 | def relative_metadata_dir_for_spec(self, spec): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 810 | def get_relative_projection_for_spec(self, spec): | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 897 | def is_folder_on_case_insensitive_filesystem(path: str) -> bool: | CODE |
| LOW | lib/spack/spack/config.py | 464 | def _process_dict_keyname_overrides(data: YamlConfigDict) -> YamlConfigDict: | CODE |
| LOW | lib/spack/spack/config.py | 806 | def active_include_section_scopes(self) -> List[ConfigScope]: | CODE |
| LOW | lib/spack/spack/config.py | 1654 | def config_paths_from_entry_points() -> List[Tuple[str, str]]: | CODE |
| LOW | lib/spack/spack/config.py | 2257 | def substitute_config_variables(path): | CODE |
| LOW | lib/spack/spack/config.py | 2296 | def substitute_path_variables(path): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 557 | def _ensure_packages_are_pickeleable(pkgs, error_cls): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 573 | def _ensure_packages_are_unparseable(pkgs, error_cls): | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 598 | def _ensure_all_versions_can_produce_a_fetcher(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 195 | def _search_duplicate_compilers(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 229 | def _search_duplicate_specs_in_externals(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 270 | def _avoid_mismatched_variants(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 334 | def _ensure_all_virtual_packages_have_default_providers(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 350 | def _ensure_no_folders_without_package_py(error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 411 | def _check_build_test_callbacks(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 433 | def _directives_can_be_evaluated(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 509 | def _search_for_reserved_attributes_names_in_packages(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 541 | def _ensure_all_package_names_are_lowercase(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 634 | def _ensure_docstring_and_no_fixme(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 703 | def _ensure_env_methods_are_ported_to_builders(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 926 | def _variant_issues_in_directives(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1018 | def _issues_in_depends_on_directive(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1032 | def check_virtual_with_variants(spec, msg): | CODE |
| LOW | lib/spack/spack/audit.py | 1108 | def _ensure_variant_defaults_are_parsable(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1146 | def _ensure_variants_have_descriptions(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1161 | def _version_constraints_are_satisfiable_by_some_version_in_repo(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1212 | def _ensure_maintainers_are_not_placeholders(pkgs, error_cls): | CODE |
| LOW | lib/spack/spack/audit.py | 1227 | def _issues_in_directive_constraint(pkg, constraint, *, directive, error_cls, filename, requestor): | CODE |
| LOW | lib/spack/spack/audit.py | 1252 | def _analyze_variants_in_directive(pkg, constraint, *, directive, error_cls, filename, requestor): | CODE |
| LOW | lib/spack/spack/audit.py | 1284 | def _analize_propagated_deps_in_directive( | CODE |
| LOW | lib/spack/spack/audit.py | 1297 | def _named_specs_in_when_arguments(pkgs, error_cls): | CODE |
| 2753 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 | …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 | …epos/spack_repo/builtin_mock/packages/gmake/package.py | 7 | CODE | |
| LOW | …ck_repo/builtin_mock/packages/py_extension2/package.py | 8 | CODE | |
| 611 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 | 284 | """This class represents a configuration scope in a single YAML file.""" | STRING |
| MEDIUM | lib/spack/spack/database.py | 1273 | # Create a new install record with no deps initially. | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1276 | # Create an oci.image.layer aka tarball of the package | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1353 | # Create an oci.image.config file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1619 | # Create the index.json file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 1624 | # Create an empty config.json file | COMMENT |
| MEDIUM | lib/spack/spack/binary_distribution.py | 2019 | # 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 | 567 | # Create a source repo and get the pkg directory out of it. | COMMENT |
| MEDIUM | lib/spack/spack/old_installer.py | 576 | # Create a destination repository | COMMENT |
| MEDIUM | lib/spack/spack/old_installer.py | 1278 | # Create a child process to do the actual installation. | COMMENT |
| MEDIUM | lib/spack/spack/old_installer.py | 2579 | """This class implements the part installation that happens in the child process.""" | STRING |
| MEDIUM | lib/spack/spack/repo.py | 413 | # Create a dictionary that will store the mapping between a | COMMENT |
| MEDIUM | lib/spack/spack/stage.py | 1141 | # Create a temporary file in the stage dir with lines of the form | COMMENT |
| MEDIUM | lib/spack/spack/stage.py | 1146 | # 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 | 948 | # 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 | 591 | # Create a new object to be returned | COMMENT |
| MEDIUM | lib/spack/spack/variant.py | 602 | # Create a new object to be returned | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 1094 | # Create the package template object | STRING |
| MEDIUM | lib/spack/spack/cmd/create.py | 1102 | # Create a directory for the new package | STRING |
| MEDIUM | lib/spack/spack/cmd/gpg.py | 145 | # Create the new key | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 1573 | # Create the configure script | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 1813 | # Create the main repository | COMMENT |
| MEDIUM | lib/spack/spack/test/conftest.py | 2056 | # Create a few header files: | COMMENT |
| MEDIUM | lib/spack/spack/test/config.py | 1598 | # Creating an environment pushes a new scope | COMMENT |
| MEDIUM | lib/spack/spack/test/config.py | 1633 | # Creating an environment pushes a new scope | COMMENT |
| MEDIUM | lib/spack/spack/test/env.py | 1363 | # Create a second environment, reuse from the previous one and check pkg-a is the same | COMMENT |
| MEDIUM | lib/spack/spack/test/env.py | 1064 | # 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 | 1288 | # Create a new instance s.t. we don't have cached specs in memory | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 237 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 247 | # Create a buildcache and update index | COMMENT |
| MEDIUM⚡ | lib/spack/spack/test/binary_distribution.py | 1121 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 106 | # Create a buildache | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 207 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 288 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 321 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 328 | # Create an environment and install specs for the view | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 358 | # Create a mirror, configure us to point at it, install a spec, and | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 365 | # Create an environment and install specs for the view | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 815 | # Create a binary_distribution file in the .spack folder | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 858 | # Create a tarball with a certain mtime of bin/app | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 948 | # Create a tarball (using absolute path for prefix dir) | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 1002 | # Create a broken tarball with just a file, no directories. | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 1438 | # Create a temp mirror directory for buildcache usage | COMMENT |
| MEDIUM | lib/spack/spack/test/binary_distribution.py | 453 | # Create a buildcache with the installed spec. | STRING |
| 91 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 | 60 | CODE | |
| LOW | lib/spack/spack/provider_index.py | 116 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 1099 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 1180 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 307 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 327 | CODE | |
| LOW | lib/spack/spack/url_buildcache.py | 443 | CODE | |
| LOW | lib/spack/spack/deptypes.py | 75 | CODE | |
| LOW | lib/spack/spack/deptypes.py | 129 | CODE | |
| LOW | lib/spack/spack/verify_libraries.py | 184 | CODE | |
| LOW | lib/spack/spack/filesystem_view.py | 556 | CODE | |
| LOW | lib/spack/spack/filesystem_view.py | 616 | CODE | |
| LOW | lib/spack/spack/config.py | 1830 | CODE | |
| LOW | lib/spack/spack/config.py | 1887 | CODE | |
| LOW | lib/spack/spack/config.py | 160 | CODE | |
| LOW | lib/spack/spack/config.py | 464 | CODE | |
| LOW | lib/spack/spack/config.py | 1514 | CODE | |
| LOW | lib/spack/spack/config.py | 2403 | CODE | |
| LOW | lib/spack/spack/audit.py | 270 | CODE | |
| LOW | lib/spack/spack/audit.py | 449 | CODE | |
| LOW | lib/spack/spack/audit.py | 509 | CODE | |
| LOW | lib/spack/spack/audit.py | 634 | CODE | |
| LOW | lib/spack/spack/audit.py | 666 | CODE | |
| LOW | lib/spack/spack/audit.py | 900 | CODE | |
| LOW | lib/spack/spack/audit.py | 926 | CODE | |
| LOW | lib/spack/spack/audit.py | 1018 | CODE | |
| LOW | lib/spack/spack/audit.py | 1146 | CODE | |
| LOW | lib/spack/spack/audit.py | 1161 | CODE | |
| LOW | lib/spack/spack/audit.py | 1386 | CODE | |
| LOW | lib/spack/spack/audit.py | 763 | CODE | |
| LOW | lib/spack/spack/directives_meta.py | 137 | CODE | |
| LOW | lib/spack/spack/directives_meta.py | 155 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 894 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1129 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1486 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 1045 | CODE | |
| LOW | lib/spack/spack/package_base.py | 152 | CODE | |
| LOW | lib/spack/spack/package_base.py | 1691 | CODE | |
| LOW | lib/spack/spack/package_base.py | 1818 | CODE | |
| LOW | lib/spack/spack/package_base.py | 2172 | CODE | |
| LOW | lib/spack/spack/database.py | 1174 | CODE | |
| LOW | lib/spack/spack/externals.py | 96 | CODE | |
| LOW | lib/spack/spack/externals.py | 233 | CODE | |
| LOW | lib/spack/spack/externals.py | 288 | 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 | 306 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 43 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 150 | CODE | |
| LOW | lib/spack/spack/directory_layout.py | 281 | CODE | |
| 278 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 | 939 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | lib/spack/spack/main.py | 945 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 967 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 972 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 1014 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/main.py | 1016 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 38 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/cmd/create.py | 53 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/spack/spack/test/spec_semantics.py | 837 | # ======================================================================== | COMMENT |
| MEDIUM | lib/spack/spack/test/spec_semantics.py | 839 | # ======================================================================== | 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 | 539 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/url_buildcache.py | 548 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/url_buildcache.py | 557 | except Exception as e: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 921 | except Exception as err: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1173 | except Exception as e: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1216 | except Exception as err: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1328 | except Exception as e: | CODE |
| LOW | lib/spack/spack/url_buildcache.py | 1366 | except Exception: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 565 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 581 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 589 | except Exception as e: | CODE |
| LOW⚡ | lib/spack/spack/audit.py | 608 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 210 | except Exception: | CODE |
| LOW | lib/spack/spack/audit.py | 300 | except Exception: | CODE |
| LOW | lib/spack/spack/audit.py | 441 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 626 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 917 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 1088 | except Exception as e: | CODE |
| LOW | lib/spack/spack/audit.py | 1195 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_prune.py | 84 | 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 | 421 | except Exception as e: | CODE |
| LOW | lib/spack/spack/build_environment.py | 1384 | except Exception: | CODE |
| LOW | lib/spack/spack/package_base.py | 212 | except Exception as e: | CODE |
| LOW | lib/spack/spack/package_base.py | 239 | except Exception as e: | CODE |
| LOW | lib/spack/spack/package_base.py | 2206 | except Exception as error: | CODE |
| LOW | lib/spack/spack/package_base.py | 2243 | 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 | 206 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_migrate.py | 214 | except Exception: | CODE |
| LOW | lib/spack/spack/buildcache_migrate.py | 240 | except Exception: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 38 | except Exception: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 162 | except Exception as e: | CODE |
| LOW | lib/spack/spack/directory_layout.py | 354 | except Exception: | CODE |
| LOW | lib/spack/spack/fetch_strategy.py | 461 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 696 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 755 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 778 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 798 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1266 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1745 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1754 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1774 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1786 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 1797 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2031 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2041 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2228 | except Exception: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2725 | except Exception as e: | CODE |
| LOW | lib/spack/spack/binary_distribution.py | 2731 | except Exception as e: | CODE |
| LOW | lib/spack/spack/spec.py | 2796 | except Exception as e: | CODE |
| LOW | lib/spack/spack/spec.py | 5235 | except Exception as e: | CODE |
| 119 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 | 1268 | Instantiate a configuration scope for the configuration path. Args: path: raw include path | STRING |
| HIGH | lib/spack/spack/config.py | 1375 | Instantiate configuration scopes. Args: parent_scope: including scope Returns: configurati | STRING |
| HIGH | lib/spack/spack/config.py | 1422 | Instantiate a configuration scope for the included path. Args: parent_scope: including scope | STRING |
| HIGH | lib/spack/spack/config.py | 1515 | Clone the repository. Args: parent_scope: enclosing scope Returns: destination path if clo | STRING |
| HIGH | lib/spack/spack/config.py | 1577 | Instantiate configuration scopes for the included paths. Args: parent_scope: including scope | STRING |
| HIGH | lib/spack/spack/fetch_strategy.py | 1485 | Construct an appropriate FetchStrategy from the given keyword arguments. Args: **kwargs: dictionary of keyw | STRING |
| HIGH | lib/spack/spack/spec.py | 1123 | Default handler when looking for the 'headers' attribute. Tries to search for ``*.h`` files recursively starting fr | STRING |
| HIGH | lib/spack/spack/spec.py | 1146 | Default handler when looking for the 'libs' attribute. Tries to search for ``lib{spec.name}`` recursively starting | STRING |
| HIGH | lib/spack/spack/spec.py | 3012 | Constrains self with other, and returns True if self changed, False otherwise. This function has no notion of v | STRING |
| HIGH | lib/spack/spack/spec.py | 3676 | 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 | 125 | 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 | 295 | 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 | 312 | 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 | 425 | 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 | 442 | 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 | 881 | Look up patches by sha256, trying stale cache first to avoid stat calls. Args: sha256s: ordered lis | STRING |
| HIGH | lib/spack/spack/repo.py | 2030 | Parse a repository descriptor from validated configuration. This does not instantiate Repo objects, but merely turns | STRING |
| HIGH | lib/spack/spack/util/lang.py | 498 | 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 | 820 | 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 | 3010 | 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 |
|---|---|---|---|---|
| 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/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 | COMMENT | |
| LOW | etc/spack/defaults/base/config.yaml | 181 | # Allow TCP network access during the build phase. | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 201 | # anticipates that a significant delay indicates that the lock attempt will | COMMENT |
| LOW | etc/spack/defaults/base/config.yaml | 221 | # Controls the handling of missing dynamic libraries after installation. | 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 | # If true, the current module name will be prepended to all description | COMMENT |
| LOW | lib/spack/docs/conf.py | 441 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 | COMMENT |
| LOW | lib/spack/docs/conf.py | 461 | # html_sidebars = {} | COMMENT |
| LOW | lib/spack/docs/conf.py | 481 | COMMENT | |
| LOW | lib/spack/docs/conf.py | 521 | # The name of an image file (relative to this directory) to place at the top of | COMMENT |
| LOW | lib/spack/docs/spack.yaml | 1 | # Copyright Spack Project Developers. See COPYRIGHT file for details. | COMMENT |
| LOW | lib/spack/spack/package.py | 221 | "spack.package.filter_system_paths is deprecated", category=SpackAPIWarning, stacklevel=2 | COMMENT |
| LOW | lib/spack/spack/package.py | 241 | #: are set as canonical environment variables. | COMMENT |
| LOW | lib/spack/spack/provider_index.py | 21 | #: { full vpkg spec : set(packages providing spec) } } | COMMENT |
| LOW | lib/spack/spack/config.py | 321 | COMMENT | |
| LOW | lib/spack/spack/config.py | 341 | # the "packages" section with the "::" syntax), data in self.sections | COMMENT |
| LOW | lib/spack/spack/directives_meta.py | 41 | _dict_to_directives: Dict[str, List[str]] = collections.defaultdict(list) | COMMENT |
| LOW | lib/spack/spack/package_base.py | 601 | COMMENT | |
| LOW | lib/spack/spack/package_base.py | 621 | #: However, in certain cases it can be hard if not impossible to avoid accidental linking | COMMENT |
| LOW | lib/spack/spack/package_base.py | 641 | #: Set of additional options used when fetching package versions. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1921 | # Prevent altering LC_ALL for 'make' outside this function | COMMENT |
| LOW | lib/spack/spack/database.py | 101 | COMMENT | |
| LOW | lib/spack/spack/database.py | 881 | COMMENT | |
| LOW | lib/spack/spack/spec.py | 1161 | COMMENT | |
| LOW | lib/spack/spack/spec.py | 3841 | COMMENT | |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | lib/spack/spack/spec.py | 228 | return spack.vendor.archspec.cpu.TARGETS.get( | 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 | 49 | for name, microarchitecture in spack.vendor.archspec.cpu.TARGETS.items(): | CODE |
| CRITICAL | lib/spack/spack/test/conftest.py | 943 | targets = spack.vendor.archspec.cpu.microarchitecture._known_microarchitectures() | CODE |
| CRITICAL | lib/spack/spack/test/conftest.py | 2209 | 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 | 129 | for t in spack.vendor.archspec.cpu.TARGETS.values() | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2605 | target = spack.vendor.archspec.cpu.TARGETS.get(target_name) | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2623 | uarch = spack.vendor.archspec.cpu.TARGETS.get(platform.default) | CODE |
| CRITICAL | lib/spack/spack/solver/asp.py | 2750 | for test_target in spack.vendor.archspec.cpu.TARGETS.values(): | CODE |
| CRITICAL | lib/spack/spack/environment/environment.py | 1476 | virtuals = spack.repo.PATH.provider_index.providers.keys() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/spack/spack/binary_distribution.py | 1000 | 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 | 582 | 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 | 764 | 1. ``git clone repo && cd repo`` | STRING |
| HIGH | lib/spack/spack/environment/shell.py | 143 | cmds += "alias despacktivate > /dev/null 2>&1 && unalias despacktivate;\n" | STRING |
| 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 | 1450 | # Check if information from the read pipe has been received. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1913 | # Check if we have a Makefile | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1927 | # Check if 'target' is a valid target. | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1986 | # Check if we have a Ninja build script | COMMENT |
| LOW | lib/spack/spack/package_base.py | 1995 | # Check if 'target' is a valid target | COMMENT |
| LOW | lib/spack/spack/buildcache_migrate.py | 82 | # 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 | 983 | # Verify if the mirror meets the requirements to push | COMMENT |
| LOW | lib/spack/spack/spec.py | 1433 | # Check if we wanted just the first line | COMMENT |
| LOW | lib/spack/spack/spec.py | 1982 | # Check if we need to update edges that are already present | COMMENT |
| LOW | lib/spack/spack/directives.py | 854 | # Check if the path is relative | COMMENT |
| LOW | lib/spack/spack/directives.py | 860 | # Check if the path falls within the main package stage area | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 415 | # Check if the package was already registered in the DB. | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 1360 | # Check if the task's child process has completed | COMMENT |
| LOW | lib/spack/spack/old_installer.py | 2496 | # Check if any tasks have completed and add to list | COMMENT |
| LOW | lib/spack/spack/cmd/mirror.py | 264 | # Check if any of the arguments are set to update this access_pair. | COMMENT |
| LOW | lib/spack/spack/cmd/checksum.py | 256 | # Check if the section contains a version | COMMENT |
| LOW | lib/spack/spack/cmd/env.py | 374 | # Check if runtime environment variables are requested, and if so, for what view. | COMMENT |
| LOW | lib/spack/spack/cmd/env.py | 835 | # Check if environment views can be safely activated | COMMENT |
| LOW | lib/spack/spack/cmd/find.py | 427 | # 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 | 986 | # 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 | 1050 | # 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 | 159 | # Check if standard names are installed and if we have to create | COMMENT |
| LOW | lib/spack/spack/bootstrap/_common.py | 168 | # Check if this interpreter installed something and we have to create | COMMENT |
| LOW | lib/spack/spack/test/spec_yaml.py | 460 | # Check if anchors are used | COMMENT |
| LOW | lib/spack/spack/test/spec_yaml.py | 483 | # 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 | 179 | # 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 | 526 | # 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/lock.py | 95 | # Open the file and create it if it doesn't exist (incl. directories). | COMMENT |
| LOW | lib/spack/spack/util/environment.py | 842 | # Check if the file actually exists | COMMENT |
| LOW | lib/spack/spack/ci/__init__.py | 795 | # 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 | 137 | # Check if we want only generic architecture | COMMENT |
| LOW | lib/spack/spack/solver/input_analysis.py | 170 | # Check if we need to process this condition at all. We can skip the unreachable | COMMENT |
| LOW | lib/spack/spack/solver/asp.py | 1452 | # Check if the target is a concrete target | COMMENT |
| LOW | lib/spack/spack/solver/asp.py | 1739 | # Check if we can emit the requirements before updating the condition ID counter. | COMMENT |
| LOW | lib/spack/spack/mirrors/mirror.py | 228 | # 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 | 255 | # Check if we need to reinitialize spack.store.STORE and spack.repo.REPO | COMMENT |
| LOW | lib/spack/spack/environment/environment.py | 3022 | # Check if the environment needs update | COMMENT |
| LOW | lib/spack/spack/installer/core.py | 584 | # 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 | 439 | __all__ = [ | CODE |
| LOW | lib/spack/spack/patch.py | 482 | def update_packages(self, pkgs_fullname: Set[str]) -> None: | CODE |
| LOW | lib/spack/spack/filesystem_view.py | 46 | __all__ = ["FilesystemView", "YamlFilesystemView"] | CODE |
| LOW | lib/spack/spack/config.py | 1163 | 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 | 321 | def update_spec(self, spec: spack.spec.Spec, found_list: List[MirrorMetadata]) -> None: | CODE |
| LOW | lib/spack/spack/spec.py | 114 | __all__ = [ | CODE |
| LOW | lib/spack/spack/spec.py | 2240 | def set_prefix(self, value: str) -> None: | CODE |
| LOW | lib/spack/spack/traverse.py | 29 | __all__ = ["traverse_edges", "traverse_nodes", "traverse_tree"] | CODE |
| LOW | lib/spack/spack/directives.py | 66 | __all__ = [ | CODE |
| LOW | lib/spack/spack/old_installer.py | 1082 | def _setup_install_dir(self, pkg: "spack.package_base.PackageBase") -> None: | CODE |
| LOW | lib/spack/spack/old_installer.py | 2193 | 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 | 23 | __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 | 11 | __all__ = ["parse_log_events", "make_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/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 | 602 | 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 | 198 | def set_color_when(when: Union[str, bool, None]) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 42 | def set_debug(level: int = 0) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 48 | def set_verbose(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 53 | def set_timestamp(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 58 | def set_msg_enabled(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 63 | def set_warn_enabled(flag: bool) -> None: | CODE |
| LOW⚡ | lib/spack/spack/util/tty/__init__.py | 68 | def set_error_enabled(flag: bool) -> None: | CODE |
| LOW | lib/spack/spack/util/tty/__init__.py | 127 | 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 | 638 | __all__ = [ | CODE |
| LOW⚡ | lib/spack/spack/environment/environment.py | 549 | def set_included_envs_to_env_paths(include_concrete: List[str]) -> None: | CODE |
| LOW⚡ | lib/spack/spack/environment/environment.py | 2529 | def update_lockfile(self) -> None: | CODE |
| LOW⚡ | lib/spack/spack/environment/environment.py | 2543 | def update_environment_repository(self) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 716 | def update_root(self, new_path: str) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 1832 | def update_default_view(self, path_or_bool: Union[str, bool]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 3445 | def set_include_concrete(self, include_concrete: List[str]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 3548 | def set_default_view(self, view: Union[bool, str, pathlib.Path, Dict[str, str]]) -> None: | CODE |
| LOW | lib/spack/spack/environment/environment.py | 218 | 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 | 126 | def update_dictionary_extending_lists(target: dict, update: dict) -> None: | CODE |
| LOW | lib/spack/spack/modules/common.py | 1361 | def update_module_defaults(self) -> None: | CODE |
| LOW | lib/spack/spack/modules/common.py | 1371 | def update_module_hiddenness(self, remove: bool = False) -> None: | CODE |
| LOW | lib/spack/spack/installer/ui.py | 398 | def _update_terminal_title(self, clear: bool = False) -> None: | CODE |
| LOW | lib/spack/spack/installer/__init__.py | 32 | __all__ = ["PackageInstaller"] | CODE |
| 9 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 | 470 | # again, and just return the manifest we already read. | COMMENT |
| MEDIUM | lib/spack/spack/enums.py | 10 | """Enum flag to facilitate querying status from the DB""" | STRING |
| LOW | lib/spack/spack/config.py | 2343 | # Have a remote URL so simply return it with substitutions | COMMENT |
| MEDIUM | lib/spack/spack/directives_meta.py | 20 | #: Some directives leverage others and in that case are not automatically added. | COMMENT |
| LOW | lib/spack/spack/directives_meta.py | 95 | # Historically, maintainers was not a directive. They were simply set as class | COMMENT |
| MEDIUM | lib/spack/spack/build_environment.py | 566 | # their real paths to make it more robust (e.g. /tmp vs /private/tmp on macOS). | COMMENT |
| LOW | lib/spack/spack/binary_distribution.py | 1642 | # 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 | 4952 | # 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 | 4952 | # 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 | 643 | # 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 | 228 | 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 | 4032 | # 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 | 628 | # 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 | 76 | # If we have custom base images, just return them verbatim. | COMMENT |
| LOW | lib/spack/spack/environment/environment.py | 612 | # 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 | 299 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 190 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 209 | CODE | |
| LOW | lib/spack/spack/build_environment.py | 228 | CODE | |
| LOW | lib/spack/spack/database.py | 1616 | CODE | |
| LOW | lib/spack/spack/database.py | 1699 | CODE | |
| LOW | lib/spack/spack/database.py | 1759 | CODE | |
| LOW | lib/spack/spack/graph.py | 475 | CODE | |
| LOW | lib/spack/spack/spec.py | 1320 | CODE | |
| LOW | lib/spack/spack/spec.py | 2119 | CODE | |
| LOW | lib/spack/spack/spec.py | 2146 | CODE | |
| LOW | lib/spack/spack/spec.py | 2172 | CODE | |
| LOW | lib/spack/spack/spec.py | 2199 | CODE | |
| LOW | lib/spack/spack/spec.py | 4501 | CODE | |
| LOW | lib/spack/spack/traverse.py | 449 | CODE | |
| LOW | lib/spack/spack/traverse.py | 493 | CODE | |
| LOW | lib/spack/spack/traverse.py | 562 | CODE | |
| LOW | lib/spack/spack/traverse.py | 606 | CODE | |
| LOW | lib/spack/spack/url.py | 514 | CODE | |
| LOW | lib/spack/spack/directives.py | 158 | CODE | |
| LOW | lib/spack/spack/old_installer.py | 1464 | CODE | |
| LOW | lib/spack/spack/installer_dispatch.py | 18 | CODE | |
| LOW | lib/spack/spack/cmd/install.py | 243 | CODE | |
| LOW | lib/spack/spack/bootstrap/status.py | 113 | CODE | |
| LOW | lib/spack/spack/test/cmd/mirror.py | 232 | 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 | 2149 | CODE | |
| LOW | lib/spack/spack/solver/asp.py | 2187 | CODE | |
| LOW | lib/spack/spack/solver/asp.py | 4039 | CODE | |
| LOW | lib/spack/spack/installer/core.py | 172 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | lib/spack/spack/test/stage.py | 222 | # Create the optional files as requested and make sure expanded | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/spack/spack/test/cmd/env.py | 4687 | # 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 | 1536 | # 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 | 1711 | # 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 | 15 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " | CODE |
| LOW | lib/spack/spack/test/util/tty/color.py | 15 | "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 |