Installations
npm install lesshint
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=6
Node Version
12.4.0
NPM Version
6.9.0
Score
61.5
Supply Chain
84.5
Quality
70.9
Maintenance
50
Vulnerability
97.1
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.69%)
CSS (0.31%)
Developer
lesshint
Download Statistics
Total Downloads
5,423,374
Last Day
294
Last Week
4,072
Last Month
26,076
Last Year
338,678
GitHub Statistics
116 Stars
1,166 Commits
50 Forks
7 Watching
47 Branches
33 Contributors
Bundle Size
608.46 kB
Minified
161.25 kB
Minified + Gzipped
Package Meta Information
Latest Version
6.3.7
Package Id
lesshint@6.3.7
Unpacked Size
517.48 kB
Size
73.07 kB
File Count
169
NPM Version
6.9.0
Node Version
12.4.0
Total Downloads
Cumulative downloads
Total Downloads
5,423,374
Last day
-73.9%
294
Compared to previous day
Last week
-31.4%
4,072
Compared to previous week
Last month
3.9%
26,076
Compared to previous month
Last year
-80.9%
338,678
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
lesshint
lesshint
is a tool to aid you in writing clean and consistent Less.
- Installation
- Configuration
- Rules
- CLI usage
- Complementary tools
- Linters
- Reporters
- Developer resources
Installation
Node.js 6 (or later) is required.
Run the following from the command line to install lesshint
(add -g
to install globally):
npm install lesshint
Configuration
For information on how to configure lesshint
and other available options, see the user guide.
Since lesshint
is highly customizable we recommend you to also take a look at the available rule options to tailor it to your needs.
CLI usage
Run lesshint
from the command-line by passing one or more files/directories to recursively scan. Quote the glob patterns for optimal cross-platform results.
lesshint "src/less/" "lib/style.less"
Available Flags | Description |
---|---|
-c /--config | Specify the configuration file to use (will be merged with defaults). |
-e /--exclude | A globby glob pattern or a file to exclude from being linted. |
-l /--linters | Paths to custom linters to add to the built-in list. See "Linters" below for more information. |
-r /--reporter | The reporter to use. See "Reporters" below for more information. |
-V /--version | Show the version. |
-x /--max-warnings | Number of warnings to allow before exiting with a non-zero code. Omit it to always exit with zero code. |
Exit status codes
Depending on the linter results and options supplied, the exit status code returned by the CLI will differ.
Exit status code | Description |
---|---|
0 | Everything is alright or only linting errors with a severity of warning were found. |
1 | One or more linting errors with a severity of error were found. Or when --max-warnings flag is set and the number of linting errors with a severity of warning found is greater than the given value. |
66 | No files to lint were supplied. |
70 | An unknown error occurred within lesshint , possibly a bug. Please file an issue! |
78 | Something is wrong with the config file, most likely invalid JSON. |
These codes were chosen with regards to the preferable exit codes.
Complementary tools
- AtomLinter plugin - A Linter plugin for Atom.
- autolesshint - Automagically fix errors reported by
lesshint
. - Gulp plugin - A gulp plugin for
lesshint
. - Grunt plugin - A Grunt plugin for
lesshint
. - vscode-lesshint - A VS Code extension for
lesshint
.
Linters
In addition to the linters included with lesshint
, it's also possible to include custom ones. For example to check something team or project specific.
For more information on using custom linters, see the user guide.
Reporters
Reporters are small modules that can be used to perform actions with the lint results, for example printing something to the terminal or generate custom reports.
For more information on using reporters, see the user guide.
Developer resources
- Node API -
lesshint
's public Node API reference. - Developing linters - Guide for hacking on linters.
- Developing reporters - Guide for hacking on reporters.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
49 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9
- Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f
- Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p
- Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv
- Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8
- Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65
- Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-h726-x36v-rx45
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp
- Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More