Commit 3da9140
fix: CA1829, CA1834, CA1846, CA1847 (#338)
* CA1829
* CA1834
* CA1846, CA1847
* updated if statement condition
* added JSON002 as suggestion
* pr snapshot
* spdx elements count
* removed JSON22 suggestion
* if statement syntax update
Co-authored-by: Jamie Magee <jamagee@microsoft.com>
* updated if statement
* if statement
* removed extra '?'
* verifying snapshots early success
* short if statement syntax
Co-authored-by: Daniel Akili <danielakili@microsoft.com>
Co-authored-by: Jamie Magee <jamagee@microsoft.com>1 parent dae3f37 commit 3da9140
File tree
7 files changed
+17
-26
lines changed- src/Microsoft.ComponentDetection.Detectors
- spdx
- yarn/Parsers
- test/Microsoft.ComponentDetection.Detectors.Tests
7 files changed
+17
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | 624 | | |
628 | 625 | | |
629 | 626 | | |
| |||
684 | 681 | | |
685 | 682 | | |
686 | 683 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | 684 | | |
691 | 685 | | |
692 | 686 | | |
| |||
699 | 693 | | |
700 | 694 | | |
701 | 695 | | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | 696 | | |
706 | 697 | | |
707 | 698 | | |
| |||
720 | 711 | | |
721 | 712 | | |
722 | 713 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 714 | | |
727 | 715 | | |
728 | 716 | | |
| |||
786 | 774 | | |
787 | 775 | | |
788 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
862 | | - | |
| 862 | + | |
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| |||
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
880 | | - | |
| 880 | + | |
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
| 902 | + | |
| 903 | + | |
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| |||
0 commit comments