Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ project runs again, so they are never ticked for you.
| Node.js | `.next` `.nuxt` `.svelte-kit` `.turbo` `.parcel-cache` `.angular/cache` `dist` `build` | `node_modules` |
| Python | `__pycache__` `.pytest_cache` `.mypy_cache` `.ruff_cache` `.tox` `.nox` | `.venv` `venv` |
| Go | | `vendor` |
| Haskell (Cabal and Stack) | `dist-newstyle` `.stack-work` | |
| Rust | `target` | |
| Java and Kotlin | `target` `build` | `.gradle` |
| Flutter and Dart | `build` `.dart_tool` | `ios/Pods` |
Expand Down
4 changes: 2 additions & 2 deletions engine/crates/opensweep-cli/tests/snapshots/rules-check.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"artifacts": 37,
"artifacts": 39,
"command": "rules-check",
"rule_files": 13,
"rule_files": 14,
"schema_version": 1
}
]
1 change: 1 addition & 0 deletions engine/crates/opensweep-core/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ const BUNDLED: &[(&str, &str)] = &[
("elixir.toml", include_str!("../../../rules/elixir.toml")),
("flutter.toml", include_str!("../../../rules/flutter.toml")),
("go.toml", include_str!("../../../rules/go.toml")),
("haskell.toml", include_str!("../../../rules/haskell.toml")),
("java.toml", include_str!("../../../rules/java.toml")),
("node.toml", include_str!("../../../rules/node.toml")),
("php.toml", include_str!("../../../rules/php.toml")),
Expand Down
Empty file.
Empty file.
1 change: 1 addition & 0 deletions engine/rules/fixtures/haskell/match/cabal/expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist-newstyle
Empty file.
Empty file.
1 change: 1 addition & 0 deletions engine/rules/fixtures/haskell/match/stack/expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.stack-work
Empty file.
Empty file.
Empty file.
Empty file.
25 changes: 25 additions & 0 deletions engine/rules/haskell.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
schema = 2
id = "haskell"
name = "Haskell (Cabal and Stack)"

# Cabal builds into dist-newstyle, and `cabal clean` "cleans up the
# temporary files and build artifacts stored in the dist-newstyle folder"
# (https://cabal.readthedocs.io/en/stable/cabal-commands.html). Stack's
# work-dir has "Default: .stack-work" and `stack clean --full` deletes it
# (https://docs.haskellstack.org/en/stable/configure/yaml/non-project/).
# Installed dependencies live in ~/.cabal and ~/.stack, not in the project.
[detect]
any_files = ["cabal.project", "stack.yaml"]
any_glob = ["*.cabal"]

[[artifact]]
path = "dist-newstyle"
class = "safe"
reason = "Cabal build output. Recreated by the next cabal build."
restore = "cabal build"

[[artifact]]
path = ".stack-work"
class = "safe"
reason = "Stack build output. Recreated by the next stack build."
restore = "stack build"
Loading