WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
136686
Web Inspector: Fix obscure ESLint warnings and skip directories
https://bugs.webkit.org/show_bug.cgi?id=136686
Summary
Web Inspector: Fix obscure ESLint warnings and skip directories
Joseph Pecoraro
Reported
2014-09-09 16:17:34 PDT
Some issues ESLint found that we should fix for consistency. Also caught at least one bug: --- UserInterface/Controllers/FormatterContentBuilder.js 199:53 error Infix operators must be spaced space-infix-ops UserInterface/Models/Color.js 434:32 error Infix operators must be spaced space-infix-ops 435:32 error Infix operators must be spaced space-infix-ops 625:17 error Infix operators must be spaced space-infix-ops UserInterface/Models/DOMNodeStyles.js 695:12 error Expression called with trailing whitespace before semicolon no-space-before-semi UserInterface/Views/DOMTreeElement.js 482:8 error Expected an assignment or function call and instead saw an expression no-unused-expressions 530:52 error Infix operators must be spaced space-infix-ops 965:27 error Infix operators must be spaced space-infix-ops 972:48 error Infix operators must be spaced space-infix-ops UserInterface/Views/CSSStyleDeclarationTextEditor.js 533:44 error Wrapping non-IIFE function literals in parens is unnecessary no-wrap-func UserInterface/Views/DOMTreeDataGridNode.js 89:1 error Unexpected blank line at end of file eol-last UserInterface/Views/LayerTreeDataGridNode.js 95:8 error Return statement should not contain assignment no-return-assign UserInterface/Views/TreeOutline.js 59:8 error Keyword "throw" must be followed by whitespace space-return-throw-case 101:8 error Keyword "throw" must be followed by whitespace space-return-throw-case 150:8 error Keyword "throw" must be followed by whitespace space-return-throw-case 188:8 error Keyword "throw" must be followed by whitespace space-return-throw-case 192:8 error Keyword "throw" must be followed by whitespace space-return-throw-case 872:63 error Invalid typeof comparison value valid-typeof UserInterface/Models/Breakpoint.js 354:68 error Expected an assignment or function call and instead saw an expression no-unused-expressions UserInterface/Views/EditingSupport.js 82:4 error Expected an assignment or function call and instead saw an expression no-unused-expressions 83:4 error Expected an assignment or function call and instead saw an expression no-unused-expressions 84:4 error Expected an assignment or function call and instead saw an expression no-unused-expressions
Attachments
[PATCH] Proposed Fix
(13.55 KB, patch)
2014-09-09 16:20 PDT
,
Joseph Pecoraro
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2014-09-09 16:20:03 PDT
Created
attachment 237871
[details]
[PATCH] Proposed Fix This gets us down to just a handful of unique errors which we have all over the place. They should be tackled on their own.
Joseph Pecoraro
Comment 2
2014-09-10 15:14:34 PDT
<
http://trac.webkit.org/changeset/173492
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug