Update: Add getSourceLines() to core and rule context (fixed #1005)

Update: Add getSourceLines() to core and rule context (fixed #1005)