Platform Team/Sugar Lint: Difference between revisions

Line 8: Line 8:
For python files, sugar-lint will call pylint (should be installed before) with custom configuration file and pep8.py (comes with sugar-lint sources).
For python files, sugar-lint will call pylint (should be installed before) with custom configuration file and pep8.py (comes with sugar-lint sources).


== Usage ==
== Install ==


Clone sugar-lint repository:
Clone sugar-lint repository:
Line 17: Line 17:


  echo PATH=''<local-path>'':$PATH >> ~/.bashrc
  echo PATH=''<local-path>'':$PATH >> ~/.bashrc
== Direct usage ==


To lint files:
To lint files:
Line 25: Line 27:


  sugar-lint -r .
  sugar-lint -r .
== Lint files before commiting ==


To add pre-commit git hook to lint files before commiting to arbitrary project:
To add pre-commit git hook to lint files before commiting to arbitrary project: