[][src]Struct rslint_core::groups::errors::NoExtraSemi

pub struct NoExtraSemi {}

Disallow unneeded semicolons.

Unneeded semicolons are often caused by typing mistakes, while this is not an error, it can cause confusion when reading the code. This rule disallows empty statements (extra semicolons).

Invalid Code Examples

if (foo) {
    ;
}
class Foo {
    constructor() {};
}

Implementations

impl NoExtraSemi[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for NoExtraSemi[src]

impl CstRule for NoExtraSemi[src]

impl Debug for NoExtraSemi[src]

impl Default for NoExtraSemi[src]

impl<'de> Deserialize<'de> for NoExtraSemi[src]

impl Rule for NoExtraSemi[src]

impl Serialize for NoExtraSemi[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.