You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only Run npm-package-json-lint When package.json is Present (#2280)
* Link to a PR rather than an issue in changelog
* Prefer list.append(x) to list += [x]
The former is slightly faster as it generally doesn't create a new list.
* Don't warn that REPOSITORY linters are missing
Some REPOSITORY linters are intentionally omitted from flavors to keep
their size small and performance fast. Hence, their absence from a
flavor isn't considered an error when FAIL_IF_MISSING_LINTER_IN_FLAVOR
is true. Therefore, omit them from the list of missing linters displayed
to the user to avoid confusion.
* Simplify check_active_linters_match_flavor
Reduce indentation by inverting test, and prefer the more Pythonic test
not list to len(list) == 0 for simplicity. Remove some comments rendered
unnecessary via this more direct expression of our intent.
* Correct capitalization of Docker in a warning
* Only lint package.json when present (#2279)
npm-package-json-lint only lints Node.js package.json files, so only run
it when package.json is present. npm-package-json-lint is correctly
omitted from most flavors. Many non-Node.js projects contain other JSON
files, so this change prevents false positives when
FAIL_IF_MISSING_LINTER_IN_FLAVOR is true.
- Configure jsonschema documentation formatting (see [Descriptor schema](https://megalinter.io/latest/json-schemas/descriptor.html), [Configuration schema](https://megalinter.io/latest/json-schemas/configuration.html)), by @echoix in [#2270](https://github.com/oxsecurity/megalinter/pull/2270)
0 commit comments