Add a "ci" feature to make clippy ignore docs warnings
This commit is contained in:
parent
55ccd1b4e4
commit
c5fa90176c
@ -19,7 +19,7 @@ executors:
|
||||
working_directory: ~/projects/Plume
|
||||
environment:
|
||||
RUST_TEST_THREADS: 1
|
||||
FEATURES: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>>
|
||||
FEATURES: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>> ci
|
||||
DATABASE_URL: <<#parameters.postgres>>postgres://postgres@localhost/plume<</parameters.postgres>><<^parameters.postgres>>plume.sqlite<</parameters.postgres>>
|
||||
|
||||
|
||||
|
@ -79,6 +79,7 @@ postgres = ["plume-models/postgres", "diesel/postgres"]
|
||||
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
||||
debug-mailer = []
|
||||
test = []
|
||||
ci = ["plume-models/ci", "plume-api/ci", "plume-common/ci"]
|
||||
|
||||
[workspace]
|
||||
members = ["plume-api", "plume-cli", "plume-models", "plume-common", "plume-front", "plume-macro"]
|
||||
|
@ -7,3 +7,6 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
@ -23,3 +23,4 @@ path = "../plume-models"
|
||||
[features]
|
||||
postgres = ["plume-models/postgres", "diesel/postgres"]
|
||||
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
||||
ci = ["plume-models/ci"]
|
||||
|
@ -1,7 +1,8 @@
|
||||
use dotenv;
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
use clap::App;
|
||||
use diesel::Connection;
|
||||
use dotenv;
|
||||
use plume_models::{instance::Instance, Connection as Conn, CONFIG};
|
||||
use std::io::{self, prelude::*};
|
||||
|
||||
|
@ -30,3 +30,6 @@ version = "0.4"
|
||||
[dependencies.pulldown-cmark]
|
||||
default-features = false
|
||||
version = "0.2.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
#![feature(associated_type_defaults)]
|
||||
|
||||
#[macro_use]
|
||||
|
@ -13,3 +13,6 @@ gettext-utils = { git = "https://github.com/Plume-org/gettext-macros/", rev = "a
|
||||
lazy_static = "1.3"
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
@ -1,6 +1,6 @@
|
||||
#![recursion_limit = "128"]
|
||||
#![feature(decl_macro, proc_macro_hygiene, try_trait)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate gettext_macros;
|
||||
|
@ -19,3 +19,4 @@ syn = "0.15.27"
|
||||
default = []
|
||||
postgres = []
|
||||
sqlite = []
|
||||
ci = []
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![recursion_limit = "128"]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate quote;
|
||||
|
@ -54,3 +54,4 @@ diesel_migrations = "1.3.0"
|
||||
[features]
|
||||
postgres = ["diesel/postgres", "plume-macro/postgres" ]
|
||||
sqlite = ["diesel/sqlite", "plume-macro/sqlite" ]
|
||||
ci = ["plume-macro/ci"]
|
||||
|
@ -1,7 +1,7 @@
|
||||
#![feature(try_trait)]
|
||||
#![feature(never_type)]
|
||||
#![feature(proc_macro_hygiene)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate diesel;
|
||||
|
@ -1,4 +1,5 @@
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
#![feature(decl_macro, proc_macro_hygiene, try_trait)]
|
||||
|
||||
#[macro_use]
|
||||
|
Loading…
Reference in New Issue
Block a user