Compare commits

...

3 Commits

Author SHA1 Message Date
Ana Gelez
7d7a867bd1 Let's try with a comma 2020-01-31 08:44:16 +01:00
Ana Gelez
c5fa90176c Add a "ci" feature to make clippy ignore docs warnings 2020-01-31 08:25:25 +01:00
Ana Gelez
55ccd1b4e4 Add warning for missing documentation 2020-01-21 17:41:32 +01:00
15 changed files with 23 additions and 2 deletions

View File

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

View File

@ -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"]

View File

@ -7,3 +7,6 @@ edition = "2018"
[dependencies]
serde = "1.0"
serde_derive = "1.0"
[features]
ci = []

View File

@ -1,3 +1,5 @@
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
#[macro_use]
extern crate serde_derive;

View File

@ -23,3 +23,4 @@ path = "../plume-models"
[features]
postgres = ["plume-models/postgres", "diesel/postgres"]
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
ci = ["plume-models/ci"]

View File

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

View File

@ -30,3 +30,6 @@ version = "0.4"
[dependencies.pulldown-cmark]
default-features = false
version = "0.2.0"
[features]
ci = []

View File

@ -1,3 +1,4 @@
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
#![feature(associated_type_defaults)]
#[macro_use]

View File

@ -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 = []

View File

@ -1,5 +1,6 @@
#![recursion_limit = "128"]
#![feature(decl_macro, proc_macro_hygiene, try_trait)]
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
#[macro_use]
extern crate gettext_macros;

View File

@ -19,3 +19,4 @@ syn = "0.15.27"
default = []
postgres = []
sqlite = []
ci = []

View File

@ -1,4 +1,5 @@
#![recursion_limit = "128"]
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
#[macro_use]
extern crate quote;

View File

@ -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"]

View File

@ -1,6 +1,7 @@
#![feature(try_trait)]
#![feature(never_type)]
#![feature(proc_macro_hygiene)]
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
#[macro_use]
extern crate diesel;

View File

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