Skip to content

Commit 07dccd4

Browse files
committed
Require explicit opt-in for GitHub and Gitlab formats
1 parent 9409b49 commit 07dccd4

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
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 & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,6 @@ pub enum SerializationFormat {
164164

165165
impl Default for SerializationFormat {
166166
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-
}
178167
Self::Text
179168
}
180169
}

0 commit comments

Comments
 (0)