Skip to content

fix: provides availability to reset reports folder from settings.#254

Merged
Artanias merged 4 commits into
mainfrom
reset_reports_path
Jul 19, 2026
Merged

fix: provides availability to reset reports folder from settings.#254
Artanias merged 4 commits into
mainfrom
reset_reports_path

Conversation

@Artanias

@Artanias Artanias commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator
root@fbada84b3954:/usr/src/codeplag# codeplag settings modify --reports ./
[INFO] 15:40 - Starting codeplag util (0.6.5) ...                                                   
Key                               Value
language                             en
log_level                          info
reports               /usr/src/codeplag
reports_extension                   csv
show_progress                         0
short_output                          0
max_depth                           999
ngrams_length                         3
threshold                            65
workers                              16
mongo_host         host.docker.internal
mongo_port                        27017
mongo_user                         root
root@fbada84b3954:/usr/src/codeplag# cat /etc/codeplag/settings.conf 
{
    "language": "en",
    "log_level": "info",
    "reports_extension": "csv",
    "show_progress": 0,
    "short_output": 0,
    "max_depth": 999,
    "ngrams_length": 3,
    "threshold": 65,
    "workers": 16,
    "mongo_host": "host.docker.internal",
    "mongo_port": 27017,
    "mongo_user": "root",
    "reports": "/usr/src/codeplag"
}root@fbada84b3954:/usr/src/codeplag# codeplag settings modify --reports ""
[INFO] 15:40 - Starting codeplag util (0.6.5) ...                                                   
[INFO] 15:40 - Empty value provided for setting 'reports', deleting it.                             
Key                               Value
language                             en
log_level                          info
reports_extension                   csv
show_progress                         0
short_output                          0
max_depth                           999
ngrams_length                         3
threshold                            65
workers                              16
mongo_host         host.docker.internal
mongo_port                        27017
mongo_user                         root
root@fbada84b3954:/usr/src/codeplag# cat /etc/codeplag/settings.conf 
{
    "language": "en",
    "log_level": "info",
    "reports_extension": "csv",
    "show_progress": 0,
    "short_output": 0,
    "max_depth": 999,
    "ngrams_length": 3,
    "threshold": 65,
    "workers": 16,
    "mongo_host": "host.docker.internal",
    "mongo_port": 27017,
    "mongo_user": "root"
}

@Artanias Artanias added this to the v0.6.0 milestone Jul 19, 2026
@Artanias Artanias linked an issue Jul 19, 2026 that may be closed by this pull request
@Artanias Artanias added the bug Something isn't working label Jul 19, 2026
@Artanias Artanias changed the title feat: provides availability to reset reports folder from settings. fix: provides availability to reset reports folder from settings. Jul 19, 2026
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissBranchBrPartCoverMissing
codeplag
   __init__.py3331006%5–6, 8–14, 16–17, 19–20, 22–34, 40–43, 45
   __main__.py33220%1, 3–4
   codeplagcli.py101820788%60–61, 63, 428->429, 429, 431->440, 440, 442->443, 443, 446->449, 449, 455->461, 461
   config.py390160100% 
   consts.py43000100% 
   display.py12849382158%45, 70->71, 71, 99–102, 104, 116, 118–119, 121–124, 126–127, 129, 135, 137–138, 140–143, 145–146, 148, 150, 154, 170–172, 180–181, 188–189, 191, 196–197, 199–200, 202, 206–210, 214–215
   featurescache.py2960079%31–32, 34, 37–38, 40
   getfeatures.py11370483634%97–100, 102–104, 106–108, 113–116, 118–120, 125, 128–129, 135–137, 163–168, 170, 172, 195–199, 201–204, 207–210, 212–213, 215, 217–218, 220, 240–244, 246–248, 250–251, 254–257, 259–260, 262, 264–265, 267
   logger.py61336543%28–30, 33, 35, 40–41, 45, 49–51, 58, 62–64, 66, 70–72, 74–77, 79, 85–90, 94–95, 103->104, 104
   reporters.py731020782%37->40, 40, 42->43, 43, 56->57, 57–58, 63->65, 73->74, 74, 76, 88, 92–93, 98
   translate.py510080%10
   types.py143060100% 
   utils.py444416160%1–2, 4, 6, 11–12, 15–17, 20–23, 25–28, 30–35, 37–41, 43–44, 53–54, 56–57, 59–66, 70, 76
codeplag/algorithms
   __init__.py0000100% 
   compare.py24020100% 
   featurebased.py129376497%35->36, 36, 71->74, 81->84, 84, 101->102, 102
   stringbased.py56028199%48->51
   tokenbased.py45320391%117->118, 118, 136->137, 137, 169->170, 170
codeplag/cplag
   __init__.py0000100% 
   const.py9000100% 
   tree.py48424390%32->33, 33–36
   utils.py8653302830%22–24, 37->40, 40->41, 41–42, 61–62, 64–66, 68–69, 71–75, 77–83, 85, 96, 105, 107–108, 110–116, 119, 122–125, 128–132, 134, 137–138, 140–141, 144, 150
codeplag/db
   __init__.py0000100% 
   mongo.py1131818682%62–64, 78–83, 85, 92–95, 120->121, 121–122, 180->181, 181–182
codeplag/handlers
   __init__.py0000100% 
   check.py208153786823%87–90, 92, 94–95, 97–102, 105, 109–116, 118–122, 124–125, 127, 129, 136–137, 149–150, 153, 155–159, 176–181, 183–185, 187–190, 196–197, 203–207, 216–220, 222–225, 230–239, 242–243, 252, 261–265, 270–281, 286–289, 292–293, 303–305, 307–311, 314, 319–329, 338, 341–343, 346–349, 351–352, 354, 362, 369–373, 379–380, 388–389, 404, 407, 445–448
   report.py216991025153%84–94, 97–99, 108–111, 120–121, 123, 127, 142->143, 143, 149–151, 160->140, 250->251, 251–252, 302–304, 307, 312–316, 320–322, 327–331, 334–336, 338, 350–353, 355–359, 362, 366–371, 395–399, 401–406, 433–436, 438–441, 443–448, 450, 457–459, 461–464, 473
   settings.py32714476%13–16, 21, 32->33, 33, 43->44, 44
codeplag/pyplag
   __init__.py0000100% 
   astwalkers.py65738885%23->25, 25–30, 37->38, 38, 39->exit, 81->83
   const.py7000100% 
   utils.py10062323030%26–27, 34–35, 42–43, 51–52, 57–59, 72->73, 73–74, 75->76, 76–77, 83, 85–89, 106–107, 109–111, 113–114, 116–119, 121–127, 129, 140, 149, 151–152, 154–159, 162–165, 167, 171, 174–175, 177–178, 181, 187
webparsers
   __init__.py0000100% 
   async_github_parser.py17517550500%1–5, 7–12, 14, 24, 27, 52–53, 55, 57, 59–60, 62, 64, 66–67, 69, 71, 79–80, 82, 84–86, 93–95, 97, 99, 104–109, 111, 114–116, 118–124, 126–127, 129–138, 140, 142–146, 148–151, 156–158, 168–169, 171, 173, 175–176, 178, 180, 183, 187, 189–193, 195–200, 209–210, 212, 214, 216, 222, 226–227, 229, 232, 243, 245, 247, 256, 259–266, 274–276, 281, 283, 285, 291, 293, 296–300, 302–303, 305–306, 309, 319–320, 327, 329–330, 338, 344–346, 349–351, 354, 362–363, 368, 370, 374, 380, 382, 385–389, 391, 401–406, 408, 411–412
   github_parser.py18426541085%34->37, 37, 56–58, 63->64, 64, 66->69, 73->74, 74, 77–80, 88–91, 119->122, 122, 148->151, 151, 248->251, 251, 260–262, 347–349, 357->360, 360, 363–364
   types.py63060100% 
TOTAL237586574436061% 

@Artanias
Artanias merged commit 5072d06 into main Jul 19, 2026
4 checks passed
@Artanias
Artanias deleted the reset_reports_path branch July 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't unset reports path when set

1 participant