empty css statements crashes linter
Bug #890101 reported by
Jeroen T. Vermeulen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pocket-lint |
Fix Released
|
High
|
Curtis Hovey |
Bug Description
Our lint check crashes on lib/lp/
This may be a bug in pocketlint as well; I don't know whether a CSS class is allowed to be empty. There may be some trivial workaround.
Changed in pocket-lint: | |
assignee: | Huw Wilkins (huwshimi) → Curtis Hovey (sinzui) |
Changed in pocket-lint: | |
status: | Triaged → Fix Committed |
summary: |
- activator-skin crashes linter + empty css statements crashes linter |
Changed in pocket-lint: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This defect is in pocketlint/ contrib/ cssccc. py and can be fixed today.
Traceback (most recent call last): pocketlint" , line 6, in <module> exit(main( sys.argv) ) pymodules/ python2. 7/pocketlint/ formatcheck. py", line 617, in main sources, reporter) pymodules/ python2. 7/pocketlint/ formatcheck. py", line 601, in check_sources pymodules/ python2. 7/pocketlint/ formatcheck. py", line 250, in check self.file_ path, self.text, self._reporter) .check( ) pymodules/ python2. 7/pocketlint/ formatcheck. py", line 424, in check check_css_ coding_ conventions( ) pymodules/ python2. 7/pocketlint/ formatcheck. py", line 449, in check_css_ coding_ conventions nventionChecker (self.text, logger= self.message) .check( ) pymodules/ python2. 7/pocketlint/ contrib/ cssccc. py", line 294, in check pymodules/ python2. 7/pocketlint/ contrib/ cssccc. py", line 128, in check checkDeclaratio ns() pymodules/ python2. 7/pocketlint/ contrib/ cssccc. py", line 170, in checkDeclarations ns.getStartLine () pymodules/ python2. 7/pocketlint/ contrib/ cssccc. py", line 255, in getStartLine
File "/usr/bin/
sys.
File "/usr/lib/
return check_sources(
File "/usr/lib/
checker.check()
File "/usr/lib/
CSSChecker(
File "/usr/lib/
self.
File "/usr/lib/
CSSCodingCo
File "/usr/lib/
rule.check()
File "/usr/lib/
self.
File "/usr/lib/
start_line = self.declaratio
File "/usr/lib/
character = text[index]
IndexError: string index out of range