You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: you can now choose a threshold for changed files. Past the threshhold, we analyze all files rather than each file one by one. You can also pass in the --all parameter to get this behaviour, regardless of threshold.
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ NOTE: similar code will only work correctly if you run a diff on all the files i
87
87
4. Add a `.codecimate_diff.yml` configuration file
88
88
```
89
89
main_branch_name: master # defaults to main
90
+
threshold_to_run_on_all_files: 8# when you reach a certain number of files changed, it becomes faster to analyze all files rather than analyze them one by one.
90
91
```
91
92
92
93
5. Install the gem
@@ -123,18 +124,23 @@ NOTE: similar code will only work correctly if you run a diff on all the files i
123
124
3. Check if you've added any issues (about 10 secs per code file changed on your branch):
124
125
125
126
```bash
126
-
# runs on all code files changed in your branch
127
+
# runs on each file changed in your branch (about 10 secs per code file changed on your branch)
127
128
./bin/codeclimate_diff
128
129
129
130
OR
130
131
131
-
# filters the changed files in your branch futher
132
+
# filters the changed files in your branch futher by a grep pattern
132
133
./bin/codeclimate_diff --pattern places
133
134
134
135
OR
135
136
136
137
# only shows the new and fixed issues
137
138
./bin/codeclimate_diff --new-only
139
+
140
+
OR
141
+
142
+
# always analyzes all files rather than the changed files one by one, even if below the 'threshold_to_run_on_all_files' setting.
message=always_analyze_all_files ? "Analyzing all files..." : "The number of changed files is greater than the threshold '#{threshold_to_run_on_all_files}', so analyzing all files..."
0 commit comments