File tree 5 files changed +34
-0
lines changed
5 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
2
+ * .pyc
Original file line number Diff line number Diff line change
1
+ from closure_linter import errors
2
+ from closure_linter import errorrules
3
+
4
+ OriginalShouldReportError = None
5
+
6
+ def InjectErrorReporter ():
7
+ global OriginalShouldReportError
8
+ OriginalShouldReportError = errorrules .ShouldReportError
9
+ errorrules .ShouldReportError = ShouldReportError
10
+
11
+ def ShouldReportError (error ):
12
+ global OriginalShouldReportError
13
+ return error not in (errors .LINE_TOO_LONG ,) and OriginalShouldReportError (error )
14
+
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+
3
+ from closure_linter import fixjsstyle
4
+ import errorrules
5
+
6
+ if __name__ == '__main__' :
7
+ errorrules .InjectErrorReporter ()
8
+ fixjsstyle .main ()
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ python %~dp0 gjslint.py %*
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+
3
+ from closure_linter import gjslint
4
+ import errorrules
5
+
6
+ if __name__ == '__main__' :
7
+ errorrules .InjectErrorReporter ()
8
+ gjslint .main ()
You can’t perform that action at this time.
0 commit comments