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

Commit e05fab0

Browse files
committed
Added codefactor badge
1 parent 4f4c5cd commit e05fab0

File tree

6 files changed

+96
-28
lines changed

6 files changed

+96
-28
lines changed

‎.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/StackExchange.NET/Tests/bin/Debug/netcoreapp2.2/Tests.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/StackExchange.NET/Tests",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
19+
},
20+
{
21+
"name": ".NET Core Attach",
22+
"type": "coreclr",
23+
"request": "attach",
24+
"processId": "${command:pickProcess}"
25+
}
26+
]
27+
}

‎.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/StackExchange.NET/Tests/Tests.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/StackExchange.NET/Tests/Tests.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"${workspaceFolder}/StackExchange.NET/Tests/Tests.csproj",
36+
"/property:GenerateFullPaths=true",
37+
"/consoleloggerparameters:NoSummary"
38+
],
39+
"problemMatcher": "$msCompile"
40+
}
41+
]
42+
}

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# StackExchange.NET
22
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
33

4+
[![CodeFactor](https://www.codefactor.io/repository/github/gethari/stackexchange.net/badge)](https://www.codefactor.io/repository/github/gethari/stackexchange.net)
5+
46
```
57
_____ _ _ ______ _ _ _ ______ _______
68
/ ____| | | | | ____| | | | \ | | ____|__ __|

‎StackExchange.NET/StackExchange.NET/Models/Answer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ public class Answer
2828
[JsonProperty("question_id")]
2929
public long QuestionId { get; set; }
3030
}
31-
}
32-
31+
}

‎StackExchange.NET/StackExchange.NET/Models/BaseResponse.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace StackExchange.NET.Models
44
{
5-
public class BaseResponse<T>
6-
{
7-
public bool Success { get; set; }
8-
public Data<T> Data { get; set; }
9-
public Exception Exception { get; set; }
10-
11-
}
12-
}
5+
public class BaseResponse<T>
6+
{
7+
public bool Success { get; set; }
8+
public Data<T> Data { get; set; }
9+
public Exception Exception { get; set; }
10+
}
11+
}

‎StackExchange.NET/StackExchange.NET/Models/Data.cs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@
22

33
namespace StackExchange.NET.Models
44
{
5-
public class Data<T>
6-
{
7-
[JsonProperty("error_id")]
8-
public long? ErrorId { get; set; }
5+
public class Data<T>
6+
{
7+
[JsonProperty("error_id")]
8+
public long? ErrorId { get; set; }
99

10-
[JsonProperty("error_message")]
11-
public string ErrorMessage { get; set; }
10+
[JsonProperty("error_message")]
11+
public string ErrorMessage { get; set; }
1212

13-
[JsonProperty("error_name")]
14-
public string ErrorName { get; set; }
15-
[JsonProperty("items")]
16-
public T[] Items { get; set; }
13+
[JsonProperty("error_name")]
14+
public string ErrorName { get; set; }
15+
[JsonProperty("items")]
16+
public T[] Items { get; set; }
1717

18-
[JsonProperty("has_more")]
19-
public bool HasMore { get; set; }
18+
[JsonProperty("has_more")]
19+
public bool HasMore { get; set; }
2020

21-
[JsonProperty("quota_max")]
22-
public long QuotaMax { get; set; }
21+
[JsonProperty("quota_max")]
22+
public long QuotaMax { get; set; }
2323

24-
[JsonProperty("quota_remaining")]
25-
public long QuotaRemaining { get; set; }
26-
27-
}
24+
[JsonProperty("quota_remaining")]
25+
public long QuotaRemaining { get; set; }
26+
}
2827
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /