Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Configuration clearity #359

Open
Open
Assignees
@SilentImp

Description

Hi, maybe it would be nice to provide more documentation examples and information about default values.
For example I created this config:

---
version: "2"
plugins:
 duplication:
 enabled: true
 config:
 languages:
 - javascript
 checks:
 mass_threshold: 50
 similar-code:
 config:
 threshold: 60
 identical-code:
 config:
 threshold: 40

And its raise some questions:

  • is it correct?
  • why we can't set identical-code: 60 without config: and threshold:?
  • can I set mass_threshold: under checks:?
  • is my config only allow javascript language?

Also maybe it would be really cool to have a way to visually see the threshold level impact with a code example. Something like code block (default, but with a way to paste your own), a couple of sliders and a result. What do you think, can it be useful?

Regards. Anton.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /