xcpretty-azure-formatter 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/lib/xcpretty_azure_formatter.rb +4 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e607a298aa28b7901056ae41e1815f8afcf4842ca6dd78916a7d29295793f3de
|
4
|
+
data.tar.gz: 8d954a8c7cf9b30ccac7daee2510ebf8e45767fcbf20b13227f8205f2872d8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc78bfc742b6939257ac79c30977945128940949823111a806515d5c090221631a8f07f6d705c6a36b0bd2a3becc077e175d13f8ac139854b9eba5b532e41e8d
|
7
|
+
data.tar.gz: 312ce2f9434ebb81cd9809364bc33966d08518773e3d6585c021d9f5afe4424ba30be6dfe5c022c7b446151441c37f473cf86e920383bc1fc75bf07097a11fe5
|
data/README.md
CHANGED
@@ -26,8 +26,14 @@ Simply specify the azure formatter when using `xcpretty`. Be sure to use back-ti
|
|
26
26
|
```bash
|
27
27
|
$ xcodebuild [args] build | xcpretty -f `xcpretty-azure-formatter`
|
28
28
|
```
|
29
|
-
This will retain the original output of xcpretty,
|
30
|
-
|
29
|
+
This will retain the original output of xcpretty, except for the following message categories which will be replaced by Azure-friendly output:
|
30
|
+
- General warnings and errors
|
31
|
+
- Compiler warnings and errors
|
32
|
+
- Linker warnings
|
33
|
+
- File Missing errors
|
34
|
+
- Undefined Symbols errors
|
35
|
+
- Duplicate Symbols errors
|
36
|
+
|
31
37
|
## Contributing
|
32
38
|
|
33
39
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/xcpretty_azure_formatter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/xcpretty_azure_formatter/blob/master/CODE_OF_CONDUCT.md).
|
@@ -4,42 +4,34 @@
|
|
4
4
|
class AzureFormatter < XCPretty::Simple
|
5
5
|
def format_ld_warning(message)
|
6
6
|
_log_issue("warning", message, nil)
|
7
|
-
super
|
8
7
|
end
|
9
8
|
|
10
9
|
def format_warning(message)
|
11
10
|
_log_issue("warning", message, nil)
|
12
|
-
super
|
13
11
|
end
|
14
12
|
|
15
|
-
def format_compile_warning(
|
13
|
+
def format_compile_warning(_file_name, file_path, reason, _line, _cursor)
|
16
14
|
_log_issue("warning", reason, file_path)
|
17
|
-
super
|
18
15
|
end
|
19
16
|
|
20
17
|
def format_error(message)
|
21
18
|
_log_issue("error", message, nil)
|
22
|
-
super
|
23
19
|
end
|
24
20
|
|
25
|
-
def format_compile_error(
|
21
|
+
def format_compile_error(_file, file_path, reason, _line, _cursor)
|
26
22
|
_log_issue("error", reason, file_path)
|
27
|
-
super
|
28
23
|
end
|
29
24
|
|
30
25
|
def format_file_missing_error(reason, file_path)
|
31
26
|
_log_issue("error", reason, file_path)
|
32
|
-
super
|
33
27
|
end
|
34
28
|
|
35
|
-
def format_undefined_symbols(message,
|
29
|
+
def format_undefined_symbols(message, _symbol, _reference)
|
36
30
|
_log_issue("error", message, nil)
|
37
|
-
super
|
38
31
|
end
|
39
32
|
|
40
|
-
def format_duplicate_symbols(message,
|
33
|
+
def format_duplicate_symbols(message, _file_paths)
|
41
34
|
_log_issue("error", message, nil)
|
42
|
-
super
|
43
35
|
end
|
44
36
|
|
45
37
|
def _log_issue(type, message, file)
|