Skip to content

Commit 5c8e4dc

Browse files
committed
Merge branch 'v1'
Brings rewrite-cljc efforts and other fixes/improvements to main.
2 parents 0d33db0 + 1725885 commit 5c8e4dc

File tree

234 files changed

+33236
-4809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+33236
-4809
lines changed

.circleci/config.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.clj-kondo/ci-config.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{:output {:include-files ["^src" "^test" "^script" "deps.edn"]}}

.clj-kondo/config.edn

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{:config-paths ^:replace []
2+
:lint-as
3+
{ clojure.test.check.clojure-test/defspec clojure.core/def
4+
clojure.test.check.properties/for-all clojure.core/let
5+
rewrite-clj.zip/subedit-> clojure.core/->
6+
rewrite-clj.zip.subedit/subedit-> clojure.core/->
7+
rewrite-clj.zip/subedit->> clojure.core/->>
8+
rewrite-clj.zip.subedit/subedit->> clojure.core/->>
9+
rewrite-clj.zip/edit-> clojure.core/->
10+
rewrite-clj.zip.subedit/edit-> clojure.core/->
11+
rewrite-clj.zip/edit->> clojure.core/->>
12+
rewrite-clj.zip.subedit/edit->> clojure.core/->>
13+
rewrite-clj.custom-zipper.switchable/defn-switchable clojure.core/defn}
14+
:linters
15+
{:unsorted-required-namespaces {:level :warning}
16+
:unused-namespace
17+
{:exclude [clojure.test.check]}
18+
:unused-referred-var
19+
{:exclude {clojure.test.check [quick-check]}}
20+
:deprecated-var
21+
{:exclude {rewrite-clj.zip.base/->string
22+
{:namespaces [rewrite-clj.zip]}
23+
rewrite-clj.zip.base/->root-string
24+
{:namespaces [rewrite-clj.zip]}
25+
rewrite-clj.zip.base/value
26+
{:namespaces [rewrite-clj.zip]}
27+
rewrite-clj.zip/->root-string
28+
{:namespaces [rewrite-clj.regression-test]}
29+
rewrite-clj.zip/->string
30+
{:namespaces [rewrite-clj.regression-test]}
31+
32+
rewrite-clj.zip/append-space
33+
{:namespaces [rewrite-clj.zip.whitespace-test]}
34+
rewrite-clj.zip.whitespace/append-space
35+
{:namespaces [rewrite-clj.zip]}
36+
37+
rewrite-clj.zip/prepend-space
38+
{:namespaces [rewrite-clj.zip.whitespace-test]}
39+
rewrite-clj.zip.whitespace/prepend-space
40+
{:namespaces [rewrite-clj.zip]}
41+
42+
rewrite-clj.zip/append-newline
43+
{:namespaces [rewrite-clj.zip.whitespace-test]}
44+
rewrite-clj.zip.whitespace/append-newline
45+
{:namespaces [rewrite-clj.zip]}
46+
47+
rewrite-clj.zip/prepend-newline
48+
{:namespaces [rewrite-clj.zip.whitespace-test]}
49+
rewrite-clj.zip.whitespace/prepend-newline
50+
{:namespaces [rewrite-clj.zip]}
51+
52+
rewrite-clj.node.protocols/value
53+
{:namespaces [rewrite-clj.node rewrite-clj.zip.base]}
54+
rewrite-clj.node/value
55+
{:defs [rewrite-clj.zip.base/value]}}}}}

.codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true
9+
10+
comment: false

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Version**
11+
[Please specify what version of rewrite-clj you are using. If you are referencing via `:git/url`, specify the `:sha`]
12+
13+
**Platform**
14+
[Please specificy relevant platforms]
15+
Operating System: [os and version]
16+
Clojure version: [clj version]
17+
JDK vendor and version: [jdk vendor and version]
18+
19+
ClojureScript
20+
- version: [cljs version]
21+
- tooling: [shadow-cljs|cljs|etc]
22+
- host: [node|firefox|chrome|planck|etc]
23+
24+
**Symptom**
25+
[As succinctly as you can, please describe the symptom. If you have some thoughts on what the problem may be you can write about that below under the "Diagnosis" section]
26+
27+
**Reproduction**
28+
[Please provide a minimal working reproduction of the symptom]
29+
30+
**Actual behavior**
31+
[Describe the unexpected behavior]
32+
33+
**Expected behavior**
34+
[Describe what you'd expect to happen instead]
35+
36+
**Diagnosis**
37+
[Have you diagnosed why the issue is occurring? That's great, thanks for diving in, please jot your findings down here]
38+
39+
**Action**
40+
[What's your next step? Are you going to pitch in with a PR? If so, wonderful, let us know your plans! If not, that's fine too, we very much appreciate the time you took to describe the bug you encountered!]

.github/ISSUE_TEMPLATE/docs.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Docs
3+
about: Docs
4+
title: ''
5+
labels: docs
6+
assignees: ''
7+
8+
---
9+
10+
[Either you found a problem in rewrite-clj docs or you have read the docs and are still unsure how to proceed. Alternatively you can visit the [Clojurians Slack #rewrite-clj channel](https://clojurians.slack.com/messages/CHB5Q2XUJ) to chat.]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Problem/Opportunity**
11+
[Remember that one of rewrite-clj v1's primary goals is to not break API compatibility. With that understanding, what problem are you trying to solve? Or what opportunity do you want to take advantage of? Who will it help? Please write up a clear and concise description here]
12+
13+
**Proposed Solution**
14+
[A clear and concise description of what you want to happen.]
15+
16+
**Alternative Solutions**
17+
[A clear and concise description of any alternative solutions or features you've considered.]
18+
19+
**Additional context**
20+
[Add other context, if any, about the feature request here.]
21+
22+
**Action**
23+
[What's your next step? Do you want to be involved with designing, coding and then maintaining a solution, if so let us know! If not, that's fine too, thanks for sharing your idea!]

.github/workflows/code-coverage.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Code Coverage
2+
3+
on: push
4+
5+
jobs:
6+
code-coverage:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Clojure deps cache
13+
uses: actions/cache@v2
14+
with:
15+
path: |
16+
~/.m2/repository
17+
~/.gitlibs
18+
key: $${ runner.os }}-cljdeps-${{ hashFiles('deps.edn') }}
19+
restore-keys: $${ runner.os }}-cljdeps-
20+
21+
- name: Setup Java
22+
uses: actions/setup-java@v1
23+
with:
24+
java-version: 11
25+
26+
- name: Install babashka
27+
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
28+
29+
- name: Install clojure
30+
run: curl -s https://download.clojure.org/install/linux-install-1.10.1.763.sh | sudo bash
31+
32+
- name: Tools versions
33+
run: |
34+
echo "bb --version"
35+
bb --version
36+
echo "java -version"
37+
java -version
38+
echo "clojure -Sdescribe"
39+
clojure -Sdescribe
40+
41+
- name: Download clojure dependencies
42+
run: clojure -Spath
43+
44+
- name: Run Tests with Code Coverage
45+
run: bb ./script/clj_tests.clj --coverage
46+
47+
- name: Upload Code Coverage Results
48+
run: bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json

.github/workflows/libs-test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Libs Test
2+
3+
on: push
4+
5+
jobs:
6+
libs-test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Clojure deps cache
15+
uses: actions/cache@v2
16+
with:
17+
path: |
18+
~/.m2/repository
19+
~/.gitlibs
20+
# base cache on libs_test.clj script for now... lib deps are embedded in it
21+
key: $${ runner.os }}-clj-libs-deps-${{ hashFiles('script/libs_tests.clj') }}
22+
restore-keys: $${ runner.os }}-clj-libs-deps-
23+
24+
- name: Setup Java
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
29+
- name: Install planck
30+
run: |
31+
sudo add-apt-repository -y ppa:mfikes/planck
32+
sudo apt-get update
33+
sudo apt-get install -y planck
34+
35+
- name: Install Babashka
36+
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
37+
38+
- name: Install Clojure
39+
run: curl -s https://download.clojure.org/install/linux-install-1.10.1.763.sh | sudo bash
40+
41+
- name: Tools versions
42+
run: |
43+
echo "bb --version"
44+
bb --version
45+
echo "java -version"
46+
java -version
47+
echo "clojure -Sdescribe"
48+
clojure -Sdescribe
49+
echo "lein --version"
50+
lein --version
51+
echo "planck --version"
52+
planck --version
53+
54+
- name: Run Libs Tests
55+
run: bb ./script/libs_tests.clj run

0 commit comments

Comments
 (0)