GitHub Linguist: vendored-path patterns and generated-file rules ================================================================= Project: Linguist by GitHub, Inc. (https://github.com/github-linguist/linguist), version v9.7.0. Licence: the MIT licence, as the project's LICENSE file gives it (below). What MySmartCoPilot uses: the regular expressions of Linguist's vendored paths (lib/linguist/vendor.yml: the dependency, build-output, third-party and tool folders that GitHub leaves out of a repository's language statistics) and the rules of its generated-file detection (lib/linguist/generated.rb: lock files and tool wrappers, files that code generators write, minified JavaScript and CSS, source maps, and files whose first lines say they are generated). Where: the Code Quality Report (https://mysmartcopilot.com/tools/code-quality-report/), in the background worker that reads a project in the visitor's browser (src/tools/developer/code-quality-report/linguist.ts), so that a report leaves those files out the way Linguist does. Changes by MySmartCoPilot: the 168 vendor.yml patterns are kept unchanged as JavaScript regular expressions, matched against a file's path; a selection of the generated.rb checks is rewritten in TypeScript (the names of lock files, tool wrappers and generated code, the average line length of JavaScript and CSS files, a source-map reference at the end of a file, and the "do not edit" headers of code generators). Nothing of Linguist's Ruby code is run. --- LICENSE (github-linguist/linguist) --- Copyright (c) 2017 GitHub, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.