We test with popular programs installed – On each installation of Windows, we also install a variety of popular software programs before testing the driver (e.g. Various versions of Microsoft Office, antivirus products and video players).
Check your code quality by running one command.
Supported Languages
- js, jsx, vue
- css, less, scss, sass, styl
Quick Start
Install cqc:
Run Code Quality Checker for all JavaScript files in src
directory:
Output:
Usage
To run cqc, use the following format:
Download Software Quiz Cqc Certification Test
For example:
or
or
Please note that when passing a glob as a parameter, it will be expanded by your shell. The results of the expansion can vary depending on your shell, and its configuration. If you want to use node glob
syntax, you have to quote your parameter (using double quotes if you need it to run in Windows), as follows:
Options
Option | Type | Default | Description |
---|---|---|---|
Files options | |||
--ext | string | .js | Specify file extensions. --ext is only used when the arguments are directories. If you use glob patterns or file names, then --ext is ignored. |
--ignore-path | path | Specify path of ignore file | |
--ignore-pattern | pattern | Pattern of files to ignore | |
--filter-pattern | pattern | Output percentage of all files but only details that related to the filter pattern | |
Script options | |||
--jscpd-min-lines | number | 5 | Set the min size of duplication in code lines |
--jscpd-min-tokens | number | 70 | Set the min size of duplication in code tokens |
--complexity-max | number | 10 | Set the allowed max complexity of a function |
Disable options | |||
--disable-base | Disable base checker | ||
--disable-sloc | Disable sloc checker | ||
--disable-jscpd | Disable jscpd checker | ||
--disable-complexity | Disable complexity checker | ||
Reporter options | |||
-f , --format | string | Specify an output format. Supported format: json | |
--verbose | Verbose mode. A lot more information output | ||
--threshold-jscpd | number | Set the jscpd threshold, process will exit if duplicate rate is more than threshold | |
--threshold-complexity | number | Set the complexity threshold, process will exit if complexity rate is more than threshold |
Examples:
Set the file extensions
Set the ignore file path
Ignore vendors and third-party libraries
Output json format
Output:
Verbose mode
Output:
Set the jscpd threshold
Output:
Computer Software Quiz Proprofs Quiz
API
Software Quiz Creator Free
It's also able to use cqc as a node module:
Computer Hardware And Software Quiz
Concept Definition
Application Software Quiz
Concept | Definition |
---|---|
Number of files | The number of input files |
Source lines of code | The lines of code except commants and blank lines |
Lines of duplicated code | Lines of code (more than 5 lines or more than 70 tokens) which is exactly the same between two files, or in different place of one file |
Duplicate rate | Lines of duplicated code / Source lines of code |
Complexity | https://en.wikipedia.org/wiki/Cyclomatic_complexity |
Number of functions | The number of functions |
Number of high complexity functions | The number of functions which has complexity more than 10 |
High complexity rate | Number of high complexity functions / Number of functions |