Added test for check doc strings in crates.

#1856
This commit is contained in:
Alexander Andreev 2019-09-30 11:58:53 +03:00
parent 2b69c84396
commit fdbd6bb11a
171 changed files with 419 additions and 29 deletions

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use lsp_types::{
CodeActionProviderCapability, CodeLensOptions, CompletionOptions,
DocumentOnTypeFormattingOptions, FoldingRangeProviderCapability, GenericCapability,

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use ra_ide_api::{FileId, RunnableKind};
use ra_project_model::{self, ProjectWorkspace, TargetKind};

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use rustc_hash::FxHashMap;
use serde::{Deserialize, Deserializer};

View file

@ -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,

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
#![recursion_limit = "512"]
mod caps;
mod cargo_target_spec;

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use flexi_logger::{Duplicate, Logger};
use lsp_server::Connection;

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
mod handlers;
mod subscriptions;
pub(crate) mod pending_requests;

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use std::{fmt::Write as _, io::Write as _};
use lsp_server::ErrorCode;

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use std::time::{Duration, Instant};
use lsp_server::RequestId;

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use ra_ide_api::FileId;
use rustc_hash::FxHashSet;

View file

@ -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;

View file

@ -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};

View file

@ -1,3 +1,5 @@
//! FIXME: write short doc here
use std::{
path::{Path, PathBuf},
sync::Arc,