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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## 0.9.10
- Added indentation-style rules to the lint module with configurable indent size as specified in [example_lint_cfg.json](./example_files/example_lint_cfg.README)
- Added "explicit\_param\_decl" as a know provisional (NOTE: the provisionals
actual functionality is not implemented)
- Configuration changes are now correctly tracked with the pull-model, and the
server should correctly update most settings without a restart on config
change.
Expand Down
17 changes: 17 additions & 0 deletions src/analysis/provisionals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ use crate::analysis::parsing::tree::LeafToken;
use crate::analysis::FileSpec;

#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash, EnumString)]
#[strum(serialize_all = "snake_case")]
pub enum Provisional {
// TODO: implement the neccessary checks for explicit params
ExplicitParamDecl,
}

impl fmt::Display for Provisional {
Expand Down Expand Up @@ -57,3 +60,17 @@ impl ProvisionalsManager {
}
}
}

#[cfg(test)]
mod test {
use super::*;

#[test]
fn test_provisionals_parsing() {
for (s, p) in [
("explicit_param_decl", Provisional::ExplicitParamDecl),
] {
assert_eq!(Provisional::from_str(s), Ok(p));
}
}
}