You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ensure lists of modules are in alphabetical order #7390
A-machC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.L-pythonPython is required
This might be better as a compiler lint (which uses the existing parser that already knows how to deal with attributes) rather than hack it with string manipulation and regexes.
A-machC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.L-pythonPython is required
Activity
jdm commentedon Aug 26, 2015
See the code for checking sorted-ness of
usestatements for inspiration: http://mxr.mozilla.org/servo/source/python/tidy.py#246mylainos commentedon Aug 29, 2015
I'd like to work on this please. But if something like this happen :
we don't report an error because they are not sorted alphabetically, right ?
mylainos commentedon Aug 29, 2015
I think it's done but there is a problem with this line http://mxr.mozilla.org/servo/source/components/style/lib.rs#48. For me the lint should be at the upper line but what do you think ?
Ms2ger commentedon Aug 29, 2015
I think it's cleaner in this case to keep it all on one line.
jdm commentedon Aug 29, 2015
We should be able to strip any attributes that are used by using the same code as http://mxr.mozilla.org/servo/source/python/tidy.py#194 .
mylainos commentedon Aug 29, 2015
The regex at http://mxr.mozilla.org/servo/source/python/tidy.py#195 delete the whole line. This regex
line = re.sub('//.*?$|/\*.*?$|^\*.*?$|^#!?\[.*?]\s', '', line)delete just the attribute.Now everything work except inline mod. Should I do a PR ?
SimonSapin commentedon Aug 29, 2015
This might be better as a compiler lint (which uses the existing parser that already knows how to deal with attributes) rather than hack it with string manipulation and regexes.
mylainos commentedon Aug 30, 2015
The regex that I changed
line = re.sub('//.*?$|/\*.*?$|^\*.*?$|^#!?\[.*?]\s', '', line)only report the attributes with whitespace after (due to the\s). That was for http://mxr.mozilla.org/servo/source/components/style/lib.rs#48.But now tidy report that
./components/gfx/font.rs:104: missing space before =http://mxr.mozilla.org/servo/source/components/gfx/font.rs#104.And this could conflict with #7460.
Auto merge of #7468 - JoshTheGoldfish:Issue7460, r=jdm
Auto merge of #7680 - Mylainos:Issue-#7390, r=metajack