Skip to content

Ignore certain parts of files #328

@jblandry

Description

@jblandry

I would appreciate if there was a way for scss logical code not to be processed.

.blocks {
    font-weight:bold;

    // from here
    @each $id, $data in $section-colorscheme {
        $body:  map-get($data, body);
        $class: map-get($data, class);
        $base:  map-get($data, base);
        $lite:  map-get($data, lite);
        $dark:  map-get($data, dark);

        body#{$body} & { background-color: $lite; }
        &#{$class}     { color: $base; background-color: $dark; }

        @if $id == beta {
            &::before { content: 'BBB'; }
        }
    }
    // to here
}

I figure it's complicated so I was wondering if there could be ignore comment command:

.blocks {
    font-weight:bold;

    // csscomb:ignore:start
    @each $id, $data in $section-colorscheme {
        $body:  map-get($data, body);
        $class: map-get($data, class);
        $base:  map-get($data, base);
        $lite:  map-get($data, lite);
        $dark:  map-get($data, dark);

        body#{$body} & { background-color: $lite; }
        &#{$class}     { color: $base; background-color: $dark; }

        @if $id == beta {
            &::before { content: 'BBB'; }
        }
    }
    // csscomb:ignore:end
}

Thanks in advance

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5501949-ignore-certain-parts-of-files?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions