JSHint 사전 준비 현재 puf-core 및 puf-builder에서 jsint.sh 파일로 배치파일이 작성되어 있음. Required) Node.js가 설치되어 있어야합니다. curl -sL https://rpm.nodesource.com/setup | bash - yum install -y nodejs (Nodejs가 필요) JsHint를 설치(http://jshint.com/install/) npm install -g jshint 분석할 최상위 폴더에 아래 예제 처럼 2가지 파일을 생성합니다. .jshintignore : 생략할 파일 및 폴더 목록 .jshintrc : 체크할 rule(http://jshint.com/docs/options/) 분석할 폴더에서 아래 명령을 실행하면 하위 폴더 포함한 모든 파일.. 정적분석 6년 전
GENDARME Installation Git이 설치 되어있는 상태 yum install -y git 1. Mono 설치 yum install yum-utils rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ yum install mono-complete 2. Gendarme.Rule.Xamarin 받아오기 git clone https://github.com/xamarin/Gendarme.Rules.Xamarin cd src xbuild .. 정적분석 6년 전
CSSLint 1. npm 설치(centos root에서 수행) curl -sL https://rpm.nodesource.com/setup | bash - yum install -y nodejs (Nodejs가 필요) 2. CSSLint 설치 sudo npm install -g csslint 3. 실행 csslint 검사할 폴더명(or 검사할 파일명.css) csslint --format=checkstyle-xml test2 (checkstyle로 결과를 보여줌) csslint --format=checkstyle-xml test2 > csslint.xml (해당 로그를 사용자가 지정한 파일을 생성하여 넣어줌) 4. 원하는 룰 사용하는 방법 csslint --errors=rule1,rule2 검사할 폴더명(or 검사할 .. 정적분석 6년 전