Movatterモバイル変換


[0]ホーム

URL:


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

PoC ARIT#2075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
acamargo wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
frompoc-arit
Draft

PoC ARIT#2075

acamargo wants to merge2 commits intomasterfrompoc-arit

Conversation

acamargo
Copy link
Contributor

@acamargoacamargo commentedJun 13, 2025
edited
Loading

In order to test the integration, create the following files in your project.
Note: Do not forget to replace<project absolute path> and<absolute path to arit> with the actual paths.
Note2: This is PoC and it is not production ready.

.lsp/config.edn

{,,,:linters {:custom {arit/lint {:level:warning}}} ,,,}

resources/clojure-lsp.exports/linters/arit.clj

(nsarit  (:require [clojure-lsp.custom-linters-api:as api]            [clojure.java.shell:as sh]            [cheshire.core:as json]            [clojure.string:as str]            ))(defnlint  [{:keys [db uris params reg-diagnostic!]}]  (let [paths (reduce (fn [acc uri]                        (assoc acc                          (str/replace uri#"<project absolute path>""")                          uri))                      {}                      uris)        relative-paths (keys paths)        {:keys [out exit]:as result} (apply sh/sh                                             (concat ["<absolute path to arit>"]                                                     relative-paths                                                     ["-f""json"]))        smells (if (zero? exit)                 (json/parse-string out)                 (println (pr-str result)))]    (doseq [smell smells]      (reg-diagnostic! {:uri (get paths (get smell"filepath")):range {:row (get-in smell ["location""start_line"]):col (get-in smell ["location""start_col"]):end-row (get-in smell ["location""end_line"]):end-col (get-in smell ["location""end_col"])}:message (get smell"message"):level (:level params):code (get smell"rule_id"):source"arit"}))))
  • I created an issue to discuss the problem I am trying to solve or an open issue already exists.
  • I added a new entry toCHANGELOG.md
  • I updated documentation if applicable (docs folder)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@acamargo

[8]ページ先頭

©2009-2025 Movatter.jp