Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Latest commit

 

History

History
52 lines (40 loc) · 1.91 KB

index.md

File metadata and controls

52 lines (40 loc) · 1.91 KB

+++ title = "ShowLint" tags = ["syntax", "lint"] reeval = true +++

ShowLint

Linters have obvious benefits but, like any tool, can be hard to use. Not all users have the time to install and update a linter, and inspect its output. Also, some linters show many false-positives and cause the code to be littered with ignore ... comments, and any suggestion by the linter is only interesting once. After a decision is made on applying the suggestion, the suggestion should not come back.

So, I figured that it might be useful to periodically generate the lint results for many repositories and show the results on a website.

This website shows linting results for

# hideall
using ShowLint; SL = ShowLint
n_patterns = length(SL.patterns)
n_repositories = length(SL.repositories())
n_loc = SL.cloned_loc()
pretty_n_loc = SL.prettify_loc(n_loc)
n_loc_text = "(about $pretty_n_loc lines of code)"

println("""
- [$n_patterns patterns](/patterns) on 
- [$n_repositories repositories](/repositories) $n_loc_text.
""")

\textoutput{insert-numbers}

If the linter shows useful rewrites, then consider making a pull request. For many changes, use Comby. All the required information to apply Comby available on this website and in Comby's documentation. To automate pull request creation, see Sourcegraph Campaigns.

The source code of this website is at https://github.com/rikhuijzer/ShowLint.

List of merged refactors

These small refactors have been detected via this site and are merged:

  1. JuliaLang/Pkg.jl#2297
  2. JuliaData/YAML.jl#103
  3. JuliaDynamics/Agents.jl#357
  4. JuliaPlots/Plots.jl#3200
  5. StatisticalRethinkingJulia/StatisticalRethinking.jl#104
  6. JuliaLang/julia#38990

For stale and closed PRs, see notes.