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
116 changes: 116 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ camino = "1.1.9"
pg_query = "6.1.0"
rowan = "0.15.15"
smol_str = "0.3.2"
enum-iterator = "2.1.0"
line-index = "0.1.2"

# local
squawk-parser = { version = "0.0.0", path = "./crates/parser" }
squawk-linter = { version = "0.0.0", path = "./crates/linter" }
squawk-github = { version = "0.0.0", path = "./crates/github" }
squawk_lexer = { version = "0.0.0", path = "./crates/squawk_lexer" }
squawk_parser = { version = "0.0.0", path = "./crates/squawk_parser" }
squawk_syntax = { version = "0.0.0", path = "./crates/squawk_syntax" }

[workspace.lints.clippy]
collapsible_else_if = "allow"
Expand Down
21 changes: 21 additions & 0 deletions crates/squawk_linter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "squawk_linter"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true

[dependencies]
squawk_syntax.workspace = true

rowan.workspace = true
serde.workspace = true
lazy_static.workspace = true
insta.workspace = true
enum-iterator.workspace = true
line-index.workspace = true


[lints]
workspace = true
31 changes: 31 additions & 0 deletions crates/squawk_linter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# linter

## rules

| name | done? |
| -------------------------------------------- | ----- |
| adding_field_with_default | y |
| adding_foreign_key_constraint | y |
| adding_not_null_field | y |
| adding_primary_key_constraint | y |
| adding_required_field | y |
| ban_char_field | y |
| ban_concurrent_index_creation_in_transaction | y |
| ban_drop_column | y |
| ban_drop_database | y |
| ban_drop_not_null | y |
| ban_drop_table | y |
| changing_column_type | y |
| constraint_missing_not_valid | y |
| disallow_unique_constraint | y |
| prefer_big_int | y |
| prefer_bigint_over_int | y |
| prefer_bigint_over_smallint | y |
| prefer_identity | y |
| prefer_robust_stmts | y |
| prefer_text_field | y |
| prefer_timestamptz | y |
| renaming_column | y |
| renaming_table | y |
| require_concurrent_index_creation | y |
| require_concurrent_index_deletion | y |
Loading
Loading