fastlane-plugin-code_static_analyzer 0.2.1 → 0.2.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6173fdc7aa3d9e591d809539244e4d00a594200
|
4
|
+
data.tar.gz: eaf1a87487c028b421a9dff85e5b4c29b39b030c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133db1965373aee4ff71f786d543e466c7025735c9835139d79b212af2aa571265d8dbcec8bd742fc00a92dbaa2cb7f5cc8c7a29ec6d36d801794c5e38167476
|
7
|
+
data.tar.gz: 9bafa2f5dd3663cb8e72ee36a44821ee1facf762aeec9ebb89fa03b197d7f149cfd13cc3d17652c8c90c808886def3a4c40d2cace89c37837fa44b317ce4a9fa
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ This plugin can be used in pair with CI static code analysis plugins. Check out
|
|
25
25
|
- Clang-format tool have to be installed on your machine to use clang analyzer
|
26
26
|
|
27
27
|
### Specific for copy paste analyzer (CPD)
|
28
|
-
- PMD have to be installed on your machine (http://pmd.sourceforge.net/snapshot/usage/installing.html)
|
28
|
+
- PMD (5.8.1) have to be installed on your machine (http://pmd.sourceforge.net/snapshot/usage/installing.html)
|
29
29
|
- [!]Pay attention on language parameter: if your code language is available in supported list you have to set this parameter.
|
30
30
|
|
31
31
|
## Actions
|
@@ -73,7 +73,7 @@ Parameter | Description
|
|
73
73
|
`analyzers` | List of analysers you want to run. Supported analyzers: "xcodeWar", "rubocop", "CPD", "all"
|
74
74
|
`result_dir` | *(optional)* Directory's name for storing analysis results.
|
75
75
|
`cpd_tokens` | *(optional)* The min number of words in code that is detected as copy paste.<br />Default value: 100
|
76
|
-
`cpd_language` | *(optional)* Language used in files that will be inspected on copy paste.<br />Supported analyzers: ['
|
76
|
+
`cpd_language` | *(optional)* Language used in files that will be inspected on copy paste.<br />Supported analyzers: ['apex', 'cpp', 'cs', 'ecmascript', 'fortran', 'go', 'groovy', 'java', 'jsp', 'matlab', 'objectivec', 'perl', 'php', 'plsql', 'python', 'ruby', 'scala', 'swift', 'vf']. If you need any other language just don't set this parameter.
|
77
77
|
`cpd_files_to_inspect` | *(optional)* List of paths (relative to work directory) to files/directories to be inspected on copy paste.
|
78
78
|
`cpd_files_to_exclude` | *(optional)* List of paths (relative to work directory) to files/directories not to be inspected on copy paste
|
79
79
|
`xcode_project_name` | *(required if use warning analyzer)* Xcode project name in work directory
|
@@ -309,7 +309,7 @@ module Fastlane
|
|
309
309
|
optional: true,
|
310
310
|
type: String,
|
311
311
|
verify_block: proc do |value|
|
312
|
-
UI.user_error!("Language '#{value}' is not supported.\nSupported languages: #{Actions::CpdAnalyzerAction::SUPPORTED_LAN}
|
312
|
+
UI.user_error!("Language '#{value}' is not supported.\nSupported languages: #{Actions::CpdAnalyzerAction::SUPPORTED_LAN}") unless Actions::CpdAnalyzerAction::SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
|
313
313
|
end),
|
314
314
|
# parameters for Ruby analyzer
|
315
315
|
FastlaneCore::ConfigItem.new(key: :ruby_files,
|
@@ -5,7 +5,7 @@ module Fastlane
|
|
5
5
|
end
|
6
6
|
|
7
7
|
class CpdAnalyzerAction < Action
|
8
|
-
SUPPORTED_LAN = ['
|
8
|
+
SUPPORTED_LAN = ['apex', 'cpp', 'cs', 'ecmascript', 'fortran', 'go', 'groovy', 'java', 'jsp', 'matlab', 'objectivec', 'perl', 'php', 'plsql', 'python', 'ruby', 'scala', 'swift', 'vf']
|
9
9
|
|
10
10
|
def self.run(params)
|
11
11
|
UI.header 'CPD analyzer' if Actions::CodeStaticAnalyzerAction.run_from_main_action
|
@@ -113,7 +113,7 @@ module Fastlane
|
|
113
113
|
optional: true,
|
114
114
|
type: String,
|
115
115
|
verify_block: proc do |value|
|
116
|
-
UI.user_error!("
|
116
|
+
UI.user_error!("The language #{value} is not supported. Supported languages: #{SUPPORTED_LAN} or empty if you need any other language") unless SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
|
117
117
|
end)
|
118
118
|
]
|
119
119
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-code_static_analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olga Kniazska
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: crack
|