Closed Bug 876510 Opened 13 years ago Closed 13 years ago

Lint only the compiled version of style.css

Categories

(Webmaker Graveyard :: webmaker.org, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kate, Assigned: mjschranz)

Details

Attachments

(1 external file)

Right now we are linting each less file separately, which causes errors if mixins are used but not directly imported in that file (it has no concept of @import, which essentially shares global variable/mixin scope between all files that are imported together) While I actually really don't like the fact that scope is shared between all less files, it is the way the compiler works, so @importing dependencies in each file is not doable for us right now. Can we just lint style.css for now?
Humph, can you weigh in on this?
Flags: needinfo?(david.humphrey)
Does using Twitter's recess module not deal with this? I know Matt moved to that elsewhere, and I wonder if it fixes things here? Matt?
Flags: needinfo?(david.humphrey) → needinfo?(schranz.m)
It can deal with imports, but right now we lint all LESS files in the directory which becomes problematic when some of them (say ui.less) use things that are in mixins.less. Not a problem when this is all compiled because everything imports itself into style.less. So yeah, I see no problem linting only style.less and myprojects.less since both of these are the "parent" css files that import all the other things they need. By comparison, we lint only the CSS files in Popcorn Maker that do all the importing of other less files.
Assignee: nobody → schranz.m
Status: NEW → ASSIGNED
Flags: needinfo?(schranz.m)
Tada
Attachment #754910 - Flags: review?(kate)
Commit pushed to master at https://github.com/mozilla/webmaker.org https://github.com/mozilla/webmaker.org/commit/52ccb01aeaf28f4e2f4d9990fdc319dac5bfed5d Fix Bug 876510 - Lint only style.less and myprojects.less since these are the 'parent' CSS files
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: