Bug 445540 - [CSSLint] Reorganize csslint lib into amd module and support configurable severities
Summary: [CSSLint] Reorganize csslint lib into amd module and support configurable sev...
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 445544 446546
  Show dependency tree
 
Reported: 2014-09-30 14:36 EDT by Curtis Windatt CLA
Modified: 2014-10-14 12:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2014-09-30 14:36:03 EDT
The original csslint contribution to Orion included the rules inside of the csslint.js file.  To allow more customization options and async rule loading we should move the rules to a separate file and/or folder.  We should also move the lib into an amd module so we can use proper requires instead of globals.
Comment 1 Curtis Windatt CLA 2014-10-09 17:16:37 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/?h=cwindatt%2FBug445540_cssLintUpdate

This is ready to go.
1) Settings page has three pages, CSS, Java Script and Validation (only available if you have the NLS plug-in installed).
2) All rules are configurable, all default to warning except parsing errors
3) All rule settings are NLS'd
4) CSSLint is now a module

Future items (I will open a separate bug(s)):
- Separate rules into separate files (async loading)
- Find better default severities
- Use ruleset in verify rather than filtering ignored problems after
- Use subcategories in settings page from the wiki