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

pub struct NoDebugger {}

Disallow the use of debugger statements.

debugger statements are used to tell the environment executing the code to start an appropriate debugger. These statements are rendered useless by modern IDEs which have built in breakpoint support. Having them in production code is erroneous as it will tell the browser to stop running and open a debugger.

Invalid Code Examples

function doSomething() {
    debugger;
    doSomethingElse();
}

Implementations

impl NoDebugger[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for NoDebugger[src]

impl CstRule for NoDebugger[src]

impl Debug for NoDebugger[src]

impl Default for NoDebugger[src]

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

impl Rule for NoDebugger[src]

impl Serialize for NoDebugger[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.