Skip to content

Commit 12d2526

Browse files
Require explicit opt-in for GitHub and Gitlab formats (#1697)
1 parent 81b812d commit 12d2526

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,9 @@ jobs:
13271327
run: |
13281328
python -m pip install --upgrade pip
13291329
pip install ruff
1330+
# Include `--format=github` to enable automatic inline annotations.
13301331
- name: Run Ruff
1331-
run: ruff .
1332+
run: ruff --format=github .
13321333
```
13331334
13341335
## FAQ

src/settings/types.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::env;
21
use std::hash::Hash;
32
use std::ops::Deref;
43
use std::path::{Path, PathBuf};
@@ -164,17 +163,6 @@ pub enum SerializationFormat {
164163

165164
impl Default for SerializationFormat {
166165
fn default() -> Self {
167-
if let Ok(github_actions) = env::var("GITHUB_ACTIONS") {
168-
if github_actions == "true" {
169-
return Self::Github;
170-
}
171-
}
172-
173-
if let Ok(gitlab_ci) = env::var("GITLAB_CI") {
174-
if gitlab_ci == "true" {
175-
return Self::Gitlab;
176-
}
177-
}
178166
Self::Text
179167
}
180168
}

0 commit comments

Comments
 (0)