kowainik / stan

🕵️ Haskell STatic ANalyser
https://kowainik.github.io/projects/stan
Mozilla Public License 2.0
566 stars 48 forks source link

Using all of the `.cabal` files, including those in test. #469

Open philderbeast opened 2 years ago

philderbeast commented 2 years ago

If I run stan over the stack codebase it reports that is using all of the .cabal files, including those in test:

> stan report
...
  ⓘ Using the following .cabal file: /.../stack/stack.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/2781-shadow-bug/files/foo/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/2781-shadow-bug/files/bar/bar.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/5180-ghc-rts-flags/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/397-case-insensitive-flags/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/multi-test/files/multi-test-suite.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/multi-test/files/cyclic/cyclic.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/multi-test/files/sub-package/sub-package.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/skip-unreachable-dirs/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/cabal-public-sublibraries/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/796-ghc-options/files/ghc-options.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3926-ghci-with-sublibraries/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4453-detailed/files/test-detailed-example.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/internal-libraries/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3899-dont-rebuild-sublibraries/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/617-unused-flag-name-yaml/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3591-cabal-warnings-once/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4897-boot-package-pruned/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4897-boot-package-pruned/files/directory/directory.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4408-init-internal-libs/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/module-added-multiple-times/files/project-a.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/606-local-version-not-exist/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3574-extra-dep-local/files/foo/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/hpack-repo/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4270-files-order/files/cbits-ordering.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/366-non-root-dir/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/2643-copy-compiler-tool/files/copy-compiler-tool-test.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3863-purge-command/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3996-sublib-not-depended-upon/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/cabal-sublibrary-dependency/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/cabal-sublibrary-dependency/files/subproject/subproject.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/617-unused-flag-cli/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/111-custom-snapshot/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/335-multi-package-flags/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3229-exe-targets/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3787-internal-libs-with-no-main-lib/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/2195-depend-on-exe/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4181-clean-wo-dl-ghc/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/1198-multiple-exes-with-same-name/files/has-exe-foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/1198-multiple-exes-with-same-name/files/also-has-exe-foo/also-has-exe-foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/1198-multiple-exes-with-same-name/files/has-exe-foo-too/has-exe-foo-too.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4101-dependency-tree/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4101-dependency-tree/files/subproject/subproject.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4783-doctest-deps/files/acme-dont-copy/acme-dont-copy.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/32-unlisted-module/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4001-excess-recompilation/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3390-unbuildable-test/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/365-invalid-success/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/617-unused-flag-yaml/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4105-test-coverage-of-internal-lib/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/init-omit-packages/files/bad/bad.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/init-omit-packages/files/good/good.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/370-invalid-setup-hs/files/new-template.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/345-override-bytestring/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/763-buildable-false/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/haddock-options/files/haddock-options.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/4488-newer-cabal-version/files/foo.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/proper-rebuilds/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3315-multi-ghc-options/files/multi-ghc-options.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3940-base-upgrade-warning/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3685-config-yaml-for-allow-newer/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/1337-unicode-everywhere/files/以.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/1659-skip-component/files/skip-component.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/384-local-deps/files/dir2/dir2.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/384-local-deps/files/dir1/dir1.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/mutable-deps/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/mutable-deps/files/filepath-1.4.2.1/filepath.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/3396-package-indices/files/files.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/upload/files/uploadtest.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/717-sdist-test/files/package-with-th/package-with-th.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/717-sdist-test/files/package-with-working-th/package-with-working-th.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/717-sdist-test/files/package-with-failing-test/package-with-failing-test.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/717-sdist-test/files/subdirs/dependent-on-failing-packages/dependent-on-failing-packages.cabal

  ⓘ Using the following .cabal file: /.../stack/test/integration/tests/717-sdist-test/files/subdirs/failing-in-subdir/failing-in-subdir.cabal