question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore certain parts of files

See original GitHub issue

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

<bountysource-plugin> --- 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). </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:36
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
alfredbezcommented, Jun 9, 2016

@awanderingorill @klojniewski @JPLachance @noslon You can react directly on a post without adding noise to this issue by clicking on the ‘thumbs up’-emoji: bildschirmfoto vom 2016-06-09 13-56-32

0reactions
jdaltoncommented, Apr 19, 2019

Hi All!

I’m closing this because unless a PR is created it won’t likely be addressed. If you feel strongly about this request I encourage you to dig in and submit a PR 😸

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ignore parts of your file - How Do I Use Beyond Compare
How to ignore parts of your file · 1. Session->SessionSettings->Importance->EditGrammar->Grammar->[+] · 2. Then choose Category->Lines. Set that window similar to ...
Read more >
How to ignore certain parts of a line in text file in Python?
I'm attempting to extract the numerical information from an input.txt file I have below. size ...
Read more >
.gitignore File – How to Ignore Files and Folders in Git
Inside .gitignore , you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern...
Read more >
Ignoring Code
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >
Ignore parts of the code | JetBrains Rider Documentation
To ignore the current file, press Ctrl+Alt+Shift+8 . To ignore a part of a file, add the // ReSharper disable All comment before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found