[webkit-help] running check-webkit-style on webkit-gtk

mahesh gawali maheshgawali at outlook.com
Tue Sep 17 08:10:12 PDT 2013


Hi Brian,
Thanks for the reply. should have checked the --help option like with configure scripts.I got the code from a tarball that was downloaded from git probably.I'll try directory path as you have suggested.
Regards,Mahesh

> From: brian.holt at samsung.com
> To: maheshgawali at outlook.com; webkit-help at lists.webkit.org
> Subject: RE: [webkit-help] running check-webkit-style on webkit-gtk
> Date: Tue, 17 Sep 2013 13:28:21 +0100
> 
> Hi Mahesh, 
> 
> With most unix scripts there is a "--help" optional flag implemented that
> will give you a clue how use the tool in question.  Check-webkit-style is no
> different.
> 
> $ Tools/Scripts/check-webkit-style --help 
> Usage: check-webkit-style [--help] [options] [path1] [path2] ...
> 
> Overview:
>   Check coding style according to WebKit style guidelines:
> 
>       http://webkit.org/coding/coding-style.html
> 
>   Path arguments can be files and directories.  If neither a git commit nor
>   paths are passed, then all changes in your source control working
> directory
>   are checked.
> 
> 
> This ^ is the clue to your error.  Since you didn't pass an argument, it
> attempted to check all the changes in your source control working directory,
> but it failed because it could not determine what SCM (Source Control
> Management) system you are using.
> 
> Where did you get the code from? Git, SVN, a tarball or somewhere else?  
> 
> Regards
> Brian
> 
> > -----Original Message-----
> > From: webkit-help-bounces at lists.webkit.org [mailto:webkit-help-
> > bounces at lists.webkit.org] On Behalf Of mahesh gawali
> > Sent: 17 September 2013 12:54
> > To: webkit-help at lists.webkit.org
> > Subject: [webkit-help] running check-webkit-style on webkit-gtk
> > 
> > Hi All,
> > 
> > 
> > I am trying to run check-webkit-style on webkit-gtk build for coding
> > guideline conformance.
> > 
> > 
> > I am getting following error:
> > 
> > 
> > [root at localhost Scripts]# ./check-webkit-style Traceback (most recent
> > call last):
> >   File "./check-webkit-style", line 48, in <module>
> >     sys.exit(CheckWebKitStyle().main())
> >   File "/home/Webkit-GTK/Tools/Scripts/webkitpy/style/main.py", line
> > 127, in main
> >     host._initialize_scm()
> >   File "/home/Webkit-GTK/Tools/Scripts/webkitpy/common/host.py", line
> > 112, in _initialize_scm
> >     self._scm = detector.default_scm(patch_directories)
> >   File "/home/Webkit-
> > GTK/Tools/Scripts/webkitpy/common/checkout/scm/detection.py", line 60,
> > in default_scm
> >     raise Exception("FATAL: Failed to determine the SCM system for
> > either %s or %s" % (cwd, script_directory))
> > Exception: FATAL: Failed to determine the SCM system for either
> > /home/Webkit-GTK/Tools/Scripts or /home/Webkit-
> > GTK/Tools/Scripts/webkitpy/common/checkout/scm
> > 
> > 
> > 
> > 
> > Also, Is it possible to point the script to a specific directory for
> > coding style checks
> > 
> 
> 
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20130917/6d3d43d7/attachment-0001.html>


More information about the webkit-help mailing list