From fdbd6bb11a0c47bf9ba1428e6bd432cd2ce72045 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Mon, 30 Sep 2019 11:58:53 +0300 Subject: Added test for check doc strings in crates. #1856 --- crates/ra_lsp_server/src/caps.rs | 2 ++ crates/ra_lsp_server/src/cargo_target_spec.rs | 2 ++ crates/ra_lsp_server/src/config.rs | 2 ++ crates/ra_lsp_server/src/conv.rs | 2 ++ crates/ra_lsp_server/src/lib.rs | 2 ++ crates/ra_lsp_server/src/main.rs | 2 ++ crates/ra_lsp_server/src/main_loop.rs | 2 ++ crates/ra_lsp_server/src/main_loop/handlers.rs | 2 ++ crates/ra_lsp_server/src/main_loop/pending_requests.rs | 2 ++ crates/ra_lsp_server/src/main_loop/subscriptions.rs | 2 ++ crates/ra_lsp_server/src/markdown.rs | 2 ++ crates/ra_lsp_server/src/req.rs | 2 ++ crates/ra_lsp_server/src/world.rs | 2 ++ 13 files changed, 26 insertions(+) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/caps.rs b/crates/ra_lsp_server/src/caps.rs index 22fc97a97..30bcbd7a8 100644 --- a/crates/ra_lsp_server/src/caps.rs +++ b/crates/ra_lsp_server/src/caps.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use lsp_types::{ CodeActionProviderCapability, CodeLensOptions, CompletionOptions, DocumentOnTypeFormattingOptions, FoldingRangeProviderCapability, GenericCapability, diff --git a/crates/ra_lsp_server/src/cargo_target_spec.rs b/crates/ra_lsp_server/src/cargo_target_spec.rs index a083bb311..d996b53de 100644 --- a/crates/ra_lsp_server/src/cargo_target_spec.rs +++ b/crates/ra_lsp_server/src/cargo_target_spec.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_ide_api::{FileId, RunnableKind}; use ra_project_model::{self, ProjectWorkspace, TargetKind}; diff --git a/crates/ra_lsp_server/src/config.rs b/crates/ra_lsp_server/src/config.rs index cf53e7c4c..579d4c692 100644 --- a/crates/ra_lsp_server/src/config.rs +++ b/crates/ra_lsp_server/src/config.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use rustc_hash::FxHashMap; use serde::{Deserialize, Deserializer}; diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs index d78f77925..1318a1738 100644 --- a/crates/ra_lsp_server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use lsp_types::{ self, CreateFile, DiagnosticSeverity, DocumentChangeOperation, DocumentChanges, Documentation, Location, LocationLink, MarkupContent, MarkupKind, Position, Range, RenameFile, ResourceOp, diff --git a/crates/ra_lsp_server/src/lib.rs b/crates/ra_lsp_server/src/lib.rs index fa3d88abd..7a71a90fb 100644 --- a/crates/ra_lsp_server/src/lib.rs +++ b/crates/ra_lsp_server/src/lib.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + #![recursion_limit = "512"] mod caps; mod cargo_target_spec; diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index 852fae027..7d9a1d054 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use flexi_logger::{Duplicate, Logger}; use lsp_server::Connection; diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 2059f9800..35c35d32b 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + mod handlers; mod subscriptions; pub(crate) mod pending_requests; diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index ae57e57e9..10e271376 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::{fmt::Write as _, io::Write as _}; use lsp_server::ErrorCode; diff --git a/crates/ra_lsp_server/src/main_loop/pending_requests.rs b/crates/ra_lsp_server/src/main_loop/pending_requests.rs index 7a99fc679..e7ea7aa5b 100644 --- a/crates/ra_lsp_server/src/main_loop/pending_requests.rs +++ b/crates/ra_lsp_server/src/main_loop/pending_requests.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::time::{Duration, Instant}; use lsp_server::RequestId; diff --git a/crates/ra_lsp_server/src/main_loop/subscriptions.rs b/crates/ra_lsp_server/src/main_loop/subscriptions.rs index bbeda723c..3856263b0 100644 --- a/crates/ra_lsp_server/src/main_loop/subscriptions.rs +++ b/crates/ra_lsp_server/src/main_loop/subscriptions.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use ra_ide_api::FileId; use rustc_hash::FxHashSet; diff --git a/crates/ra_lsp_server/src/markdown.rs b/crates/ra_lsp_server/src/markdown.rs index 3659edf8e..f51fc4ade 100644 --- a/crates/ra_lsp_server/src/markdown.rs +++ b/crates/ra_lsp_server/src/markdown.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + pub(crate) fn format_docs(src: &str) -> String { let mut processed_lines = Vec::new(); let mut in_code_block = false; diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 0540f166e..d25fc5726 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url}; use rustc_hash::FxHashMap; use serde::{Deserialize, Serialize}; diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index 232409c3b..b55046ec9 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs @@ -1,3 +1,5 @@ +//! FIXME: write short doc here + use std::{ path::{Path, PathBuf}, sync::Arc, -- cgit v1.2.3