This commit is contained in:
Antón Molleda 2017-10-24 17:03:11 -07:00
Родитель ccb0956b72
Коммит f4770a547c
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,10 +1,14 @@
# THIS PROJECT IS DEPRECATED
This project is deprecated and no longer maintained. Please check [sonar](https://github.com/sonarwhal/sonar) if you need a similar tool but more flexible and modern.
# Static Scan
This tool analyzes the HTML, CSS, and JavaScript of a site or application for common coding issues.
It warns about practices such as incomplete specification of CSS properties, invalid or incorrect
doctypes, and obsolete versions of popular JavaScript libraries.
It's easiest to use modern.IE by going to the [modern.IE site](https://dev.windows.com/en-us/microsoft-edge/tools/staticscan/)
It's easiest to use modern.IE by going to the [modern.IE site](https://dev.windows.com/en-us/microsoft-edge/tools/staticscan/)
and entering the URL to scan there. To customize the scan, or to use the scan
to process files behind a firewall, you can clone and build the files from this repo
and run the scan locally.
@ -30,7 +34,7 @@ Once all the checks have completed, it responds with a JSON object representing
* If you want to modify the code and submit revisions, [Install git](http://git-scm.com/downloads). You can choose [GitHub for Windows](http://windows.github.com/) instead if you prefer. Then clone this repository. If you just want to run locally then downloading then you just need to download the latest version from [here](https://github.com/InternetExplorer/modern.IE-static-code-scan/archive/master.zip) and unzip it
* Install dependencies. From the Modern.ie subdirectory, type: `npm install`
* If desired, set an environment variable `PORT` to define the port the service will listen on. By default the port number is 1337. The Windows command to set the port to 8181 would be: `set PORT=8181`
### CLI
The scanner has a CLI interface that prints directly the results for a website. You just have to run the following command to use it: